Skip to content

Commit

Permalink
Merge pull request #1512 from bernd-herzog/agm_cpld
Browse files Browse the repository at this point in the history
Add AGM CPLD to portapack detection routine
  • Loading branch information
mossmann authored Dec 2, 2024
2 parents b178c66 + 3175c47 commit 3c77ebb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion firmware/common/portapack.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {};
Expand Down

0 comments on commit 3c77ebb

Please sign in to comment.