blob: 8756cadb0b637ee9798e4606e9f76ed953faee71 [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
developer18ec8d62020-11-12 16:35:52 +08008 default "mt7620" if SOC_MT7620
developer89f051b2019-04-30 11:13:58 +08009 default "mt7628" if SOC_MT7628
Stefan Roese65da15e2018-09-05 15:12:35 +020010
developer26f763e2020-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
developer29b37c52020-04-21 09:28:34 +020023config SYS_TEXT_BASE
developer19d572e2020-04-21 09:28:47 +020024 default 0x9c000000 if !SPL
25 default 0x80200000 if SPL
26
27config SPL_TEXT_BASE
developer29b37c52020-04-21 09:28:34 +020028 default 0x9c000000
29
developer19d572e2020-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
developer18ec8d62020-11-12 16:35:52 +080035 default "u-boot.bin"
developer19d572e2020-04-21 09:28:47 +020036
Stefan Roese65da15e2018-09-05 15:12:35 +020037choice
38 prompt "MediaTek MIPS SoC select"
39
developer18ec8d62020-11-12 16:35:52 +080040config SOC_MT7620
41 bool "MT7620"
42 select MIPS_L1_CACHE_SHIFT_5
43 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
developer89f051b2019-04-30 11:13:58 +080055config SOC_MT7628
56 bool "MT7628"
Stefan Roese65da15e2018-09-05 15:12:35 +020057 select MIPS_L1_CACHE_SHIFT_5
developer29b37c52020-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
developer591826e2019-09-25 17:45:43 +080061 select PINCTRL_MT7628
62 select MTK_SERIAL
developer93f74002020-11-12 16:35:28 +080063 select SYSRESET
developer3b3015f2020-04-21 09:28:30 +020064 select SYSRESET_RESETCTL
developer19d572e2020-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
71 select SPL_CLK if SPL_DM && SPL_SERIAL_SUPPORT
72 select SPL_SYSRESET if SPL_DM
73 select SPL_OF_LIBFDT if SPL_OF_CONTROL
Stefan Roese65da15e2018-09-05 15:12:35 +020074 help
developer89f051b2019-04-30 11:13:58 +080075 This supports MediaTek MT7628/MT7688.
Stefan Roese65da15e2018-09-05 15:12:35 +020076
77endchoice
78
developer18ec8d62020-11-12 16:35:52 +080079source "arch/mips/mach-mtmips/mt7620/Kconfig"
developer37e34ba2020-11-12 16:35:23 +080080source "arch/mips/mach-mtmips/mt7628/Kconfig"
Stefan Roese2052a932018-08-16 15:27:30 +020081
Stefan Roese65da15e2018-09-05 15:12:35 +020082endmenu