1 if { [info exists CHIPNAME] } {
2 set _CHIPNAME $CHIPNAME
4 set _CHIPNAME quark_x10xx
7 if { [info exists ENDIAN] } {
14 if { [info exists CPUTAPID] } {
15 set _CPUTAPID $CPUTAPID
17 set _CPUTAPID 0x18289013
20 jtag newtap quark_x10xx cpu -irlen 8 -irmask 0xff -expected-id $_CPUTAPID -disable
21 jtag newtap quark_x10xx cltap -irlen 8 -irmask 0xff -expected-id 0x0e681013 -enable
23 #openocd puts tap at front of chain not end of chain
24 proc quark_x10xx_tapenable {} {
25 echo "enabling core tap"
26 irscan quark_x10xx.cltap 0x11
27 drscan quark_x10xx.cltap 64 1
31 proc quark_x10xx_tapdisable {} {
32 echo "disabling core tap"
33 irscan quark_x10xx.cltap 0x11
34 drscan quark_x10xx.cltap 64 0
38 proc quark_x10xx_setup {} {
39 jtag tapenable quark_x10xx.cpu
42 jtag configure $_CHIPNAME.cpu -event tap-enable \
43 "quark_x10xx_tapenable"
45 jtag configure $_CHIPNAME.cpu -event tap-disable \
46 "quark_x10xx_tapdisable"
48 set _TARGETNAME $_CHIPNAME.cpu
49 target create quark_x10xx.cpu quark_x10xx -endian $_ENDIAN -chain-position quark_x10xx.cpu
51 jtag configure $_CHIPNAME.cpu -event setup \