blob: 9f300a98ba87b607ae8c6cd1c6acf2b8cf63bcb1 [file] [log] [blame]
Stefan Roese4c835a62018-09-05 15:12:35 +02001menu "MediaTek MIPS platforms"
Weijie Gao16b94902019-04-30 11:13:58 +08002 depends on ARCH_MTMIPS
Stefan Roese4c835a62018-09-05 15:12:35 +02003
4config SYS_MALLOC_F_LEN
5 default 0x1000
6
7config SYS_SOC
Weijie Gaodd4fdc02020-11-12 16:35:52 +08008 default "mt7620" if SOC_MT7620
Weijie Gao16b94902019-04-30 11:13:58 +08009 default "mt7628" if SOC_MT7628
Stefan Roese4c835a62018-09-05 15:12:35 +020010
Weijie Gao79765202020-04-21 09:28:26 +020011config SYS_DCACHE_SIZE
12 default 32768
13
14config SYS_DCACHE_LINE_SIZE
15 default 32
16
17config SYS_ICACHE_SIZE
18 default 65536
19
20config SYS_ICACHE_LINE_SIZE
21 default 32
22
Weijie Gao02cd4492020-04-21 09:28:34 +020023config SYS_TEXT_BASE
Weijie Gao7a4b6962020-04-21 09:28:47 +020024 default 0x9c000000 if !SPL
25 default 0x80200000 if SPL
26
27config SPL_TEXT_BASE
Weijie Gao02cd4492020-04-21 09:28:34 +020028 default 0x9c000000
29
Weijie Gao7a4b6962020-04-21 09:28:47 +020030config SPL_PAYLOAD
31 default "u-boot-lzma.img" if SPL_LZMA
32
33config BUILD_TARGET
34 default "u-boot-with-spl.bin" if SPL
Weijie Gaodd4fdc02020-11-12 16:35:52 +080035 default "u-boot.bin"
Weijie Gao7a4b6962020-04-21 09:28:47 +020036
Stefan Roese4c835a62018-09-05 15:12:35 +020037choice
38 prompt "MediaTek MIPS SoC select"
39
Weijie Gaodd4fdc02020-11-12 16:35:52 +080040config SOC_MT7620
41 bool "MT7620"
Tom Riniab92b382021-08-26 11:47:59 -040042 select SYS_CACHE_SHIFT_5
Weijie Gaodd4fdc02020-11-12 16:35:52 +080043 select SYS_MIPS_CACHE_INIT_RAM_LOAD
44 select PINCTRL_MT7620
45 select MT7620_SERIAL
46 select MISC
47 select SPL_SEPARATE_BSS if SPL
48 select SPL_LOADER_SUPPORT if SPL
49 select SPL_OF_CONTROL if SPL_DM
50 select SPL_OF_PLATDATA if SPL_DM
51 select SPL_DM_SERIAL if SPL_DM
52 help
53 This supports MediaTek MT7620.
54
Weijie Gao16b94902019-04-30 11:13:58 +080055config SOC_MT7628
56 bool "MT7628"
Tom Riniab92b382021-08-26 11:47:59 -040057 select SYS_CACHE_SHIFT_5
Weijie Gao02cd4492020-04-21 09:28:34 +020058 select MIPS_INIT_STACK_IN_SRAM
59 select MIPS_SRAM_INIT
60 select SYS_MIPS_CACHE_INIT_RAM_LOAD
Weijie Gao3f851c92019-09-25 17:45:43 +080061 select PINCTRL_MT7628
62 select MTK_SERIAL
Weijie Gao7fcc7402020-11-12 16:35:28 +080063 select SYSRESET
Weijie Gaoc366a452020-04-21 09:28:30 +020064 select SYSRESET_RESETCTL
Weijie Gao7a4b6962020-04-21 09:28:47 +020065 select SPL_SEPARATE_BSS if SPL
66 select SPL_INIT_STACK_WITHOUT_MALLOC_F if SPL
67 select SPL_LOADER_SUPPORT if SPL
68 select SPL_OF_CONTROL if SPL_DM
69 select SPL_SIMPLE_BUS if SPL_DM
70 select SPL_DM_SERIAL if SPL_DM
Simon Glass2a736062021-08-08 12:20:12 -060071 select SPL_CLK if SPL_DM && SPL_SERIAL
Weijie Gao7a4b6962020-04-21 09:28:47 +020072 select SPL_SYSRESET if SPL_DM
73 select SPL_OF_LIBFDT if SPL_OF_CONTROL
Stefan Roese4c835a62018-09-05 15:12:35 +020074 help
Weijie Gao16b94902019-04-30 11:13:58 +080075 This supports MediaTek MT7628/MT7688.
Stefan Roese4c835a62018-09-05 15:12:35 +020076
77endchoice
78
Weijie Gaodd4fdc02020-11-12 16:35:52 +080079source "arch/mips/mach-mtmips/mt7620/Kconfig"
Weijie Gao451abbb2020-11-12 16:35:23 +080080source "arch/mips/mach-mtmips/mt7628/Kconfig"
Stefan Roeseb02f76a2018-08-16 15:27:30 +020081
Stefan Roese4c835a62018-09-05 15:12:35 +020082endmenu