lpc3250.cfg 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # SPDX-License-Identifier: GPL-2.0-or-later
  2. # lpc3250 config
  3. #
  4. if { [info exists CHIPNAME] } {
  5. set _CHIPNAME $CHIPNAME
  6. } else {
  7. set _CHIPNAME lpc3250
  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. set _CPUTAPID 0x17900f0f
  18. }
  19. if { [info exists CPUTAPID_REV_A0] } {
  20. set _CPUTAPID_REV_A0 $CPUTAPID_REV_A0
  21. } else {
  22. set _CPUTAPID_REV_A0 0x17926f0f
  23. }
  24. if { [info exists SJCTAPID] } {
  25. set _SJCTAPID $SJCTAPID
  26. } else {
  27. set _SJCTAPID 0x1b900f0f
  28. }
  29. jtag newtap $_CHIPNAME sjc -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_SJCTAPID
  30. jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID \
  31. -expected-id $_CPUTAPID_REV_A0
  32. set _TARGETNAME $_CHIPNAME.cpu
  33. target create $_TARGETNAME arm926ejs -endian little -chain-position $_TARGETNAME -work-area-phys 0x00000000 -work-area-size 0x7d0000 -work-area-backup 0
  34. proc power_restore {} { echo "Sensed power restore. No action." }
  35. proc srst_deasserted {} { echo "Sensed nSRST deasserted. No action." }