mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-08 22:24:32 +00:00
dd4fdc0b14
This patch adds support for MediaTek MT7620 SoC. All files are dedicated for u-boot. Reviewed-by: Stefan Roese <sr@denx.de> Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
82 lines
1.7 KiB
Text
82 lines
1.7 KiB
Text
menu "MediaTek MIPS platforms"
|
|
depends on ARCH_MTMIPS
|
|
|
|
config SYS_MALLOC_F_LEN
|
|
default 0x1000
|
|
|
|
config SYS_SOC
|
|
default "mt7620" if SOC_MT7620
|
|
default "mt7628" if SOC_MT7628
|
|
|
|
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
|
|
|
|
config SYS_TEXT_BASE
|
|
default 0x9c000000 if !SPL
|
|
default 0x80200000 if SPL
|
|
|
|
config SPL_TEXT_BASE
|
|
default 0x9c000000
|
|
|
|
config SPL_PAYLOAD
|
|
default "u-boot-lzma.img" if SPL_LZMA
|
|
|
|
config BUILD_TARGET
|
|
default "u-boot-with-spl.bin" if SPL
|
|
default "u-boot.bin"
|
|
|
|
choice
|
|
prompt "MediaTek MIPS SoC select"
|
|
|
|
config SOC_MT7620
|
|
bool "MT7620"
|
|
select MIPS_L1_CACHE_SHIFT_5
|
|
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.
|
|
|
|
config SOC_MT7628
|
|
bool "MT7628"
|
|
select MIPS_L1_CACHE_SHIFT_5
|
|
select MIPS_INIT_STACK_IN_SRAM
|
|
select MIPS_SRAM_INIT
|
|
select SYS_MIPS_CACHE_INIT_RAM_LOAD
|
|
select PINCTRL_MT7628
|
|
select MTK_SERIAL
|
|
select SYSRESET
|
|
select SYSRESET_RESETCTL
|
|
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
|
|
select SPL_CLK if SPL_DM && SPL_SERIAL_SUPPORT
|
|
select SPL_SYSRESET if SPL_DM
|
|
select SPL_OF_LIBFDT if SPL_OF_CONTROL
|
|
help
|
|
This supports MediaTek MT7628/MT7688.
|
|
|
|
endchoice
|
|
|
|
source "arch/mips/mach-mtmips/mt7620/Kconfig"
|
|
source "arch/mips/mach-mtmips/mt7628/Kconfig"
|
|
|
|
endmenu
|