]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Finish converting CONFIG_SYS_CACHELINE_SIZE to Kconfig
authorTom Rini <trini@konsulko.com>
Thu, 26 Aug 2021 15:47:59 +0000 (11:47 -0400)
committerTom Rini <trini@konsulko.com>
Tue, 31 Aug 2021 21:47:49 +0000 (17:47 -0400)
We move the SYS_CACHE_SHIFT_N options from arch/arm/Kconfig to
arch/Kconfig, and introduce SYS_CACHE_SHIFT_4 to provide a size of 16.
Introduce select statements for other architectures based on current
usage.  For MIPS, we take the existing arch-specific symbol and migrate
to the generic symbol.  This lets us remove a little bit of otherwise
unused code.

Cc: Alexey Brodkin <alexey.brodkin@synopsys.com>
Cc: Anup Patel <anup.patel@wdc.com>
Cc: Atish Patra <atish.patra@wdc.com>
Cc: Bin Meng <bmeng.cn@gmail.com>
Cc: Leo <ycliang@andestech.com>
Cc: Palmer Dabbelt <palmer@dabbelt.com>
Cc: Paul Walmsley <paul.walmsley@sifive.com>
Cc: Sean Anderson <seanga2@gmail.com>
Cc: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Rini <trini@konsulko.com>
Acked-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
Reviewed-by: Rick Chen <rick@andestech.com>
35 files changed:
arch/Kconfig
arch/arc/include/asm/cache.h
arch/arm/Kconfig
arch/mips/Kconfig
arch/mips/include/asm/cache.h
arch/mips/mach-bmips/Kconfig
arch/mips/mach-mtmips/Kconfig
arch/mips/mach-pic32/Kconfig
arch/powerpc/cpu/mpc83xx/Kconfig
arch/powerpc/cpu/mpc85xx/Kconfig
arch/powerpc/cpu/mpc8xx/Kconfig
arch/powerpc/include/asm/cache.h
arch/riscv/Kconfig
arch/sandbox/include/asm/cache.h
arch/x86/include/asm/cache.h
include/configs/M5208EVBE.h
include/configs/M5235EVB.h
include/configs/M5249EVB.h
include/configs/M5253DEMO.h
include/configs/M5272C3.h
include/configs/M5275EVB.h
include/configs/M5282EVB.h
include/configs/M53017EVB.h
include/configs/M5329EVB.h
include/configs/M5373EVB.h
include/configs/amcore.h
include/configs/astro_mcf5373l.h
include/configs/cobra5272.h
include/configs/eb_cpu5282.h
include/configs/mx7ulp_evk.h
include/configs/rk3188_common.h
include/configs/rk3368_common.h
include/configs/sifive-unmatched.h
include/configs/sipeed-maix.h
include/configs/stmark2.h

index b6f9e177b645f90bb0d2aa0cd2384bb949a6de10..25f4a15b19f9ce21088b3aa4cb25e8336eda4327 100644 (file)
@@ -7,6 +7,27 @@ config HAVE_ARCH_IOREMAP
 config NEEDS_MANUAL_RELOC
        bool
 
+config SYS_CACHE_SHIFT_4
+       bool
+
+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
+       default 16 if SYS_CACHE_SHIFT_4
+       # Fall-back for MIPS
+       default 32 if MIPS
+
 config LINKER_LIST_ALIGN
        int
        default 32 if SANDBOX
@@ -29,6 +50,7 @@ config ARC
        select DM
        select HAVE_PRIVATE_LIBGCC
        select SUPPORT_OF_CONTROL
+       select SYS_CACHE_SHIFT_7
        select TIMER
 
 config ARM
@@ -44,6 +66,7 @@ config M68K
        select NEEDS_MANUAL_RELOC
        select SYS_BOOT_GET_CMDLINE
        select SYS_BOOT_GET_KBD
+       select SYS_CACHE_SHIFT_4
        select SUPPORT_OF_CONTROL
 
 config MICROBLAZE
@@ -122,6 +145,7 @@ config SANDBOX
        select SPI
        select SUPPORT_OF_CONTROL
        select SYSRESET_CMD_POWEROFF
+       select SYS_CACHE_SHIFT_4
        select IRQ
        select SUPPORT_EXTENSION_SCAN
        imply BITREVERSE
