spear300evb.cfg 1.2 KB

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