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.
 
 
 
 
 
 

54 lines
1.5 KiB

  1. source [find target/c100.cfg]
  2. # basic register defintion for C100
  3. source [find target/c100regs.tcl]
  4. # board-config info
  5. source [find target/c100config.tcl]
  6. # C100 helper functions
  7. source [find target/c100helper.tcl]
  8. # Telo board & C100 support trst and srst
  9. # however openocd does not support
  10. # 1. setting srst reset pulse width
  11. # 2. setting delay between srst pulse and JTAG access
  12. # This really makes the srst useless for now.
  13. reset_config trst_and_srst separate
  14. # issue telnet: reset init
  15. # issue gdb: monitor reset init
  16. $_TARGETNAME configure -event reset-init {
  17. jtag_khz 100
  18. # setup GPIO used as control signals for C100
  19. setupGPIO
  20. # This will allow acces to lower 8MB or NOR
  21. lowGPIO5
  22. # setup NOR size,timing,etc.
  23. setupNOR
  24. # setup internals + PLL + DDR2
  25. initC100
  26. #turn up the JTAG speed
  27. jtag_khz 3000
  28. puts "JTAG speek now 3MHz"
  29. puts "type helpC100 to get help on C100"
  30. }
  31. $_TARGETNAME configure -event reset-deassert-post {
  32. # Force target into ARM state.
  33. # soft_reset_halt # not implemented on ARM11
  34. puts "Detected SRSRT asserted on C100.CPU"
  35. }
  36. proc power_restore {} { puts "Sensed power restore. No action." }
  37. proc srst_deasserted {} { puts "Sensed nSRST deasserted. No action." }
  38. # boots from NOR on CS0: 8 MBytes CFI flash, 16-bit bus
  39. # it's really 16MB but the upper 8mb is controller via gpio
  40. # openocd does not support 'complex reads/writes' to NOR
  41. flash bank cfi 0x20000000 0x01000000 2 2 $_TARGETNAME
  42. # writing data to memory does not work without this
  43. memwrite burst disable