@@ -188,6 +212,7 @@ config X86
        select OF_CONTROL
        select PCI
        select SUPPORT_OF_CONTROL
+       select SYS_CACHE_SHIFT_6
        select TIMER
        select USE_PRIVATE_LIBGCC
        select X86_TSC_TIMER
index ab61846b5ab9983cebc1f0bfdc3fe4e88b24ff12..a48e1aec6889e0d2578085a67c295aca5ac06054 100644 (file)
@@ -16,9 +16,6 @@
  */
 #define ARCH_DMA_MINALIGN      128
 
-/* CONFIG_SYS_CACHELINE_SIZE is used a lot in drivers */
-#define CONFIG_SYS_CACHELINE_SIZE      ARCH_DMA_MINALIGN
-
 #if defined(ARC_MMU_ABSENT)
 #define CONFIG_ARC_MMU_VER 0
 #elif defined(CONFIG_ARC_MMU_V2)
index c3e22099acf238f53967ee89b7e5f7284d497e3f..3b1e25721563639b143ae3153b541f7ab285c2ce 100644 (file)
@@ -338,21 +338,6 @@ 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
-
 choice
        prompt "Select the ARM data write cache policy"
        default SYS_ARM_CACHE_WRITETHROUGH if TARGET_BCMCYGNUS || \
index 6b1f10d9a0ebfcc25630ec1cfe02245908ed421a..fa221f1d042cd6a60667be1656a7646898f53456 100644 (file)
@@ -22,7 +22,7 @@ config TARGET_MALTA
        select DYNAMIC_IO_PORT_BASE
        select MIPS_CM
        select MIPS_INSERT_BOOT_CONFIG
-       select MIPS_L1_CACHE_SHIFT_6
+       select SYS_CACHE_SHIFT_6
        select MIPS_L2_CACHE
        select OF_CONTROL
        select OF_ISA_BUS
@@ -132,7 +132,7 @@ config TARGET_BOSTON
        select DM
        select DM_SERIAL
        select MIPS_CM
-       select MIPS_L1_CACHE_SHIFT_6
+       select SYS_CACHE_SHIFT_6
        select MIPS_L2_CACHE
        select OF_BOARD_SETUP
        select OF_CONTROL
@@ -153,7 +153,7 @@ config TARGET_XILFPGA
        select DM_ETH
        select DM_GPIO
        select DM_SERIAL
-       select MIPS_L1_CACHE_SHIFT_4
+       select SYS_CACHE_SHIFT_4
        select OF_CONTROL
        select ROM_EXCEPTION_VECTORS
        select SUPPORTS_CPU_MIPS32_R1
@@ -566,26 +566,6 @@ config SYS_CACHE_SIZE_AUTO
          so if you know the cache configuration for your system at compile
          time it would be beneficial to configure it.
 
-config MIPS_L1_CACHE_SHIFT_4
-       bool
-
-config MIPS_L1_CACHE_SHIFT_5
-       bool
-
-config MIPS_L1_CACHE_SHIFT_6
-       bool
-
-config MIPS_L1_CACHE_SHIFT_7
-       bool
-
-config MIPS_L1_CACHE_SHIFT
-       int
-       default "7" if MIPS_L1_CACHE_SHIFT_7
-       default "6" if MIPS_L1_CACHE_SHIFT_6
-       default "5" if MIPS_L1_CACHE_SHIFT_5
-       default "4" if MIPS_L1_CACHE_SHIFT_4
-       default "5"
-
 config MIPS_L2_CACHE
        bool
        help
index 00696e672de0222037266bcd81f316a226404683..d3e8a8cd414f92b135abdc1cdfda06a9867040b5 100644 (file)
@@ -6,17 +6,7 @@
 #ifndef __MIPS_CACHE_H__
 #define __MIPS_CACHE_H__
 
