c100.cfg 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # SPDX-License-Identifier: GPL-2.0-or-later
  2. # c100 config.
  3. # This is ARM1136 dual core
  4. # this script only configures one core (that is used to run Linux)
  5. # assume no PLL lock, start slowly
  6. adapter speed 100
  7. if { [info exists CHIPNAME] } {
  8. set _CHIPNAME $CHIPNAME
  9. } else {
  10. set _CHIPNAME c100
  11. }
  12. if { [info exists ENDIAN] } {
  13. set _ENDIAN $ENDIAN
  14. } else {
  15. set _ENDIAN little
  16. }
  17. if { [info exists CPUTAPID] } {
  18. set _CPUTAPID $CPUTAPID
  19. } else {
  20. set _CPUTAPID 0x27b3645b
  21. }
  22. if { [info exists DSPTAPID] } {
  23. set _DSPTAPID $DSPTAPID
  24. } else {
  25. set _DSPTAPID 0x27b3645b
  26. }
  27. jtag newtap $_CHIPNAME dsp -irlen 5 -ircapture 0x1 -irmask 0x1f -expected-id $_DSPTAPID
  28. # Per ARM: DDI0211J_arm1136_r1p5_trm.pdf - the ARM 1136 as a 5 bit IR register
  29. jtag newtap $_CHIPNAME cpu -irlen 5 -ircapture 0x1 -irmask 0x1f -expected-id $_CPUTAPID
  30. set _TARGETNAME $_CHIPNAME.cpu
  31. target create $_TARGETNAME arm11 -endian $_ENDIAN -chain-position $_TARGETNAME
  32. # C100's ARAM 64k SRAM
  33. $_TARGETNAME configure -work-area-phys 0x0a000000 -work-area-size 0x10000 -work-area-backup 0