cs351x.cfg 838 B

1234567891011121314151617181920212223242526272829303132
  1. # SPDX-License-Identifier: GPL-2.0-or-later
  2. if { [info exists CHIPNAME] } {
  3. set _CHIPNAME $CHIPNAME
  4. } else {
  5. set _CHIPNAME cs351x
  6. }
  7. if { [info exists ENDIAN] } {
  8. set _ENDIAN $ENDIAN
  9. } else {
  10. set _ENDIAN little
  11. }
  12. if { [info exists CPUTAPID] } {
  13. set _CPUTAPID $CPUTAPID
  14. } else {
  15. set _CPUTAPID 0x00526fa1
  16. }
  17. jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
  18. # Create the GDB Target.
  19. set _TARGETNAME $_CHIPNAME.cpu
  20. target create $_TARGETNAME fa526 -endian $_ENDIAN -chain-position $_TARGETNAME
  21. # There is 16K of SRAM on this chip
  22. # FIXME: flash programming is not working by using this work area. So comment this out for now.
  23. #$_TARGETNAME configure -work-area-phys 0x00000000 -work-area-size 0x4000 -work-area-backup 1
  24. # This chip has a DCC ... use it
  25. arm7_9 dcc_downloads enable