-#define L1_CACHE_SHIFT         CONFIG_MIPS_L1_CACHE_SHIFT
-#define L1_CACHE_BYTES         (1 << L1_CACHE_SHIFT)
-
-#define ARCH_DMA_MINALIGN      (L1_CACHE_BYTES)
-
-/*
- * CONFIG_SYS_CACHELINE_SIZE is still used in various drivers primarily for
- * DMA buffer alignment. Satisfy those drivers by providing it as a synonym
- * of ARCH_DMA_MINALIGN for now.
- */
-#define CONFIG_SYS_CACHELINE_SIZE ARCH_DMA_MINALIGN
+#define ARCH_DMA_MINALIGN      CONFIG_SYS_CACHELINE_SIZE
 
 #ifndef __ASSEMBLY__
 /**
index b259a931c9fbbe1d8cf809c8961f6b2c11f56c8c..01d919f2dbe982d1881671ea705b1be08cf7790d 100644 (file)
@@ -21,7 +21,7 @@ choice
 
 config SOC_BMIPS_BCM3380
        bool "BMIPS BCM3380 family"
-       select MIPS_L1_CACHE_SHIFT_4
+       select SYS_CACHE_SHIFT_4
        select MIPS_TUNE_4KC
        select SUPPORTS_BIG_ENDIAN
        select SUPPORTS_CPU_MIPS32_R1
@@ -31,7 +31,7 @@ config SOC_BMIPS_BCM3380
 
 config SOC_BMIPS_BCM6318
        bool "BMIPS BCM6318 family"
-       select MIPS_L1_CACHE_SHIFT_4
+       select SYS_CACHE_SHIFT_4
        select MIPS_TUNE_4KC
        select SUPPORTS_BIG_ENDIAN
        select SUPPORTS_CPU_MIPS32_R1
@@ -41,7 +41,7 @@ config SOC_BMIPS_BCM6318
 
 config SOC_BMIPS_BCM6328
        bool "BMIPS BCM6328 family"
-       select MIPS_L1_CACHE_SHIFT_4
+       select SYS_CACHE_SHIFT_4
        select MIPS_TUNE_4KC
        select SUPPORTS_BIG_ENDIAN
        select SUPPORTS_CPU_MIPS32_R1
@@ -51,7 +51,7 @@ config SOC_BMIPS_BCM6328
 
 config SOC_BMIPS_BCM6338
        bool "BMIPS BCM6338 family"
-       select MIPS_L1_CACHE_SHIFT_4
+       select SYS_CACHE_SHIFT_4
        select MIPS_TUNE_4KC
        select SUPPORTS_BIG_ENDIAN
        select SUPPORTS_CPU_MIPS32_R1
@@ -61,7 +61,7 @@ config SOC_BMIPS_BCM6338
 
 config SOC_BMIPS_BCM6348
        bool "BMIPS BCM6348 family"
-       select MIPS_L1_CACHE_SHIFT_4
+       select SYS_CACHE_SHIFT_4
        select MIPS_TUNE_4KC
        select SUPPORTS_BIG_ENDIAN
        select SUPPORTS_CPU_MIPS32_R1
@@ -71,7 +71,7 @@ config SOC_BMIPS_BCM6348
 
 config SOC_BMIPS_BCM6358
        bool "BMIPS BCM6358 family"
-       select MIPS_L1_CACHE_SHIFT_4
+       select SYS_CACHE_SHIFT_4
        select MIPS_TUNE_4KC
        select SUPPORTS_BIG_ENDIAN
        select SUPPORTS_CPU_MIPS32_R1
@@ -81,7 +81,7 @@ config SOC_BMIPS_BCM6358
 
 config SOC_BMIPS_BCM6368
        bool "BMIPS BCM6368 family"
-       select MIPS_L1_CACHE_SHIFT_4
+       select SYS_CACHE_SHIFT_4
        select MIPS_TUNE_4KC
        select SUPPORTS_BIG_ENDIAN
        select SUPPORTS_CPU_MIPS32_R1
@@ -91,7 +91,7 @@ config SOC_BMIPS_BCM6368
 
 config SOC_BMIPS_BCM6362
        bool "BMIPS BCM6362 family"
-       select MIPS_L1_CACHE_SHIFT_4
+       select SYS_CACHE_SHIFT_4
        select MIPS_TUNE_4KC
        select SUPPORTS_BIG_ENDIAN
        select SUPPORTS_CPU_MIPS32_R1
@@ -101,7 +101,7 @@ config SOC_BMIPS_BCM6362
 
 config SOC_BMIPS_BCM63268
        bool "BMIPS BCM63268 family"
-       select MIPS_L1_CACHE_SHIFT_4
+       select SYS_CACHE_SHIFT_4
        select MIPS_TUNE_4KC
        select SUPPORTS_BIG_ENDIAN
        select SUPPORTS_CPU_MIPS32_R1
@@ -112,7 +112,7 @@ config SOC_BMIPS_BCM63268
 
 config SOC_BMIPS_BCM6838
        bool "BMIPS BCM6838 family"
-       select MIPS_L1_CACHE_SHIFT_4
+       select SYS_CACHE_SHIFT_4
        select MIPS_TUNE_4KC
        select SUPPORTS_BIG_ENDIAN
        select SUPPORTS_CPU_MIPS32_R1
index 8756cadb0b637ee9798e4606e9f76ed953faee71..747988aed74c2e22176f0291061676fa53a16faf 100644 (file)
@@ -39,7 +39,7 @@ choice
 
 config SOC_MT7620
        bool "MT7620"
-       select MIPS_L1_CACHE_SHIFT_5
+       select SYS_CACHE_SHIFT_5
        select SYS_MIPS_CACHE_INIT_RAM_LOAD
        select PINCTRL_MT7620
        select MT7620_SERIAL
@@ -54,7 +54,7 @@ config SOC_MT7620
 
 config SOC_MT7628
        bool "MT7628"
-       select MIPS_L1_CACHE_SHIFT_5
+       select SYS_CACHE_SHIFT_5
        select MIPS_INIT_STACK_IN_SRAM
        select MIPS_SRAM_INIT
        select SYS_MIPS_CACHE_INIT_RAM_LOAD
index 5f13bf14ed6bae99b76fb851e8d3233ff67df731..2afa972074c19cf368462869756bede0259b7559 100644 (file)
@@ -9,7 +9,7 @@ choice
 
 config SOC_PIC32MZDA
        bool "Microchip PIC32MZ[DA] family"
-       select MIPS_L1_CACHE_SHIFT_4
+       select SYS_CACHE_SHIFT_4
        select ROM_EXCEPTION_VECTORS
        select SUPPORTS_CPU_MIPS32_R1
        select SUPPORTS_CPU_MIPS32_R2
index 083febe5bb3dea0478abc153041d7efb0e34efe1..7c922b230964a386a71e7b8cd4cf42b2675cb4cf 100644 (file)
@@ -131,6 +131,7 @@ config MPC83XX_LDP_PIN
 config ARCH_MPC830X
        bool
        select MPC83XX_SDHC_SUPPORT
+       select SYS_CACHE_SHIFT_5
 
 config ARCH_MPC8308
        bool
@@ -154,6 +155,7 @@ config ARCH_MPC831X
        select MPC83XX_PCI_SUPPORT
        select MPC83XX_TSEC1_SUPPORT
        select MPC83XX_TSEC2_SUPPORT
+       select SYS_CACHE_SHIFT_5
 
 config ARCH_MPC8313
        bool
@@ -165,9 +167,11 @@ config ARCH_MPC832X
        bool
        select MPC83XX_QUICC_ENGINE
        select MPC83XX_PCI_SUPPORT
+       select SYS_CACHE_SHIFT_5
 
 config ARCH_MPC834X
        bool
+       select SYS_CACHE_SHIFT_5
 
 config ARCH_MPC8349
        bool
@@ -184,6 +188,7 @@ config ARCH_MPC8360
        select MPC83XX_PCI_SUPPORT
        select MPC83XX_LDP_PIN
        select MPC83XX_SECOND_I2C
+       select SYS_CACHE_SHIFT_5
 
 config ARCH_MPC837X
        bool
@@ -196,6 +201,7 @@ config ARCH_MPC837X
        select MPC83XX_SATA_SUPPORT
        select MPC83XX_LDP_PIN
        select MPC83XX_SECOND_I2C
+       select SYS_CACHE_SHIFT_5
        select FSL_ELBC
 
 config SYS_IMMR
index cbc8ba8d5af4ffe49f574cb39b1d60792d14f4f7..cc2e4ff6472d1f2a4303a4b689065f85bedc146b 100644 (file)
@@ -48,6 +48,7 @@ config TARGET_MPC8548CDS
        bool "Support MPC8548CDS"
        select ARCH_MPC8548
        select FSL_VIA
+       select SYS_CACHE_SHIFT_5
 
 config TARGET_P1010RDB_PA
        bool "Support P1010RDB_PA"
@@ -322,6 +323,7 @@ config ARCH_MPC8540
 config ARCH_MPC8544
        bool
        select FSL_LAW
+       select SYS_CACHE_SHIFT_5
        select SYS_FSL_ERRATUM_A005125
        select FSL_PCIE_RESET
        select SYS_FSL_HAS_DDR2
@@ -356,6 +358,7 @@ config ARCH_MPC8560
 config ARCH_P1010
        bool
        select FSL_LAW
+       select SYS_CACHE_SHIFT_5
        select SYS_FSL_ERRATUM_A004477
        select SYS_FSL_ERRATUM_A004508
        select SYS_FSL_ERRATUM_A005125
@@ -401,6 +404,7 @@ config ARCH_P1011
 config ARCH_P1020
        bool
        select FSL_LAW
+       select SYS_CACHE_SHIFT_5
        select SYS_FSL_ERRATUM_A004508
        select SYS_FSL_ERRATUM_A005125
        select SYS_FSL_ERRATUM_ELBC_A001
@@ -496,6 +500,7 @@ config ARCH_P1025
 config ARCH_P2020
        bool
        select FSL_LAW
+       select SYS_CACHE_SHIFT_5
        select SYS_FSL_ERRATUM_A004477
        select SYS_FSL_ERRATUM_A004508
        select SYS_FSL_ERRATUM_A005125
@@ -516,6 +521,7 @@ config ARCH_P2041
        bool
        select E500MC
        select FSL_LAW
+       select SYS_CACHE_SHIFT_6
        select SYS_FSL_ERRATUM_A004510
        select SYS_FSL_ERRATUM_A004849
        select SYS_FSL_ERRATUM_A005275
@@ -540,6 +546,7 @@ config ARCH_P3041
        bool
        select E500MC
        select FSL_LAW
+       select SYS_CACHE_SHIFT_6
        select SYS_FSL_DDR_VER_44
        select SYS_FSL_ERRATUM_A004510
        select SYS_FSL_ERRATUM_A004849
@@ -569,6 +576,7 @@ config ARCH_P4080
        bool
        select E500MC
        select FSL_LAW
+       select SYS_CACHE_SHIFT_6
        select SYS_FSL_DDR_VER_44
        select SYS_FSL_ERRATUM_A004510
        select SYS_FSL_ERRATUM_A004580
@@ -607,6 +615,7 @@ config ARCH_P5040
        bool
        select E500MC
        select FSL_LAW
+       select SYS_CACHE_SHIFT_6
        select SYS_FSL_DDR_VER_44
        select SYS_FSL_ERRATUM_A004510
        select SYS_FSL_ERRATUM_A004699
@@ -630,11 +639,13 @@ config ARCH_P5040
 
 config ARCH_QEMU_E500
        bool
+       select SYS_CACHE_SHIFT_5
 
 config ARCH_T1024
        bool
        select E500MC
        select FSL_LAW
+       select SYS_CACHE_SHIFT_6
        select SYS_FSL_DDR_VER_50
        select SYS_FSL_ERRATUM_A008378
        select SYS_FSL_ERRATUM_A008109
@@ -657,6 +668,7 @@ config ARCH_T1040
        bool
        select E500MC
        select FSL_LAW
+       select SYS_CACHE_SHIFT_6
        select SYS_FSL_DDR_VER_50
        select SYS_FSL_ERRATUM_A008044
        select SYS_FSL_ERRATUM_A008378
@@ -679,6 +691,7 @@ config ARCH_T1042
        bool
        select E500MC
        select FSL_LAW
+       select SYS_CACHE_SHIFT_6
        select SYS_FSL_DDR_VER_50
        select SYS_FSL_ERRATUM_A008044
        select SYS_FSL_ERRATUM_A008378
@@ -702,6 +715,7 @@ config ARCH_T2080
        select E500MC
        select E6500
        select FSL_LAW
+       select SYS_CACHE_SHIFT_6
        select SYS_FSL_DDR_VER_47
        select SYS_FSL_ERRATUM_A006379
        select SYS_FSL_ERRATUM_A006593
@@ -731,6 +745,7 @@ config ARCH_T4240
        select E500MC
        select E6500
        select FSL_LAW
+       select SYS_CACHE_SHIFT_6
        select SYS_FSL_DDR_VER_47
        select SYS_FSL_ERRATUM_A004468
        select SYS_FSL_ERRATUM_A005871
index f112317376567b6fbc24c4783b4b6a019a338fc5..936cbda11bc37126e4cab13084c48b7ad9fc6dae 100644 (file)
@@ -19,9 +19,11 @@ choice
 
 config MPC866
        bool "MPC866"
+       select SYS_CACHE_SHIFT_4
 
 config MPC885
        bool "MPC885"
+       select SYS_CACHE_SHIFT_4
 
 endchoice
 
index ac8eeb4caa5ab391cbf0bd9d4c518265d9f2f5b8..f753ddf799ee76b6f0be0b89335c273874f89d35 100644 (file)
  */
 #define ARCH_DMA_MINALIGN      L1_CACHE_BYTES
 
