Kconfig: Move USE_ARCH_MEMCPY/MEMSET to Kconfig
authorFabio Estevam <fabio.estevam@nxp.com>
Thu, 15 Dec 2016 21:30:40 +0000 (19:30 -0200)
committerTom Rini <trini@konsulko.com>
Fri, 16 Dec 2016 12:14:38 +0000 (07:14 -0500)
Move USE_ARCH_MEMCPY/MEMSET options to Kconfig.

Make it "default y" for the ARMv7 architecture and make it
depend on !ARM64 && !SPL.

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
arch/arm/Kconfig
include/configs/armadillo-800eva.h
include/configs/blanche.h
include/configs/colibri_imx7.h
include/configs/colibri_vf.h
include/configs/exynos-common.h
include/configs/pcm052.h
include/configs/tegra-common.h
include/configs/uniphier.h
include/configs/vf610twr.h

index 714dd8b51493d21990e593cbd2dcee370dd490df..587f28892583e706185c9932903b2f1fb0416975 100644 (file)
@@ -126,6 +126,24 @@ config ENABLE_ARM_SOC_BOOT0_HOOK
          ARM_SOC_BOOT0_HOOK which contains the required assembler
          preprocessor code.
 
+config USE_ARCH_MEMCPY
+       bool "Use an assembly optimized implementation of memcpy"
+       default y if CPU_V7
+       depends on !ARM64 && !SPL
+       help
+         Enable the generation of an optimized version of memcpy.
+         Such implementation may be faster under some conditions
+         but may increase the binary size.
+
+config USE_ARCH_MEMSET
+       bool "Use an assembly optimized implementation of memset"
+       default y if CPU_V7
+       depends on !ARM64 && !SPL
+       help
+         Enable the generation of an optimized version of memset.
+         Such implementation may be faster under some conditions
+         but may increase the binary size.
+
 config ARCH_OMAP2
        bool
        select CPU_V7
index 2d24253468cd10cdd7fc6a1f091e1c2fa41c1e4d..3775a496a4c14b999efc238be0a049db825a9f51 100644 (file)
@@ -28,8 +28,6 @@
 
 #define CONFIG_ARCH_CPU_INIT
 #define CONFIG_BOARD_EARLY_INIT_F
-#define CONFIG_USE_ARCH_MEMSET
-#define CONFIG_USE_ARCH_MEMCPY
 #define CONFIG_TMU_TIMER
 #define CONFIG_SYS_DCACHE_OFF
 
index f094bbead61e4c39e762c81afde0b0ab8b4e68bf..0deb350e3fc8bacc286fac782c6aeba4cd3a5cd6 100755 (executable)
@@ -16,9 +16,6 @@
 
 #include "rcar-gen2-common.h"
 
-#define CONFIG_USE_ARCH_MEMSET
-#define CONFIG_USE_ARCH_MEMCPY
-
 /* STACK */
 #define CONFIG_SYS_INIT_SP_ADDR                0xE817FFFC
 #define STACK_AREA_SIZE                        0xC000
index 5ce0a34a5d178a34c430390771d328810f4f4aea..bc3b53bfd38049b2aaa9c91c457bcda83e9aa938 100644 (file)
@@ -15,8 +15,6 @@
 #include "mx7_common.h"
 
 #define CONFIG_SYS_THUMB_BUILD
-#define CONFIG_USE_ARCH_MEMCPY
-#define CONFIG_USE_ARCH_MEMSET
 
 /*#define CONFIG_DBG_MONITOR*/
 #define PHYS_SDRAM_SIZE                        SZ_512M
index d58145e59d5e7ac1a8cdc1283d47054291f6cd7d..47dea625ed5889d76ecce079c9c5f0f665a07918 100644 (file)
@@ -16,8 +16,6 @@
 
 #define CONFIG_VF610
 #define CONFIG_SYS_THUMB_BUILD
-#define CONFIG_USE_ARCH_MEMCPY
-#define CONFIG_USE_ARCH_MEMSET
 #define CONFIG_SYS_FSL_CLK
 
 #define CONFIG_ARCH_MISC_INIT
index 3b61a4104d72b39c1da23d891f166b71ab8750b4..566f2464cee798a48281a7c8140664c3723cba70 100644 (file)
@@ -20,9 +20,6 @@
 #define CONFIG_SKIP_LOWLEVEL_INIT
 #define CONFIG_BOARD_EARLY_INIT_F
 
-#define CONFIG_USE_ARCH_MEMCPY
-#define CONFIG_USE_ARCH_MEMSET
-
 /* Keep L2 Cache Disabled */
 
 /* input clock of PLL: 24MHz input clock */
index eb1944aa290983c428a4a03e1bc2db1b2eeb15e6..e70c3f01d2d680aadd537ec91c082cf47b18d4c7 100644 (file)
@@ -35,7 +35,6 @@
 #define CONFIG_SYS_NAND_ONFI_DETECTION
 
 #ifdef CONFIG_CMD_NAND
-#define CONFIG_USE_ARCH_MEMCPY
 #define CONFIG_SYS_MAX_NAND_DEVICE     1
 #define CONFIG_SYS_NAND_BASE           NFC_BASE_ADDR
 
index 63b711be0f683b700ebf51bd9e1769c72e314705..23a0e782e0fc738c2e5c14314128261ed3214ea9 100644 (file)
 #define CONFIG_SYS_MEMTEST_START       (NV_PA_SDRC_CS0 + 0x600000)
 #define CONFIG_SYS_MEMTEST_END         (CONFIG_SYS_MEMTEST_START + 0x100000)
 
-#ifndef CONFIG_ARM64
-#ifndef CONFIG_SPL_BUILD
-#define CONFIG_USE_ARCH_MEMCPY
-#endif
-#endif
-
 /*-----------------------------------------------------------------------
  * Physical Memory Map
  */
index f9c9f821bfaae27069e19f9eb6f20f629085bb4b..74f13732628a992550a8a0c74e27fc9290949db2 100644 (file)
 /* serial console configuration */
 #define CONFIG_BAUDRATE                        115200
 
-#if !defined(CONFIG_SPL_BUILD) && !defined(CONFIG_ARM64)
-#define CONFIG_USE_ARCH_MEMSET
-#define CONFIG_USE_ARCH_MEMCPY
-#endif
-
 #define CONFIG_SYS_LONGHELP            /* undef to save memory */
 
 #define CONFIG_CMDLINE_EDITING         /* add command line history     */
index af5ba61ec9eb75f3549257813c4ceec775eb0700..6aeb0782616db3b8a32a368371d7490c7cb523ad 100644 (file)
@@ -42,7 +42,6 @@
 #define CONFIG_SYS_NAND_ONFI_DETECTION
 
 #ifdef CONFIG_CMD_NAND
-#define CONFIG_USE_ARCH_MEMCPY
 #define CONFIG_SYS_MAX_NAND_DEVICE     1
 #define CONFIG_SYS_NAND_BASE           NFC_BASE_ADDR