Merge pull request #1512 from bernd-herzog/agm_cpld

Add AGM CPLD to portapack detection routine
This commit is contained in:
Michael Ossmann
2024-12-02 13:00:46 -05:00
committed by GitHub

View File

@ -614,7 +614,11 @@ static uint32_t jtag_pp_idcode(void)
static bool portapack_detect(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 = {}; static const portapack_t portapack_instance = {};