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.
 
 
 
 
 
 

57 lines
1.4 KiB

  1. ######################################
  2. # Target: Toshiba TMPA910
  3. ######################################
  4. if { [info exists CHIPNAME] } {
  5. set _CHIPNAME $CHIPNAME
  6. } else {
  7. set _CHIPNAME tmpa910
  8. }
  9. if { [info exists ENDIAN] } {
  10. set _ENDIAN $ENDIAN
  11. } else {
  12. set _ENDIAN little
  13. }
  14. if { [info exists CPUTAPID ] } {
  15. set _CPUTAPID $CPUTAPID
  16. } else {
  17. # force an error till we get a good number
  18. set _CPUTAPID 0x07926031
  19. }
  20. #TMPA910 has following IDs:
  21. # CP15.0 register 0x41069265
  22. # CP15.1 register 0x1d152152
  23. # ARM core 0x07926031
  24. #
  25. jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
  26. #use combined on interfaces or targets that can't set TRST/SRST separately
  27. reset_config trst_and_srst
  28. jtag_nsrst_delay 20
  29. jtag_ntrst_delay 20
  30. ######################
  31. # Target configuration
  32. ######################
  33. set _TARGETNAME [format "%s.cpu" $_CHIPNAME]
  34. target create $_TARGETNAME arm926ejs -endian $_ENDIAN -chain-position $_TARGETNAME -variant arm926ejs
  35. # built-in RAM0
  36. #working_area 0 0xf8004000 0x4000 nobackup
  37. # built-in RAM1
  38. #working_area 1 0xf8008000 0x4000 nobackup
  39. # built-in RAM2
  40. #working_area 2 0xf800c000 0x4000 nobackup
  41. # built-in RAM 0-2 48k total
  42. #working_area 0 0xf8004000 0xc000 nobackup
  43. # Internal sram1 memory
  44. $_TARGETNAME configure -work-area-virt 0 -work-area-phys 0xf8004000 -work-area-size 0xc000 \
  45. -work-area-backup 0