Merge tag 'u-boot-rockchip-20200501' of https://gitlab.denx.de/u-boot/custodians...
[platform/kernel/u-boot.git] / arch / mips / mach-mtmips / Kconfig
1 menu "MediaTek MIPS platforms"
2         depends on ARCH_MTMIPS
3
4 config SYS_MALLOC_F_LEN
5         default 0x1000
6
7 config SYS_SOC
8         default "mt7628" if SOC_MT7628
9
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
22 config SYS_TEXT_BASE
23         default 0x9c000000 if !SPL
24         default 0x80200000 if SPL
25
26 config SPL_TEXT_BASE
27         default 0x9c000000
28
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
35 choice
36         prompt "MediaTek MIPS SoC select"
37
38 config SOC_MT7628
39         bool "MT7628"
40         select MIPS_L1_CACHE_SHIFT_5
41         select MIPS_INIT_STACK_IN_SRAM
42         select MIPS_SRAM_INIT
43         select SYS_MIPS_CACHE_INIT_RAM_LOAD
44         select PINCTRL_MT7628
45         select MTK_SERIAL
46         select SYSRESET_RESETCTL
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
56         help
57           This supports MediaTek MT7628/MT7688.
58
59 endchoice
60
61 choice
62         prompt "Board select"
63
64 config BOARD_GARDENA_SMART_GATEWAY_MT7688
65         bool "GARDENA smart Gateway"
66         depends on SOC_MT7628
67         select BOARD_LATE_INIT
68         help
69           GARDENA smart Gateway boards have a MT7688 SoC with 128 MiB of RAM
70           and 8 MiB of flash (SPI NOR) and additional SPI NAND storage.
71
72 config BOARD_LINKIT_SMART_7688
73         bool "LinkIt Smart 7688"
74         depends on SOC_MT7628
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
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
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
99 endchoice
100
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
109 source "board/gardena/smart-gateway-mt7688/Kconfig"
110 source "board/mediatek/mt7628/Kconfig"
111 source "board/seeed/linkit-smart-7688/Kconfig"
112 source "board/vocore/vocore2/Kconfig"
113
114 endmenu