Skip to content

Commit

Permalink
Convert CONFIG_MTD_CONCAT to Kconfig
Browse files Browse the repository at this point in the history
This converts the following to Kconfig:
  CONFIG_MTD_CONCAT

Signed-off-by: Chris Packham <[email protected]>
Reviewed-by: Tom Rini <[email protected]>
Reviewed-by: Stefan Roese <[email protected]>
  • Loading branch information
cpackham authored and trini committed May 11, 2022
1 parent cff2963 commit 54a54a6
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions configs/etamin_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ CONFIG_SPL_SYS_I2C_LEGACY=y
# CONFIG_SPL_DM_MMC is not set
CONFIG_MMC_OMAP_HS=y
CONFIG_MTD=y
CONFIG_MTD_CONCAT=y
CONFIG_MTD_RAW_NAND=y
CONFIG_NAND_OMAP_ECCSCHEME_BCH16_CODE_HW=y
CONFIG_SYS_NAND_BLOCK_SIZE=0x80000
Expand Down
8 changes: 8 additions & 0 deletions drivers/mtd/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ config MTD_NOR_FLASH
help
Enable support for parallel NOR flash.

config MTD_CONCAT
bool "Enable MTD device concatenation"
depends on MTD
help
Enable support for concatenating multiple physical MTD devices
into a single logical device. The larger logical device can then
be partitioned.

config SYS_MTDPARTS_RUNTIME
bool "Allow MTDPARTS to be configured at runtime"
depends on MTD
Expand Down
1 change: 0 additions & 1 deletion include/configs/etamin.h
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@
#define ETAMIN_NAND_GPMC_CONFIG4 0x16051807
#define ETAMIN_NAND_GPMC_CONFIG5 0x00151e1e
#define ETAMIN_NAND_GPMC_CONFIG6 0x16000f80
#define CONFIG_MTD_CONCAT

/* Default env settings */
#define CONFIG_EXTRA_ENV_SETTINGS \
Expand Down
1 change: 0 additions & 1 deletion include/configs/octeontx_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@
/** EMMC specific defines */

#if defined(CONFIG_NAND_OCTEONTX)
/*#define CONFIG_MTD_CONCAT */
#define CONFIG_SYS_MAX_NAND_DEVICE 8
#endif

Expand Down
1 change: 0 additions & 1 deletion scripts/config_whitelist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,6 @@ CONFIG_MMC_SUNXI_SLOT
CONFIG_MONITOR_IS_IN_RAM
CONFIG_MPC85XX_FEC
CONFIG_MPC85XX_FEC_NAME
CONFIG_MTD_CONCAT
CONFIG_MTD_NAND_VERIFY_WRITE
CONFIG_MTD_PARTITION
CONFIG_MVGBE_PORTS
Expand Down

0 comments on commit 54a54a6

Please sign in to comment.