]>
Commit | Line | Data |
---|---|---|
4c835a60 | 1 | menu "MediaTek MIPS platforms" |
16b94903 | 2 | depends on ARCH_MTMIPS |
4c835a60 | 3 | |
df3ab898 GLR |
4 | config SYS_VENDOR |
5 | default "mediatek" if BOARD_MT7628_RFB || BOARD_MT7620_RFB || BOARD_MT7620_MT7530_RFB | |
6 | ||
4c835a60 SR |
7 | config SYS_MALLOC_F_LEN |
8 | default 0x1000 | |
9 | ||
10 | config SYS_SOC | |
dd4fdc0b | 11 | default "mt7620" if SOC_MT7620 |
4bc0104c | 12 | default "mt7621" if SOC_MT7621 |
16b94903 | 13 | default "mt7628" if SOC_MT7628 |
4c835a60 | 14 | |
79765201 WG |
15 | config SYS_DCACHE_SIZE |
16 | default 32768 | |
17 | ||
18 | config SYS_DCACHE_LINE_SIZE | |
19 | default 32 | |
20 | ||
21 | config SYS_ICACHE_SIZE | |
4bc0104c WG |
22 | default 65536 if SOC_MT7620 || SOC_MT7628 |
23 | default 32768 if SOC_MT7621 | |
79765201 WG |
24 | |
25 | config SYS_ICACHE_LINE_SIZE | |
26 | default 32 | |
27 | ||
4bc0104c WG |
28 | config SYS_SCACHE_LINE_SIZE |
29 | default 32 if SOC_MT7621 | |
30 | ||
98463903 | 31 | config TEXT_BASE |
4bc0104c WG |
32 | default 0x9c000000 if !SPL && !SOC_MT7621 |
33 | default 0x80200000 if SPL || SOC_MT7621 | |
7a4b6964 WG |
34 | |
35 | config SPL_TEXT_BASE | |
4bc0104c WG |
36 | default 0x9c000000 if !SOC_MT7621 |
37 | default 0x80100000 if SOC_MT7621 | |
38 | ||
39 | config SPL_SIZE_LIMIT | |
40 | default 0x30000 if SOC_MT7621 | |
41 | ||
42 | config TPL_TEXT_BASE | |
43 | default 0xbfc00000 if SOC_MT7621 | |
44 | ||
45 | config TPL_MAX_SIZE | |
46 | default 4096 if SOC_MT7621 | |
02cd449f | 47 | |
7a4b6964 WG |
48 | config SPL_PAYLOAD |
49 | default "u-boot-lzma.img" if SPL_LZMA | |
50 | ||
51 | config BUILD_TARGET | |
4bc0104c WG |
52 | default "u-boot-with-spl.bin" if SPL && !SOC_MT7621 |
53 | default "u-boot-lzma.img" if SOC_MT7621 | |
dd4fdc0b | 54 | default "u-boot.bin" |
7a4b6964 | 55 | |
4bc0104c WG |
56 | config MAX_MEM_SIZE |
57 | int | |
58 | default 256 if SOC_MT7620 || SOC_MT7628 | |
59 | default 512 if SOC_MT7621 | |
60 | ||
4c835a60 SR |
61 | choice |
62 | prompt "MediaTek MIPS SoC select" | |
63 | ||
dd4fdc0b WG |
64 | config SOC_MT7620 |
65 | bool "MT7620" | |
ab92b38a | 66 | select SYS_CACHE_SHIFT_5 |
dd4fdc0b WG |
67 | select SYS_MIPS_CACHE_INIT_RAM_LOAD |
68 | select PINCTRL_MT7620 | |
69 | select MT7620_SERIAL | |
70 | select MISC | |
71 | select SPL_SEPARATE_BSS if SPL | |
72 | select SPL_LOADER_SUPPORT if SPL | |
73 | select SPL_OF_CONTROL if SPL_DM | |
74 | select SPL_OF_PLATDATA if SPL_DM | |
75 | select SPL_DM_SERIAL if SPL_DM | |
76 | help | |
77 | This supports MediaTek MT7620. | |
78 | ||
4bc0104c WG |
79 | config SOC_MT7621 |
80 | bool "MT7621" | |
81 | select MIPS_CM | |
82 | select MIPS_L2_CACHE | |
83 | select SYS_CACHE_SHIFT_5 | |
84 | select SYS_MIPS_CACHE_INIT_RAM_LOAD | |
85 | select PINCTRL_MT7621 | |
86 | select MTK_SERIAL | |
87 | select REGMAP | |
88 | select SYSCON | |
89 | select BINMAN | |
90 | select SUPPORT_TPL | |
91 | select SPL_LOADER_SUPPORT if SPL | |
92 | select SPL_INIT_STACK_WITHOUT_MALLOC_F if SPL | |
93 | help | |
94 | This supports MediaTek MT7621. | |
95 | ||
16b94903 WG |
96 | config SOC_MT7628 |
97 | bool "MT7628" | |
ab92b38a | 98 | select SYS_CACHE_SHIFT_5 |
02cd449f WG |
99 | select MIPS_INIT_STACK_IN_SRAM |
100 | select MIPS_SRAM_INIT | |
101 | select SYS_MIPS_CACHE_INIT_RAM_LOAD | |
3f851c99 WG |
102 | select PINCTRL_MT7628 |
103 | select MTK_SERIAL | |
7fcc740f | 104 | select SYSRESET |
c366a456 | 105 | select SYSRESET_RESETCTL |
7a4b6964 WG |
106 | select SPL_SEPARATE_BSS if SPL |
107 | select SPL_INIT_STACK_WITHOUT_MALLOC_F if SPL | |
108 | select SPL_LOADER_SUPPORT if SPL | |
109 | select SPL_OF_CONTROL if SPL_DM | |
110 | select SPL_SIMPLE_BUS if SPL_DM | |
111 | select SPL_DM_SERIAL if SPL_DM | |
2a736066 | 112 | select SPL_CLK if SPL_DM && SPL_SERIAL |
7a4b6964 WG |
113 | select SPL_SYSRESET if SPL_DM |
114 | select SPL_OF_LIBFDT if SPL_OF_CONTROL | |
4c835a60 | 115 | help |
16b94903 | 116 | This supports MediaTek MT7628/MT7688. |
4c835a60 SR |
117 | |
118 | endchoice | |
119 | ||
dd4fdc0b | 120 | source "arch/mips/mach-mtmips/mt7620/Kconfig" |
4bc0104c | 121 | source "arch/mips/mach-mtmips/mt7621/Kconfig" |
451abbbe | 122 | source "arch/mips/mach-mtmips/mt7628/Kconfig" |
b02f76a8 | 123 | |
4c835a60 | 124 | endmenu |