1menu "MediaTek MIPS platforms"
2	depends on ARCH_MTMIPS
3
4config SYS_MALLOC_F_LEN
5	default 0x1000
6
7config SYS_SOC
8	default "mt7620" if SOC_MT7620
9	default "mt7628" if SOC_MT7628
10
11config 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
23config SYS_TEXT_BASE
24	default 0x9c000000 if !SPL
25	default 0x80200000 if SPL
26
27config SPL_TEXT_BASE
28	default 0x9c000000
29
30config SPL_PAYLOAD
31	default "u-boot-lzma.img" if SPL_LZMA
32
33config BUILD_TARGET
34	default "u-boot-with-spl.bin" if SPL
35	default "u-boot.bin"
36
37choice
38	prompt "MediaTek MIPS SoC select"
39
40config 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
55config SOC_MT7628
56	bool "MT7628"
57	select MIPS_L1_CACHE_SHIFT_5
58	select MIPS_INIT_STACK_IN_SRAM
59	select MIPS_SRAM_INIT
60	select SYS_MIPS_CACHE_INIT_RAM_LOAD
61	select PINCTRL_MT7628
62	select MTK_SERIAL
63	select SYSRESET
64	select SYSRESET_RESETCTL
65	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
74	help
75	  This supports MediaTek MT7628/MT7688.
76
77endchoice
78
79source "arch/mips/mach-mtmips/mt7620/Kconfig"
80source "arch/mips/mach-mtmips/mt7628/Kconfig"
81
82endmenu
83