-/*
- * For compatibility reasons support the CONFIG_SYS_CACHELINE_SIZE too
- */
-#ifndef CONFIG_SYS_CACHELINE_SIZE
-#define CONFIG_SYS_CACHELINE_SIZE      L1_CACHE_BYTES
-#endif
-
 #define        L1_CACHE_ALIGN(x)       (((x)+(L1_CACHE_BYTES-1))&~(L1_CACHE_BYTES-1))
 #define        L1_CACHE_PAGES          8
 
index 4b0c3dffa6b1e3a8a57304069e6d1dcfb564c58f..691ed113824557d192ae093dd1e20149362c37a2 100644 (file)
@@ -22,9 +22,11 @@ config TARGET_SIFIVE_UNLEASHED
 
 config TARGET_SIFIVE_UNMATCHED
        bool "Support SiFive Unmatched Board"
+       select SYS_CACHE_SHIFT_6
 
 config TARGET_SIPEED_MAIX
        bool "Support Sipeed Maix Board"
+       select SYS_CACHE_SHIFT_6
 
 config TARGET_OPENPITON_RISCV64
        bool "Support RISC-V cores on OpenPiton SoC"
index 9348a13e73dab15b82cd3952999247c6d0128280..609a835967b87cf6a62fc88ac62b5c613c3dfcff 100644 (file)
@@ -19,6 +19,5 @@
 #else
 #define ARCH_DMA_MINALIGN      16
 #endif
