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