diff options
author | Tom Rini <trini@konsulko.com> | 2019-12-04 17:13:35 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-12-04 17:13:35 -0500 |
commit | c1c6e4a9da674bce5980d82f8a70a56e023e58c3 (patch) | |
tree | 46548095b9e4baaa3a7de1d0ce8d07168ad3c01a /arch/arm | |
parent | 94d022bb400890f22fe35220d2519c3bce73f05e (diff) | |
parent | fb4384490df4e753dcac0478bdb5e912994ef9d6 (diff) |
Merge branch '2019-10-27-mtd-cleanup'
- Merge the series to clean up our MTD Kconfig and Makefile logic
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/Kconfig | 4 | ||||
-rw-r--r-- | arch/arm/mach-imx/Kconfig | 2 | ||||
-rw-r--r-- | arch/arm/mach-imx/cmd_nandbcb.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap2/mem-common.c | 6 |
4 files changed, 8 insertions, 6 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index f96841c777..f9dab073ea 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -974,7 +974,7 @@ config ARCH_SUNXI select SPL_USE_TINY_PRINTF imply CMD_DM imply CMD_GPT - imply CMD_UBI if NAND + imply CMD_UBI if MTD_RAW_NAND imply DISTRO_DEFAULTS imply FAT_WRITE imply FIT @@ -1004,7 +1004,7 @@ config ARCH_VF610 select CPU_V7A select SYS_FSL_ERRATUM_ESDHC111 imply CMD_MTDPARTS - imply NAND + imply MTD_RAW_NAND config ARCH_ZYNQ bool "Xilinx Zynq based platform" diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig index 751c0b52d7..fee6d56c4d 100644 --- a/arch/arm/mach-imx/Kconfig +++ b/arch/arm/mach-imx/Kconfig @@ -80,7 +80,7 @@ config CMD_HDMIDETECT config CMD_NANDBCB bool "i.MX6 NAND Boot Control Block(BCB) command" - depends on NAND && CMD_MTDPARTS + depends on MTD_RAW_NAND && CMD_MTDPARTS select BCH if MX6UL || MX6ULL default y if (ARCH_MX6 && NAND_MXS) || (ARCH_MX7 && NAND_MXS) help diff --git a/arch/arm/mach-imx/cmd_nandbcb.c b/arch/arm/mach-imx/cmd_nandbcb.c index 09c4356529..9d3ed1aac3 100644 --- a/arch/arm/mach-imx/cmd_nandbcb.c +++ b/arch/arm/mach-imx/cmd_nandbcb.c @@ -24,6 +24,8 @@ #include <linux/mtd/mtd.h> #include <nand.h> +#include "../../../cmd/legacy-mtd-utils.h" + #define BF_VAL(v, bf) (((v) & bf##_MASK) >> bf##_OFFSET) #define GETBIT(v, n) (((v) >> (n)) & 0x1) diff --git a/arch/arm/mach-omap2/mem-common.c b/arch/arm/mach-omap2/mem-common.c index ff1e3125a0..50d5f3e9eb 100644 --- a/arch/arm/mach-omap2/mem-common.c +++ b/arch/arm/mach-omap2/mem-common.c @@ -25,7 +25,7 @@ const struct gpmc *gpmc_cfg = (struct gpmc *)GPMC_BASE; #if defined(CONFIG_NOR) char gpmc_cs0_flash = MTD_DEV_TYPE_NOR; -#elif defined(CONFIG_NAND) || defined(CONFIG_CMD_NAND) +#elif defined(CONFIG_MTD_RAW_NAND) || defined(CONFIG_CMD_NAND) char gpmc_cs0_flash = MTD_DEV_TYPE_NAND; #elif defined(CONFIG_CMD_ONENAND) char gpmc_cs0_flash = MTD_DEV_TYPE_ONENAND; @@ -93,7 +93,7 @@ void set_gpmc_cs0(int flash_type) STNOR_GPMC_CONFIG7 }; #endif -#if defined(CONFIG_NAND) || defined(CONFIG_CMD_NAND) +#if defined(CONFIG_MTD_RAW_NAND) || defined(CONFIG_CMD_NAND) const u32 gpmc_regs_nand[GPMC_MAX_REG] = { M_NAND_GPMC_CONFIG1, M_NAND_GPMC_CONFIG2, @@ -128,7 +128,7 @@ void set_gpmc_cs0(int flash_type) GPMC_SIZE_16M))); break; #endif -#if defined(CONFIG_NAND) || defined(CONFIG_CMD_NAND) +#if defined(CONFIG_MTD_RAW_NAND) || defined(CONFIG_CMD_NAND) case MTD_DEV_TYPE_NAND: gpmc_regs = gpmc_regs_nand; base = CONFIG_SYS_NAND_BASE; |