From 3175c4737205a510eb1c8db3b55bad4d775d267a Mon Sep 17 00:00:00 2001 From: bernd-herzog Date: Sun, 1 Dec 2024 10:29:25 +0100 Subject: [PATCH] added AGM CPLD to portapack detect routine --- firmware/common/portapack.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/firmware/common/portapack.c b/firmware/common/portapack.c index 3714f1d8d..e123affa9 100644 --- a/firmware/common/portapack.c +++ b/firmware/common/portapack.c @@ -614,7 +614,11 @@ static uint32_t jtag_pp_idcode(void) static bool portapack_detect(void) { - return jtag_pp_idcode() == 0x020A50DD; + const uint32_t idcode = jtag_pp_idcode(); + + /* 0x020A50DD => Altera 5M40ZE64C5N + 0x00025610 => AGM Microelectronics AG256SL100 */ + return idcode == 0x020A50DD || idcode == 0x00025610; } static const portapack_t portapack_instance = {};