config.mk files in mach-xxx directory are deprecated, this patch move the processor tuning option of compiler into Kconfig
Signed-off-by: Wills Wang <wills.w...@live.com> --- Changes in v4: - Add div64 macro for MIPS - Convert physical address to uncached and cached(KSEG0/1) memory range in map_physmem - Auto calculate baudrate for serial driver - Move pinctrl code in serial driver into arch/mips/mach-ath79 - Use global_data to save CPU/DDR/AHB clock - Use get_serial_clock to serial clock source - Use get_bus_freq instead of hardcode in SPI driver - Use arch_global_data to save SOC's type, revison and id - move CPU optimize tuning flag from config.mk to Kconfig Changes in v3: - Convert serial driver to driver model - Convert spi driver to driver model - Add support for device tree - Move SoC specific header files into arch/mips/mach-ath79/include/mach - Optimize assembly code - Same code style convertion Changes in v2: - Move all SoC specific header files into arch/mips/include/asm/arch-ath79 - Check SOC type and extract common code into arch/mips/mach-ath79 - Add a compatible spi driver - Move serial driver code into drivers/serial - Add a reference board implemention arch/mips/Kconfig | 9 +++++++++ arch/mips/mach-au1x00/config.mk | 8 -------- 2 files changed, 9 insertions(+), 8 deletions(-) delete mode 100644 arch/mips/mach-au1x00/config.mk diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index 09b8709..8672cc6 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig @@ -43,6 +43,7 @@ config TARGET_DBAU1X00 select SUPPORTS_CPU_MIPS32_R1 select SUPPORTS_CPU_MIPS32_R2 select SYS_MIPS_CACHE_INIT_RAM_LOAD + select OPTIMIZE_CPU_MIPS_4KC config TARGET_PB1X00 bool "Support pb1x00" @@ -50,6 +51,7 @@ config TARGET_PB1X00 select SUPPORTS_CPU_MIPS32_R1 select SUPPORTS_CPU_MIPS32_R2 select SYS_MIPS_CACHE_INIT_RAM_LOAD + select OPTIMIZE_CPU_MIPS_4KC config TARGET_AP121 bool "Support ap121" @@ -57,6 +59,7 @@ config TARGET_AP121 select SUPPORTS_CPU_MIPS32_R1 select SUPPORTS_CPU_MIPS32_R2 select SYS_MIPS_CACHE_INIT_RAM_LOAD + select OPTIMIZE_CPU_MIPS_24KC endchoice @@ -174,6 +177,12 @@ config SUPPORTS_CPU_MIPS64_R1 config SUPPORTS_CPU_MIPS64_R2 bool +config OPTIMIZE_CPU_MIPS_4KC + bool + +config OPTIMIZE_CPU_MIPS_24KC + bool + config CPU_MIPS32 bool default y if CPU_MIPS32_R1 || CPU_MIPS32_R2 diff --git a/arch/mips/mach-au1x00/config.mk b/arch/mips/mach-au1x00/config.mk deleted file mode 100644 index 5c89129..0000000 --- a/arch/mips/mach-au1x00/config.mk +++ /dev/null @@ -1,8 +0,0 @@ -# -# (C) Copyright 2011 -# Wolfgang Denk, DENX Software Engineering, w...@denx.de. -# -# SPDX-License-Identifier: GPL-2.0+ -# - -PLATFORM_CPPFLAGS += -mtune=4kc -- 1.9.1 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot