sharp_lh79532.cfg 597 B

1234567891011121314151617181920212223242526
  1. # SPDX-License-Identifier: GPL-2.0-or-later
  2. reset_config srst_only srst_pulls_trst
  3. if { [info exists CHIPNAME] } {
  4. set _CHIPNAME $CHIPNAME
  5. } else {
  6. set _CHIPNAME lh79532
  7. }
  8. if { [info exists ENDIAN] } {
  9. set _ENDIAN $ENDIAN
  10. } else {
  11. set _ENDIAN little
  12. }
  13. if { [info exists CPUTAPID] } {
  14. set _CPUTAPID $CPUTAPID
  15. } else {
  16. # sharp changed the number!
  17. set _CPUTAPID 0x00002061
  18. }
  19. jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
  20. set _TARGETNAME $_CHIPNAME.cpu
  21. target create $_TARGETNAME arm7tdmi -endian $_ENDIAN -chain-position $_TARGETNAME