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.
 
 
 
 
 
 

33 lines
906 B

  1. # Cirrus Logic EP9301 processor on an Olimex CS-E9301 board.
  2. if { [info exists CHIPNAME] } {
  3. set _CHIPNAME $CHIPNAME
  4. } else {
  5. set _CHIPNAME ep9301
  6. }
  7. if { [info exists ENDIAN] } {
  8. set _ENDIAN $ENDIAN
  9. } else {
  10. set _ENDIAN little
  11. }
  12. if { [info exists CPUTAPID] } {
  13. set _CPUTAPID $CPUTAPID
  14. } else {
  15. # Force an error until we get a good number.
  16. set _CPUTAPID 0xffffffff
  17. }
  18. jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
  19. adapter_nsrst_delay 100
  20. jtag_ntrst_delay 100
  21. set _TARGETNAME $_CHIPNAME.cpu
  22. target create $_TARGETNAME arm920t -endian $_ENDIAN -chain-position $_TARGETNAME -work-area-phys 0x80014000 -work-area-size 0x1000 -work-area-backup 1
  23. #flash configuration
  24. #flash bank <driver> <base> <size> <chip_width> <bus_width> [driver_options ...]
  25. set _FLASHNAME $_CHIPNAME.flash
  26. flash bank $_FLASHNAME cfi 0x60000000 0x1000000 2 2 $_TARGETNAME