-#define CONFIG_SYS_CACHELINE_SIZE      ARCH_DMA_MINALIGN
 
 #endif /* __SANDBOX_CACHE_H__ */
index 145b8784de1eb50ca3bd0527725bda275ad79343..256a3c01ed98f1b571582421db8c8462a449c62f 100644 (file)
@@ -7,13 +7,8 @@
 #define __X86_CACHE_H__
 
 /*
- * If CONFIG_SYS_CACHELINE_SIZE is defined use it for DMA alignment.  Otherwise
- * use 64-bytes, a safe default for x86.
+ * Use CONFIG_SYS_CACHELINE_SIZE (which is set to 64-bytes) for DMA alignment.
  */
-#ifndef CONFIG_SYS_CACHELINE_SIZE
-#define CONFIG_SYS_CACHELINE_SIZE      64
-#endif
-
 #define ARCH_DMA_MINALIGN              CONFIG_SYS_CACHELINE_SIZE
 
 static inline void wbinvd(void)
index d75946b022c26fd8ec3cefa7f7770e9644f5b0fe..93a2806a8a09a8b47cb6e114ac51e591a0fb58c7 100644 (file)
        env/embedded.o(.text*);
 
 /* Cache Configuration */
-#define CONFIG_SYS_CACHELINE_SIZE      16
 
 #define ICACHE_STATUS                  (CONFIG_SYS_INIT_RAM_ADDR + \
                                         CONFIG_SYS_INIT_RAM_SIZE - 8)
