ti-ar7.cfg 722 B

1234567891011121314151617181920212223242526272829303132
  1. # SPDX-License-Identifier: GPL-2.0-or-later
  2. #
  3. # Texas Instruments AR7 SOC - used in many adsl modems.
  4. # http://www.linux-mips.org/wiki/AR7
  5. #
  6. if { [info exists CHIPNAME] } {
  7. set _CHIPNAME $CHIPNAME
  8. } else {
  9. set _CHIPNAME ti-ar7
  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 0x0000100f
  20. }
  21. jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id $_CPUTAPID
  22. set _TARGETNAME $_CHIPNAME.cpu
  23. target create $_TARGETNAME mips_m4k -endian $_ENDIAN -chain-position $_CHIPNAME.cpu
  24. # use onboard 4k sram as working area
  25. $_TARGETNAME configure -work-area-phys 0x80000000 -work-area-size 0x00001000