cpld: altera-epm240: Increase adapter speed
authorSean Anderson <sean.anderson@seco.com>
Fri, 11 Feb 2022 22:43:30 +0000 (17:43 -0500)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sat, 26 Feb 2022 15:29:52 +0000 (15:29 +0000)
According to the datasheet, the minimum clock period with Vccio1 = 1.5V
(the lowest voltage supported) is 143ns, or around 6MHz. Set the default
adapter speed to 5 MHz.

Signed-off-by: Sean Anderson <sean.anderson@seco.com>
Change-Id: I21cad33fa7f1e25e81f43b5d2214d1fa4ec924de
Reviewed-on: https://review.openocd.org/c/openocd/+/6847
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
tcl/cpld/altera-epm240.cfg

index 6e10188ca88f0875fbe7321612a028b981d0d1bc..ece02bbefc073bb9044226df48164f9818a8b566 100644 (file)
@@ -17,3 +17,7 @@ jtag newtap $_CHIPNAME tap -irlen 10 \
        -expected-id 0x020a40dd \
        -expected-id 0x020a50dd \
        -expected-id 0x020a60dd
+
+# 200ns seems like a good speed
+# c.f. Table 5-34: MAX II JTAG Timing Parameters
+adapter speed 5000