index b0e6ed4e1d5c09297184d3abd9402c9475768c52..22c593851f0d8791a9af769fe93081409c90f56d 100644 (file)
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CONFIG_SYS_CACHELINE_SIZE      16
 
 #define ICACHE_STATUS                  (CONFIG_SYS_INIT_RAM_ADDR + \
                                         CONFIG_SYS_INIT_RAM_SIZE - 8)
index a8734697c1a253f026f52ac53a229bfdceb06ecf..2e8bbbb530117b180b11a27fbbc0bbd4d1ab6bb5 100644 (file)
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CONFIG_SYS_CACHELINE_SIZE      16
 
 #define ICACHE_STATUS                  (CONFIG_SYS_INIT_RAM_ADDR + \
                                         CONFIG_SYS_INIT_RAM_SIZE - 8)
index e1f54571d2482c8cb23849c0867a09a3191e6e15..cc7126c76e84bdd85126af8f340823c53586842f 100644 (file)
 #endif
 
 /* Cache Configuration */
-#define CONFIG_SYS_CACHELINE_SIZE      16
 
 #define ICACHE_STATUS                  (CONFIG_SYS_INIT_RAM_ADDR + \
                                         CONFIG_SYS_INIT_RAM_SIZE - 8)
index 35977cc5c2ce600ab4cf4994fe609e87906848e3..02b8e373a763270e797b3af3e0ed155d5e695c36 100644 (file)
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CONFIG_SYS_CACHELINE_SIZE      16
 
 #define ICACHE_STATUS                  (CONFIG_SYS_INIT_RAM_ADDR + \
                                         CONFIG_SYS_INIT_RAM_SIZE - 8)
