ARM: Move SYS_CACHELINE_SIZE over to Kconfig
[platform/kernel/u-boot.git] / arch / arm / Kconfig
index 84cabb8..e6d4a20 100644 (file)
@@ -6,6 +6,8 @@ config SYS_ARCH
 
 config ARM64
        bool
+       select PHYS_64BIT
+       select SYS_CACHE_SHIFT_6
 
 config DMA_ADDR_T_64BIT
        bool
@@ -19,37 +21,47 @@ config HAS_THUMB2
 
 config CPU_ARM720T
         bool
+       select SYS_CACHE_SHIFT_5
 
 config CPU_ARM920T
         bool
+       select SYS_CACHE_SHIFT_5
 
 config CPU_ARM926EJS
         bool
+       select SYS_CACHE_SHIFT_5
 
 config CPU_ARM946ES
         bool
+       select SYS_CACHE_SHIFT_5
 
 config CPU_ARM1136
         bool
+       select SYS_CACHE_SHIFT_5
 
 config CPU_ARM1176
         bool
         select HAS_VBAR
+       select SYS_CACHE_SHIFT_5
 
 config CPU_V7
         bool
         select HAS_VBAR
         select HAS_THUMB2
+       select SYS_CACHE_SHIFT_6
 
 config CPU_V7M
        bool
         select HAS_THUMB2
+       select SYS_CACHE_SHIFT_5
 
 config CPU_PXA
         bool
+       select SYS_CACHE_SHIFT_5
 
 config CPU_SA1100
         bool
+       select SYS_CACHE_SHIFT_5
 
 config SYS_CPU
         default "arm720t" if CPU_ARM720T
@@ -78,6 +90,21 @@ config SYS_ARM_ARCH
        default 4 if CPU_SA1100
        default 8 if ARM64
 
+config SYS_CACHE_SHIFT_5
+       bool
+
+config SYS_CACHE_SHIFT_6
+       bool
+
+config SYS_CACHE_SHIFT_7
+       bool
+
+config SYS_CACHELINE_SIZE
+       int
+       default 128 if SYS_CACHE_SHIFT_7
+       default 64 if SYS_CACHE_SHIFT_6
+       default 32 if SYS_CACHE_SHIFT_5
+
 config SEMIHOSTING
        bool "support boot from semihosting"
        help
@@ -304,13 +331,13 @@ config TARGET_VEXPRESS_CA9X4
        bool "Support vexpress_ca9x4"
        select CPU_V7
 
-config TARGET_KWB
-       bool "Support kwb"
+config TARGET_BRXRE1
+       bool "Support BRXRE1"
        select CPU_V7
        select SUPPORT_SPL
 
-config TARGET_TSERIES
-       bool "Support tseries"
+config TARGET_BRPPT1
+       bool "Support BRPPT1"
        select CPU_V7
        select SUPPORT_SPL
 
@@ -553,11 +580,14 @@ config TARGET_MX53SMD
 config OMAP34XX
        bool "OMAP34XX SoC"
        select CPU_V7
+       select SUPPORT_SPL
+       select USE_TINY_PRINTF
 
 config OMAP44XX
        bool "OMAP44XX SoC"
        select CPU_V7
        select SUPPORT_SPL
+       select USE_TINY_PRINTF
 
 config OMAP54XX
        bool "OMAP54XX SoC"
@@ -575,9 +605,10 @@ config AM43XX
          protocols, dual camera support, optional 3D graphics
          and an optional customer programmable secure boot.
 
-config RMOBILE
+config ARCH_RMOBILE
        bool "Renesas ARM SoCs"
-       select CPU_V7
+       select DM
+       select DM_SERIAL
 
 config TARGET_S32V234EVB
        bool "Support s32v234evb"
@@ -610,16 +641,8 @@ config TARGET_CM_T43
 
 config ARCH_SUNXI
        bool "Support sunxi (Allwinner) SoCs"
-       select CMD_BOOTZ
-       select CMD_DHCP
-       select CMD_EXT2
-       select CMD_EXT4
-       select CMD_FAT
-       select CMD_FS_GENERIC
        select CMD_GPIO
-       select CMD_MII
        select CMD_MMC if MMC
-       select CMD_PING
        select CMD_USB
        select DM
        select DM_ETH
@@ -627,7 +650,6 @@ config ARCH_SUNXI
        select DM_KEYBOARD
        select DM_SERIAL
        select DM_USB
-       select HUSH_PARSER
        select OF_BOARD_SETUP
        select OF_CONTROL
        select OF_SEPARATE
@@ -637,6 +659,7 @@ config ARCH_SUNXI
        select USB
        select USB_STORAGE
        select USB_KEYBOARD
+       select USE_TINY_PRINTF
 
 config TARGET_TS4800
        bool "Support TS4800"
@@ -665,10 +688,13 @@ config ARCH_ZYNQ
        select DM_GPIO
        select SPL_DM if SPL
        select DM_MMC
+       select DM_MMC_OPS
        select DM_SPI
        select DM_SERIAL
        select DM_SPI_FLASH
        select SPL_SEPARATE_BSS if SPL
+       select DM_USB if USB
+       select BLK
 
 config ARCH_ZYNQMP
        bool "Support Xilinx ZynqMP Platform"
@@ -677,6 +703,9 @@ config ARCH_ZYNQMP
        select OF_CONTROL
        select DM_SERIAL
        select SUPPORT_SPL
+       select CLK
+       select SPL_CLK
+       select DM_USB if USB
 
 config TEGRA
        bool "NVIDIA Tegra"
@@ -827,6 +856,7 @@ config ARCH_UNIPHIER
        select SPL
        select OF_CONTROL
        select SPL_OF_CONTROL
+       select OF_LIBFDT
        select DM
        select SPL_DM
        select DM_GPIO
@@ -845,16 +875,25 @@ config STM32
 
 config ARCH_ROCKCHIP
        bool "Support Rockchip SoCs"
-       select SUPPORT_SPL
-       select SPL
        select OF_CONTROL
-       select CPU_V7
+       select BLK
        select DM
+       select SPL_DM if SPL
+       select SYS_MALLOC_F
+       select SPL_SYS_MALLOC_SIMPLE if SPL
+       select DM_GPIO
+       select DM_I2C
+       select DM_MMC
+       select DM_MMC_OPS
+       select DM_SERIAL
+       select DM_SPI
+       select DM_SPI_FLASH
 
 config TARGET_THUNDERX_88XX
        bool "Support ThunderX 88xx"
        select ARM64
        select OF_CONTROL
+       select SYS_CACHE_SHIFT_7
 
 endchoice
 
@@ -886,7 +925,7 @@ source "arch/arm/cpu/armv7/omap-common/Kconfig"
 
 source "arch/arm/mach-orion5x/Kconfig"
 
-source "arch/arm/cpu/armv7/rmobile/Kconfig"
+source "arch/arm/mach-rmobile/Kconfig"
 
 source "arch/arm/mach-meson/Kconfig"
 
@@ -915,8 +954,8 @@ source "arch/arm/cpu/armv8/Kconfig"
 source "arch/arm/imx-common/Kconfig"
 
 source "board/bosch/shc/Kconfig"
-source "board/BuR/kwb/Kconfig"
-source "board/BuR/tseries/Kconfig"
+source "board/BuR/brxre1/Kconfig"
+source "board/BuR/brppt1/Kconfig"
 source "board/CarMediaLab/flea3/Kconfig"
 source "board/Marvell/aspenite/Kconfig"
 source "board/Marvell/gplugd/Kconfig"