blob: 151b004603dbd6e1129f393db9bc894f39dec7c9 [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
Guillaume La Roquea24e1cf2021-09-10 10:21:06 +02004config SYS_VENDOR
5 default "mediatek" if BOARD_MT7628_RFB || BOARD_MT7620_RFB || BOARD_MT7620_MT7530_RFB
6
Stefan Roese65da15e2018-09-05 15:12:35 +02007config SYS_MALLOC_F_LEN
8 default 0x1000
9
10config SYS_SOC
developer18ec8d62020-11-12 16:35:52 +080011 default "mt7620" if SOC_MT7620
developer89f051b2019-04-30 11:13:58 +080012 default "mt7628" if SOC_MT7628
Stefan Roese65da15e2018-09-05 15:12:35 +020013
developer26f763e2020-04-21 09:28:26 +020014config SYS_DCACHE_SIZE
15 default 32768
16
17config SYS_DCACHE_LINE_SIZE
18 default 32
19
20config SYS_ICACHE_SIZE
21 default 65536
22
23config SYS_ICACHE_LINE_SIZE
24 default 32
25
developer29b37c52020-04-21 09:28:34 +020026config SYS_TEXT_BASE
developer19d572e2020-04-21 09:28:47 +020027 default 0x9c000000 if !SPL
28 default 0x80200000 if SPL
29
30config SPL_TEXT_BASE
developer29b37c52020-04-21 09:28:34 +020031 default 0x9c000000
32
developer19d572e2020-04-21 09:28:47 +020033config SPL_PAYLOAD
34 default "u-boot-lzma.img" if SPL_LZMA
35
36config BUILD_TARGET
37 default "u-boot-with-spl.bin" if SPL
developer18ec8d62020-11-12 16:35:52 +080038 default "u-boot.bin"
developer19d572e2020-04-21 09:28:47 +020039
Stefan Roese65da15e2018-09-05 15:12:35 +020040choice
41 prompt "MediaTek MIPS SoC select"
42
developer18ec8d62020-11-12 16:35:52 +080043config SOC_MT7620
44 bool "MT7620"
Tom Rini3ef67ae2021-08-26 11:47:59 -040045 select SYS_CACHE_SHIFT_5
developer18ec8d62020-11-12 16:35:52 +080046 select SYS_MIPS_CACHE_INIT_RAM_LOAD
47 select PINCTRL_MT7620
48 select MT7620_SERIAL
49 select MISC
50 select SPL_SEPARATE_BSS if SPL
51 select SPL_LOADER_SUPPORT if SPL
52 select SPL_OF_CONTROL if SPL_DM
53 select SPL_OF_PLATDATA if SPL_DM
54 select SPL_DM_SERIAL if SPL_DM
55 help
56 This supports MediaTek MT7620.
57
developer89f051b2019-04-30 11:13:58 +080058config SOC_MT7628
59 bool "MT7628"
Tom Rini3ef67ae2021-08-26 11:47:59 -040060 select SYS_CACHE_SHIFT_5
developer29b37c52020-04-21 09:28:34 +020061 select MIPS_INIT_STACK_IN_SRAM
62 select MIPS_SRAM_INIT
63 select SYS_MIPS_CACHE_INIT_RAM_LOAD
developer591826e2019-09-25 17:45:43 +080064 select PINCTRL_MT7628
65 select MTK_SERIAL
developer93f74002020-11-12 16:35:28 +080066 select SYSRESET
developer3b3015f2020-04-21 09:28:30 +020067 select SYSRESET_RESETCTL
developer19d572e2020-04-21 09:28:47 +020068 select SPL_SEPARATE_BSS if SPL
69 select SPL_INIT_STACK_WITHOUT_MALLOC_F if SPL
70 select SPL_LOADER_SUPPORT if SPL
71 select SPL_OF_CONTROL if SPL_DM
72 select SPL_SIMPLE_BUS if SPL_DM
73 select SPL_DM_SERIAL if SPL_DM
Simon Glassf4d60392021-08-08 12:20:12 -060074 select SPL_CLK if SPL_DM && SPL_SERIAL
developer19d572e2020-04-21 09:28:47 +020075 select SPL_SYSRESET if SPL_DM
76 select SPL_OF_LIBFDT if SPL_OF_CONTROL
Stefan Roese65da15e2018-09-05 15:12:35 +020077 help
developer89f051b2019-04-30 11:13:58 +080078 This supports MediaTek MT7628/MT7688.
Stefan Roese65da15e2018-09-05 15:12:35 +020079
80endchoice
81
developer18ec8d62020-11-12 16:35:52 +080082source "arch/mips/mach-mtmips/mt7620/Kconfig"
developer37e34ba2020-11-12 16:35:23 +080083source "arch/mips/mach-mtmips/mt7628/Kconfig"
Stefan Roese2052a932018-08-16 15:27:30 +020084
Stefan Roese65da15e2018-09-05 15:12:35 +020085endmenu