index f66ecc8e8f75dda23e6f01060e04a607d65affd4..29b0f7b67fa5d77dc1bd8dcd923c14dbecf017ff 100644 (file)
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CONFIG_SYS_CACHELINE_SIZE      16
 
 #define ICACHE_STATUS                  (CONFIG_SYS_INIT_RAM_ADDR + \
                                         CONFIG_SYS_INIT_RAM_SIZE - 8)
index acaa2f1a9668b87edaf700123dc2b5c8425bd8a5..fb60ec87da7d8d99ec8371428a52289570468a48 100644 (file)
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CONFIG_SYS_CACHELINE_SIZE      16
 
 #define ICACHE_STATUS                  (CONFIG_SYS_INIT_RAM_ADDR + \
                                         CONFIG_SYS_INIT_RAM_SIZE - 8)
index adb6cc4ddab39542dfecc74c8c000e407bd3fa43..7ee38f810bb95b566b51c52893e53170d4a0d143 100644 (file)
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CONFIG_SYS_CACHELINE_SIZE      16
 
 #define ICACHE_STATUS                  (CONFIG_SYS_INIT_RAM_ADDR + \
                                         CONFIG_SYS_INIT_RAM_SIZE - 8)
index fc6cd2c0ecd38c732db85fb99d26bef4fa5448ee..cce6b560f1ac647d32d9d5efce3652fa343a8e02 100644 (file)
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CONFIG_SYS_CACHELINE_SIZE      16
 
 #define ICACHE_STATUS                  (CONFIG_SYS_INIT_RAM_ADDR + \
                                         CONFIG_SYS_INIT_RAM_SIZE - 8)
index 0b3ee11e0c2acb6a4ca3d9a1144724d75b9865f7..d0bb8a121f21ae7848d170326fdf185c62cd1fcd 100644 (file)
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CONFIG_SYS_CACHELINE_SIZE      16
 
 #define ICACHE_STATUS                  (CONFIG_SYS_INIT_RAM_ADDR + \
                                         CONFIG_SYS_INIT_RAM_SIZE - 8)
index 63b941a56bd6eb544a1528319b713429b4f6a6a8..8376eb14d2d1569b5179bb56b173f268de6976ce 100644 (file)
@@ -71,7 +71,6 @@
  * This is a single unified instruction/data cache.
  * sdram - single region - no masks
  */
-#define CONFIG_SYS_CACHELINE_SIZE      16
 
 #define ICACHE_STATUS                  (CONFIG_SYS_INIT_RAM_ADDR + \
                                         CONFIG_SYS_INIT_RAM_SIZE - 8)
index 5e117fb2187544463e098dd1db64fbd0ce672898..63e7e120f880db6b91fefd837dbfb79c46df2ca7 100644 (file)
 #endif
 
 /* Cache Configuration */
