allwinner_v3s.cfg 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. # SPDX-License-Identifier: GPL-2.0-or-later
  2. # This is the config for an Allwinner V3/V3s (sun8iw8).
  3. #
  4. # Notes:
  5. # - Single core ARM Cortex-A7 with a maximum frequency of 1.2 GHz.
  6. # - Thumb-2 Technology
  7. # - Support NEON Advanced SIMD(Single Instruction Multiple Data)instruction
  8. # for acceleration of media and signal processing functions
  9. # - Support Large Physical Address Extensions(LPAE)
  10. # - VFPv4 Floating Point Unit
  11. # - 32KB L1 Instruction cache and 32KB L1 Data cache
  12. # - 128KB L2 cache
  13. # - has some integrated DDR2 RAM.
  14. #
  15. # Pins related for debug and bootstrap:
  16. # JTAG
  17. # JTAG_TMS PF0, SDC0_D1
  18. # JTAG_TDI PF1, SDC0_D0
  19. # JTAG_TDO PF3, SDC0_CMD
  20. # JTAG_TCK PF5, SDC0_D2
  21. # UART
  22. # None of UART ports seems to be enabled by ROM.
  23. # UART0_TX PF2, SDC0_CLK Per default disabled
  24. # UART0_RX PF4, SDC0_D3 Per default disabled
  25. # UART1_TX PE21 Per default disabled
  26. # UART1_RX PE22 Per default disabled
  27. # UART2_TX PB0 Per default disabled
  28. # UART2_RX PB1 Per default disabled
  29. #
  30. # JTAG is enabled by default after power on on listed JTAG_* pins. So far the
  31. # boot sequence is:
  32. # Time Action
  33. # 0000ms Power ON
  34. # 0200ms JTAG enabled
  35. # 0220ms JTAG pins switched to SD mode
  36. #
  37. # The time frame of 20ms can be not enough to init and halt the CPU. In this
  38. # case I would recommend to set: "adapter speed 15000"
  39. # To get more or less precise timings, the board should provide reset pin,
  40. # or some bench power supply with remote function. In my case I used
  41. # EEZ H24005 with this command to power on and halt the target:
  42. # "exec echo "*TRG" > /dev/ttyACM0; sleep 220; reset halt"
  43. # After this it is possible to enable JTAG mode again from boot loader or OS.
  44. # Following DAPs are available:
  45. # dap[0]->MEM-AP AHB
  46. # dap[1]->MEM-AP APB->CA7[0]
  47. #
  48. if { [info exists CHIPNAME] } {
  49. set _CHIPNAME $CHIPNAME
  50. } else {
  51. set _CHIPNAME v3s
  52. }
  53. if { [info exists DAP_TAPID] } {
  54. set _DAP_TAPID $DAP_TAPID
  55. } else {
  56. set _DAP_TAPID 0x5ba00477
  57. }
  58. # No NRST or SRST is present on the SoC. Boards may provide
  59. # some sort of Power cycle reset for complete board or SoC.
  60. # For this case we provide srst_pulls_trst so the board config
  61. # only needs to set srst_only.
  62. reset_config none srst_pulls_trst
  63. jtag newtap $_CHIPNAME dap -irlen 4 -ircapture 0x01 -irmask 0x0f \
  64. -expected-id $_DAP_TAPID
  65. # Add Cortex A7 core
  66. set _TARGETNAME $_CHIPNAME.cpu
  67. target create $_TARGETNAME cortex_a -chain-position $_CHIPNAME.dap