2018-09-05 13:12:35 +00:00
|
|
|
menu "MediaTek MIPS platforms"
|
2019-04-30 03:13:58 +00:00
|
|
|
depends on ARCH_MTMIPS
|
2018-09-05 13:12:35 +00:00
|
|
|
|
2021-09-10 08:21:06 +00:00
|
|
|
config SYS_VENDOR
|
|
|
|
default "mediatek" if BOARD_MT7628_RFB || BOARD_MT7620_RFB || BOARD_MT7620_MT7530_RFB
|
|
|
|
|
2018-09-05 13:12:35 +00:00
|
|
|
config SYS_MALLOC_F_LEN
|
|
|
|
default 0x1000
|
|
|
|
|
|
|
|
config SYS_SOC
|
2020-11-12 08:35:52 +00:00
|
|
|
default "mt7620" if SOC_MT7620
|
2019-04-30 03:13:58 +00:00
|
|
|
default "mt7628" if SOC_MT7628
|
2018-09-05 13:12:35 +00:00
|
|
|
|
2020-04-21 07:28:26 +00:00
|
|
|
config SYS_DCACHE_SIZE
|
|
|
|
default 32768
|
|
|
|
|
|
|
|
config SYS_DCACHE_LINE_SIZE
|
|
|
|
default 32
|
|
|
|
|
|
|
|
config SYS_ICACHE_SIZE
|
|
|
|
default 65536
|
|
|
|
|
|
|
|
config SYS_ICACHE_LINE_SIZE
|
|
|
|
default 32
|
|
|
|
|
2020-04-21 07:28:34 +00:00
|
|
|
config SYS_TEXT_BASE
|
2020-04-21 07:28:47 +00:00
|
|
|
default 0x9c000000 if !SPL
|
|
|
|
default 0x80200000 if SPL
|
|
|
|
|
|
|
|
config SPL_TEXT_BASE
|
2020-04-21 07:28:34 +00:00
|
|
|
default 0x9c000000
|
|
|
|
|
2020-04-21 07:28:47 +00:00
|
|
|
config SPL_PAYLOAD
|
|
|
|
default "u-boot-lzma.img" if SPL_LZMA
|
|
|
|
|
|
|
|
config BUILD_TARGET
|
|
|
|
default "u-boot-with-spl.bin" if SPL
|
2020-11-12 08:35:52 +00:00
|
|
|
default "u-boot.bin"
|
2020-04-21 07:28:47 +00:00
|
|
|
|
2018-09-05 13:12:35 +00:00
|
|
|
choice
|
|
|
|
prompt "MediaTek MIPS SoC select"
|
|
|
|
|
2020-11-12 08:35:52 +00:00
|
|
|
config SOC_MT7620
|
|
|
|
bool "MT7620"
|
2021-08-26 15:47:59 +00:00
|
|
|
select SYS_CACHE_SHIFT_5
|
2020-11-12 08:35:52 +00:00
|
|
|
select SYS_MIPS_CACHE_INIT_RAM_LOAD
|
|
|
|
select PINCTRL_MT7620
|
|
|
|
select MT7620_SERIAL
|
|
|
|
select MISC
|
|
|
|
select SPL_SEPARATE_BSS if SPL
|
|
|
|
select SPL_LOADER_SUPPORT if SPL
|
|
|
|
select SPL_OF_CONTROL if SPL_DM
|
|
|
|
select SPL_OF_PLATDATA if SPL_DM
|
|
|
|
select SPL_DM_SERIAL if SPL_DM
|
|
|
|
help
|
|
|
|
This supports MediaTek MT7620.
|
|
|
|
|
2019-04-30 03:13:58 +00:00
|
|
|
config SOC_MT7628
|
|
|
|
bool "MT7628"
|
2021-08-26 15:47:59 +00:00
|
|
|
select SYS_CACHE_SHIFT_5
|
2020-04-21 07:28:34 +00:00
|
|
|
select MIPS_INIT_STACK_IN_SRAM
|
|
|
|
select MIPS_SRAM_INIT
|
|
|
|
select SYS_MIPS_CACHE_INIT_RAM_LOAD
|
2019-09-25 09:45:43 +00:00
|
|
|
select PINCTRL_MT7628
|
|
|
|
select MTK_SERIAL
|
2020-11-12 08:35:28 +00:00
|
|
|
select SYSRESET
|
2020-04-21 07:28:30 +00:00
|
|
|
select SYSRESET_RESETCTL
|
2020-04-21 07:28:47 +00:00
|
|
|
select SPL_SEPARATE_BSS if SPL
|
|
|
|
select SPL_INIT_STACK_WITHOUT_MALLOC_F if SPL
|
|
|
|
select SPL_LOADER_SUPPORT if SPL
|
|
|
|
select SPL_OF_CONTROL if SPL_DM
|
|
|
|
select SPL_SIMPLE_BUS if SPL_DM
|
|
|
|
select SPL_DM_SERIAL if SPL_DM
|
2021-08-08 18:20:12 +00:00
|
|
|
select SPL_CLK if SPL_DM && SPL_SERIAL
|
2020-04-21 07:28:47 +00:00
|
|
|
select SPL_SYSRESET if SPL_DM
|
|
|
|
select SPL_OF_LIBFDT if SPL_OF_CONTROL
|
2018-09-05 13:12:35 +00:00
|
|
|
help
|
2019-04-30 03:13:58 +00:00
|
|
|
This supports MediaTek MT7628/MT7688.
|
2018-09-05 13:12:35 +00:00
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
2020-11-12 08:35:52 +00:00
|
|
|
source "arch/mips/mach-mtmips/mt7620/Kconfig"
|
2020-11-12 08:35:23 +00:00
|
|
|
source "arch/mips/mach-mtmips/mt7628/Kconfig"
|
2018-08-16 13:27:30 +00:00
|
|
|
|
2018-09-05 13:12:35 +00:00
|
|
|
endmenu
|