blob: 83d764835aed0d4e45c6bbd008779da3071f465c [file] [log] [blame]
Stefan Roese65da15e2018-09-05 15:12:35 +02001menu "MediaTek MIPS platforms"
developer89f051b2019-04-30 11:13:58 +08002 depends on ARCH_MTMIPS
Stefan Roese65da15e2018-09-05 15:12:35 +02003
4config SYS_MALLOC_F_LEN
5 default 0x1000
6
7config SYS_SOC
developer89f051b2019-04-30 11:13:58 +08008 default "mt7628" if SOC_MT7628
Stefan Roese65da15e2018-09-05 15:12:35 +02009
developer26f763e2020-04-21 09:28:26 +020010config SYS_DCACHE_SIZE
11 default 32768
12
13config SYS_DCACHE_LINE_SIZE
14 default 32
15
16config SYS_ICACHE_SIZE
17 default 65536
18
19config SYS_ICACHE_LINE_SIZE
20 default 32
21
developer29b37c52020-04-21 09:28:34 +020022config SYS_TEXT_BASE
developer19d572e2020-04-21 09:28:47 +020023 default 0x9c000000 if !SPL
24 default 0x80200000 if SPL
25
26config SPL_TEXT_BASE
developer29b37c52020-04-21 09:28:34 +020027 default 0x9c000000
28
developer19d572e2020-04-21 09:28:47 +020029config SPL_PAYLOAD
30 default "u-boot-lzma.img" if SPL_LZMA
31
32config BUILD_TARGET
33 default "u-boot-with-spl.bin" if SPL
34
Stefan Roese65da15e2018-09-05 15:12:35 +020035choice
36 prompt "MediaTek MIPS SoC select"
37
developer89f051b2019-04-30 11:13:58 +080038config SOC_MT7628
39 bool "MT7628"
Stefan Roese65da15e2018-09-05 15:12:35 +020040 select MIPS_L1_CACHE_SHIFT_5
developer29b37c52020-04-21 09:28:34 +020041 select MIPS_INIT_STACK_IN_SRAM
42 select MIPS_SRAM_INIT
43 select SYS_MIPS_CACHE_INIT_RAM_LOAD
developer591826e2019-09-25 17:45:43 +080044 select PINCTRL_MT7628
45 select MTK_SERIAL
developer3b3015f2020-04-21 09:28:30 +020046 select SYSRESET_RESETCTL
developer19d572e2020-04-21 09:28:47 +020047 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
Stefan Roese65da15e2018-09-05 15:12:35 +020056 help
developer89f051b2019-04-30 11:13:58 +080057 This supports MediaTek MT7628/MT7688.
Stefan Roese65da15e2018-09-05 15:12:35 +020058
59endchoice
60
61choice
62 prompt "Board select"
63
Stefan Roese115802d2018-08-16 15:27:31 +020064config BOARD_GARDENA_SMART_GATEWAY_MT7688
Stefan Roesef08cc082019-03-15 09:09:34 +010065 bool "GARDENA smart Gateway"
developer89f051b2019-04-30 11:13:58 +080066 depends on SOC_MT7628
Stefan Roesed0fdd672018-10-09 08:59:13 +020067 select BOARD_LATE_INIT
Stefan Roese115802d2018-08-16 15:27:31 +020068 select SUPPORTS_BOOT_RAM
69 help
Stefan Roesef08cc082019-03-15 09:09:34 +010070 GARDENA smart Gateway boards have a MT7688 SoC with 128 MiB of RAM
Stefan Roese115802d2018-08-16 15:27:31 +020071 and 8 MiB of flash (SPI NOR) and additional SPI NAND storage.
72
Stefan Roese2052a932018-08-16 15:27:30 +020073config BOARD_LINKIT_SMART_7688
74 bool "LinkIt Smart 7688"
developer89f051b2019-04-30 11:13:58 +080075 depends on SOC_MT7628
Stefan Roese2052a932018-08-16 15:27:30 +020076 select SUPPORTS_BOOT_RAM
77 help
78 Seeed LinkIt Smart 7688 boards have a MT7688 SoC with 128 MiB of RAM
79 and 32 MiB of flash (SPI).
80 Between its different peripherals there's an integrated switch with 4
81 ethernet ports, 1 USB port, 1 UART, GPIO buttons and LEDs, and
82 a MT7688 (PCIe).
83
Stefan Roese65da15e2018-09-05 15:12:35 +020084endchoice
85
86choice
87 prompt "Boot mode"
88
89config BOOT_RAM
90 bool "RAM boot"
91 depends on SUPPORTS_BOOT_RAM
92 help
93 This builds an image that is linked to a RAM address. It can be used
94 for booting from CFE via TFTP using an ELF image, but it can also be
95 booted from RAM by other bootloaders using a BIN image.
96
97config BOOT_ROM
98 bool "ROM boot"
99 depends on SUPPORTS_BOOT_RAM
100 help
101 This builds an image that is linked to a ROM address. It can be
102 used as main bootloader image which is programmed onto the onboard
103 flash storage (SPI NOR).
104
105endchoice
106
Stefan Roese65da15e2018-09-05 15:12:35 +0200107config SUPPORTS_BOOT_RAM
108 bool
109
developer19d572e2020-04-21 09:28:47 +0200110config SPL_UART2_SPIS_PINMUX
111 bool "Use alternative pinmux for UART2 in SPL stage"
112 depends on SPL_SERIAL_SUPPORT
113 default n
114 help
115 Select this if the UART2 of your board is connected to GPIO 16/17
116 (shared with SPIS) rather than the usual GPIO 20/21.
117
Stefan Roese115802d2018-08-16 15:27:31 +0200118source "board/gardena/smart-gateway-mt7688/Kconfig"
Stefan Roese2052a932018-08-16 15:27:30 +0200119source "board/seeed/linkit-smart-7688/Kconfig"
120
Stefan Roese65da15e2018-09-05 15:12:35 +0200121endmenu