samsung_s3c2440.cfg 984 B

123456789101112131415161718192021222324252627282930313233343536
  1. # SPDX-License-Identifier: GPL-2.0-or-later
  2. # Target configuration for the Samsung 2440 system on chip
  3. # Tested on a S3C2440 Evaluation board by keesj
  4. # Processor : ARM920Tid(wb) rev 0 (v4l)
  5. # Info: JTAG tap: s3c2440.cpu tap/device found: 0x0032409d (Manufacturer: 0x04e, Part: 0x0324, Version: 0x0)
  6. if { [info exists CHIPNAME] } {
  7. set _CHIPNAME $CHIPNAME
  8. } else {
  9. set _CHIPNAME s3c2440
  10. }
  11. if { [info exists ENDIAN] } {
  12. set _ENDIAN $ENDIAN
  13. } else {
  14. # this defaults to a bigendian
  15. set _ENDIAN little
  16. }
  17. if { [info exists CPUTAPID] } {
  18. set _CPUTAPID $CPUTAPID
  19. } else {
  20. set _CPUTAPID 0x0032409d
  21. }
  22. #jtag scan chain
  23. jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0x0f -expected-id $_CPUTAPID
  24. set _TARGETNAME $_CHIPNAME.cpu
  25. target create $_TARGETNAME arm920t -endian $_ENDIAN -chain-position $_TARGETNAME
  26. $_TARGETNAME configure -work-area-phys 0x200000 -work-area-size 0x4000 -work-area-backup 1
  27. #reset configuration
  28. reset_config trst_and_srst