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.
 
 
 
 
 
 

31 lines
677 B

  1. #
  2. # Texas Instruments AR7 SOC - used in many adsl modems.
  3. # http://www.linux-mips.org/wiki/AR7
  4. #
  5. if { [info exists CHIPNAME] } {
  6. set _CHIPNAME $CHIPNAME
  7. } else {
  8. set _CHIPNAME ti-ar7
  9. }
  10. if { [info exists ENDIAN] } {
  11. set _ENDIAN $ENDIAN
  12. } else {
  13. set _ENDIAN little
  14. }
  15. if { [info exists CPUTAPID] } {
  16. set _CPUTAPID $CPUTAPID
  17. } else {
  18. set _CPUTAPID 0x0000100f
  19. }
  20. jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id $_CPUTAPID
  21. set _TARGETNAME $_CHIPNAME.cpu
  22. target create $_TARGETNAME mips_m4k -endian $_ENDIAN -chain-position $_CHIPNAME.cpu
  23. # use onboard 4k sram as working area
  24. $_TARGETNAME configure -work-area-phys 0x80000000 -work-area-size 0x00001000