spear300evb.cfg 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # Configuration for the ST SPEAr300 Evaluation board
  2. # EVALSPEAr300 Rev. 1.0
  3. # http://www.st.com/spear
  4. #
  5. # Date: 2010-11-27
  6. # Author: Antonio Borneo <borneo.antonio@gmail.com>
  7. # The standard board has JTAG SRST not connected.
  8. # This script targets such boards using quirky code to bypass the issue.
  9. source [find mem_helper.tcl]
  10. source [find target/spear3xx.cfg]
  11. source [find chip/st/spear/spear3xx_ddr.tcl]
  12. source [find chip/st/spear/spear3xx.tcl]
  13. arm7_9 dcc_downloads enable
  14. arm7_9 fast_memory_access enable
  15. # Serial NOR on SMI CS0. 8Mbyte.
  16. set _FLASHNAME1 $_CHIPNAME.snor
  17. flash bank $_FLASHNAME1 stmsmi 0xf8000000 0 0 0 $_TARGETNAME
  18. if { [info exists BOARD_HAS_SRST] } {
  19. # Modified board has SRST on JTAG connector
  20. reset_config trst_and_srst separate srst_gates_jtag \
  21. trst_push_pull srst_open_drain
  22. } else {
  23. # Standard board has no SRST on JTAG connector
  24. reset_config trst_only separate srst_gates_jtag trst_push_pull
  25. source [find chip/st/spear/quirk_no_srst.tcl]
  26. }
  27. $_TARGETNAME configure -event reset-init { spear300evb_init }
  28. proc spear300evb_init {} {
  29. reg pc 0xffff0020; # loop forever
  30. sp3xx_clock_default
  31. sp3xx_common_init
  32. sp3xx_ddr_init "mt47h64m16_3_333_cl5_async"
  33. sp300_init
  34. }