-#define CONFIG_SYS_CACHELINE_SIZE      16
 
 #define ICACHE_STATUS                  (CONFIG_SYS_INIT_RAM_ADDR + \
                                         CONFIG_SYS_INIT_RAM_SIZE - 8)
index 054b659abfbb26f94cb83a8280e155bfd6368fde..c68cf1114067f70cd4bcb396e21551107388c2c9 100644 (file)
@@ -234,7 +234,6 @@ enter a valid image address in flash */
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CONFIG_SYS_CACHELINE_SIZE      16
 
 #define ICACHE_STATUS                  (CONFIG_SYS_INIT_RAM_ADDR + \
                                         CONFIG_SYS_INIT_RAM_SIZE - 8)
index e4da6948340a31500431eb2928f99f7bedae65cb..97eedcf8016709cefdc46c59cafb25a9a9f7015f 100644 (file)
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CONFIG_SYS_CACHELINE_SIZE      16
 
 #define ICACHE_STATUS                  (CONFIG_SYS_INIT_RAM_ADDR + \
                                         CONFIG_SYS_INIT_RAM_SIZE - 8)
index e7d776a72ca5259439945e0bf28938650b70b9ed..fc2f8d83b8d28ba101e2306db56b9de1be9cd168 100644 (file)
@@ -33,8 +33,6 @@
 /* UART */
 #define LPUART_BASE                    LPUART4_RBASE
 
-#define CONFIG_SYS_CACHELINE_SIZE      64
-
 /* Miscellaneous configurable options */
 #define CONFIG_SYS_PROMPT              "=> "
 #define CONFIG_SYS_CBSIZE              512
index b567943056d0c42a077b90e1c5e44ea6de0b6d6a..59a16a77aa933c82880909618ea9beaa459f2224 100644 (file)
@@ -6,8 +6,6 @@
 #ifndef __CONFIG_RK3188_COMMON_H
 #define __CONFIG_RK3188_COMMON_H
 
-#define CONFIG_SYS_CACHELINE_SIZE      64
-
 #include <asm/arch-rockchip/hardware.h>
 #include "rockchip-common.h"
 
index 43471b94e49b48820b05a41fef81628bbc1b40ac..19a556921fe2a4f3658459ef35019fadb9c35231 100644 (file)
@@ -8,8 +8,6 @@
 
 #include "rockchip-common.h"
 
-#define CONFIG_SYS_CACHELINE_SIZE      64
-
 #include <asm/arch-rockchip/hardware.h>
 #include <linux/sizes.h>
 
index 4b655ec8ee0f3a3165a05af1e3a4cfc1be09992a..a51becb645d5f7ba445b6b79d4cd56a054bc2c7b 100644 (file)
@@ -36,8 +36,6 @@
 
 #define CONFIG_SYS_PCI_64BIT           1       /* enable 64-bit resources */
 
-#define CONFIG_SYS_CACHELINE_SIZE      64
-
 /* Environment options */
 
 #ifndef CONFIG_SPL_BUILD
index 5b1287855256790930425b329889707b2e12eb16..34e726eb894df66ecff319f87507548b6520bba6 100644 (file)
@@ -11,7 +11,6 @@
 /* Start just below the second bank so we don't clobber it during reloc */
 #define CONFIG_SYS_INIT_SP_ADDR 0x803FFFFF
 #define CONFIG_SYS_MALLOC_LEN SZ_128K
-#define CONFIG_SYS_CACHELINE_SIZE 64
 
 #define CONFIG_SYS_SDRAM_BASE 0x80000000
 #define CONFIG_SYS_SDRAM_SIZE SZ_8M
index f6fa96a5901b10340968659a4f4101a6c71876d5..c73c48cef8f439b7c845c6eee3cff7718b5d4c1a 100644 (file)
 #endif
 
 /* Cache Configuration */
-#define CONFIG_SYS_CACHELINE_SIZE      16
 #define ICACHE_STATUS                  (CONFIG_SYS_INIT_RAM_ADDR + \
                                         CONFIG_SYS_INIT_RAM_SIZE - 8)
 #define DCACHE_STATUS                  (CONFIG_SYS_INIT_RAM_ADDR + \