You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

43 lines
1.0 KiB

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