Kconfig 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. menu "MediaTek MIPS platforms"
  2. depends on ARCH_MTMIPS
  3. config SYS_MALLOC_F_LEN
  4. default 0x1000
  5. config SYS_SOC
  6. default "mt7628" if SOC_MT7628
  7. config SYS_DCACHE_SIZE
  8. default 32768
  9. config SYS_DCACHE_LINE_SIZE
  10. default 32
  11. config SYS_ICACHE_SIZE
  12. default 65536
  13. config SYS_ICACHE_LINE_SIZE
  14. default 32
  15. config SYS_TEXT_BASE
  16. default 0x9c000000 if !SPL
  17. default 0x80200000 if SPL
  18. config SPL_TEXT_BASE
  19. default 0x9c000000
  20. config SPL_PAYLOAD
  21. default "u-boot-lzma.img" if SPL_LZMA
  22. config BUILD_TARGET
  23. default "u-boot-with-spl.bin" if SPL
  24. choice
  25. prompt "MediaTek MIPS SoC select"
  26. config SOC_MT7628
  27. bool "MT7628"
  28. select MIPS_L1_CACHE_SHIFT_5
  29. select MIPS_INIT_STACK_IN_SRAM
  30. select MIPS_SRAM_INIT
  31. select SYS_MIPS_CACHE_INIT_RAM_LOAD
  32. select PINCTRL_MT7628
  33. select MTK_SERIAL
  34. select SYSRESET_RESETCTL
  35. select SPL_SEPARATE_BSS if SPL
  36. select SPL_INIT_STACK_WITHOUT_MALLOC_F if SPL
  37. select SPL_LOADER_SUPPORT if SPL
  38. select SPL_OF_CONTROL if SPL_DM
  39. select SPL_SIMPLE_BUS if SPL_DM
  40. select SPL_DM_SERIAL if SPL_DM
  41. select SPL_CLK if SPL_DM && SPL_SERIAL_SUPPORT
  42. select SPL_SYSRESET if SPL_DM
  43. select SPL_OF_LIBFDT if SPL_OF_CONTROL
  44. help
  45. This supports MediaTek MT7628/MT7688.
  46. endchoice
  47. choice
  48. prompt "Board select"
  49. config BOARD_GARDENA_SMART_GATEWAY_MT7688
  50. bool "GARDENA smart Gateway"
  51. depends on SOC_MT7628
  52. select BOARD_LATE_INIT
  53. help
  54. GARDENA smart Gateway boards have a MT7688 SoC with 128 MiB of RAM
  55. and 8 MiB of flash (SPI NOR) and additional SPI NAND storage.
  56. config BOARD_LINKIT_SMART_7688
  57. bool "LinkIt Smart 7688"
  58. depends on SOC_MT7628
  59. help
  60. Seeed LinkIt Smart 7688 boards have a MT7688 SoC with 128 MiB of RAM
  61. and 32 MiB of flash (SPI).
  62. Between its different peripherals there's an integrated switch with 4
  63. ethernet ports, 1 USB port, 1 UART, GPIO buttons and LEDs, and
  64. a MT7688 (PCIe).
  65. config BOARD_MT7628_RFB
  66. bool "MediaTek MT7628 RFB"
  67. depends on SOC_MT7628
  68. help
  69. The reference design of MT7628. The board has 128 MiB DDR2, 8 MiB
  70. SPI-NOR flash, 1 built-in switch with 5 ports, 1 UART, 1 USB host,
  71. 1 SDXC, 1 PCIe socket and JTAG pins.
  72. config BOARD_VOCORE2
  73. bool "VoCore2"
  74. depends on SOC_MT7628
  75. select SPL_SERIAL_SUPPORT
  76. select SPL_UART2_SPIS_PINMUX
  77. help
  78. VoCore VoCore2 board has a MT7628 SoC with 128 MiB of RAM
  79. and 16 MiB of flash (SPI).
  80. endchoice
  81. config SPL_UART2_SPIS_PINMUX
  82. bool "Use alternative pinmux for UART2 in SPL stage"
  83. depends on SPL_SERIAL_SUPPORT
  84. default n
  85. help
  86. Select this if the UART2 of your board is connected to GPIO 16/17
  87. (shared with SPIS) rather than the usual GPIO 20/21.
  88. source "board/gardena/smart-gateway-mt7688/Kconfig"
  89. source "board/mediatek/mt7628/Kconfig"
  90. source "board/seeed/linkit-smart-7688/Kconfig"
  91. source "board/vocore/vocore2/Kconfig"
  92. endmenu