X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=tcl%2Fcpld%2Faltera-epm240.cfg;h=6e10188ca88f0875fbe7321612a028b981d0d1bc;hb=d673521c39dcf82ce4c2e6d9d4dcdc7460c09fbe;hp=62f2b73b7c862244accf2e1a49d0dbed52e336c4;hpb=13cd75b6ecfd8d9cf04e56b182b6a162ad50247c;p=fw%2Fopenocd diff --git a/tcl/cpld/altera-epm240.cfg b/tcl/cpld/altera-epm240.cfg index 62f2b73b7..6e10188ca 100644 --- a/tcl/cpld/altera-epm240.cfg +++ b/tcl/cpld/altera-epm240.cfg @@ -1,6 +1,19 @@ # Altera MAXII EPM240T100C CPLD + +if { [info exists CHIPNAME] } { + set _CHIPNAME $CHIPNAME +} else { + set _CHIPNAME epm240 +} + # see MAX II Device Handbook # Table 3-3: 32-Bit MAX II Device IDCODE # Version Part Number Manuf. ID LSB # 0000 0010 0000 1010 0001 000 0110 1110 1 -jtag newtap epm240 tap -expected-id 0x020a10dd -irlen 10 +jtag newtap $_CHIPNAME tap -irlen 10 \ + -expected-id 0x020a10dd \ + -expected-id 0x020a20dd \ + -expected-id 0x020a30dd \ + -expected-id 0x020a40dd \ + -expected-id 0x020a50dd \ + -expected-id 0x020a60dd