ethernut3.cfg 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. # SPDX-License-Identifier: GPL-2.0-or-later
  2. #
  3. # Ethernut 3 board configuration file
  4. #
  5. # http://www.ethernut.de/en/hardware/enut3/
  6. # AT91R40008-66AU ARM7TDMI Microcontroller
  7. # 256kB internal RAM
  8. source [find target/at91r40008.cfg]
  9. # AT49BV322A-70TU NOR Flash
  10. # 2M x 16 mode at address 0x10000000
  11. # Common flash interface supported
  12. #
  13. set _FLASHNAME $_CHIPNAME.flash
  14. flash bank $_FLASHNAME cfi 0x10000000 0x400000 2 2 $_TARGETNAME
  15. # Micrel MIC2775-29YM5 Supervisor
  16. # Reset output will remain active for 280ms (maximum)
  17. #
  18. adapter srst delay 300
  19. jtag_ntrst_delay 300
  20. arm7_9 fast_memory_access enable
  21. arm7_9 dcc_downloads enable
  22. adapter speed 16000
  23. # Target events
  24. #
  25. $_TARGETNAME configure -event reset-init { board_init }
  26. # Initialize board hardware
  27. #
  28. proc board_init { } {
  29. board_remap
  30. flash probe 0
  31. }
  32. # Memory remap
  33. #
  34. proc board_remap {{VERBOSE 0}} {
  35. # CS0: NOR flash
  36. # 16MB @ 0x10000000
  37. # 16-bit data bus
  38. # 4 wait states
  39. #
  40. mww 0xffe00000 0x1000212d
  41. # CS1: Ethernet controller
  42. # 1MB @ 0x20000000
  43. # 16-bit data bus
  44. # 2 wait states
  45. # Byte select access
  46. #
  47. mww 0xffe00004 0x20003025
  48. # CS2: CPLD registers
  49. # 1MB @ 0x21000000
  50. # 8-bit data bus
  51. # 2 wait states
  52. #
  53. mww 0xffe00008 0x21002026
  54. # CS3: Expansion bus
  55. # 1MB @ 0x22000000
  56. # 8-bit data bus
  57. # 8 wait states
  58. #
  59. mww 0xffe00010 0x22002e3e
  60. # Remap command
  61. #
  62. mww 0xffe00020 0x00000001
  63. if {$VERBOSE != 0} {
  64. echo "0x00000000 RAM"
  65. echo "0x10000000 Flash"
  66. echo "0x20000000 Ethernet"
  67. echo "0x21000000 CPLD"
  68. echo "0x22000000 Expansion"
  69. }
  70. }