Nokia RX-51: Revert back onenand defitions
authorPali Rohár <pali@kernel.org>
Tue, 31 Mar 2020 22:35:12 +0000 (00:35 +0200)
committerLokesh Vutla <lokeshvutla@ti.com>
Mon, 11 May 2020 04:46:49 +0000 (10:16 +0530)
In commit commit 43ede0bca7fc ("Kconfig: Migrate MTDIDS_DEFAULT /
MTDPARTS_DEFAULT") were removed definitions for onenand partitions.

Revert them back and enable needed options for onenand support.

Signed-off-by: Pali Rohár <pali@kernel.org>
configs/nokia_rx51_defconfig
include/configs/nokia_rx51.h

index 5ba9768d029f7c4e897f325d88fcdcccfd4a3214..13bb6d07b76ee787daf5bba6a41c17c6d470b0fc 100644 (file)
@@ -39,3 +39,10 @@ CONFIG_TWL4030_USB=y
 CONFIG_VIDEO=y
 CONFIG_CFB_CONSOLE_ANSI=y
 # CONFIG_VGA_AS_SINGLE_DEVICE is not set
+CONFIG_MTD=y
+CONFIG_MTDIDS_DEFAULT="onenand0=onenand"
+CONFIG_MTDPARTS_DEFAULT="mtdparts=onenand:128k(bootloader)ro,384k(config),256k(log),2m(kernel),2m(initfs),-(rootfs)"
+CONFIG_MTD_PARTITIONS=y
+# CONFIG_MTD_RAW_NAND is not set
+CONFIG_CMD_MTD=y
+CONFIG_CMD_ONENAND=y
index 46f18e711085f20605f4f8957fe7c3d180a15242..68374cbf167dae14ae789907fa4bd14fb8f0b9c6 100644 (file)
 #define PART6_OFFS                     0x004c0000
 #define PART6_MASK                     0x00000000
 
-#ifdef ONENAND_SUPPORT
-
 #define CONFIG_SYS_ONENAND_BASE                ONENAND_MAP
 
-#endif
-
 /* Watchdog support */
 #define CONFIG_HW_WATCHDOG
 
@@ -163,13 +159,7 @@ int rx51_kp_getc(struct stdio_dev *sdev);
 #endif
 
 /* Environment information */
-#ifdef CONFIG_MTDPARTS_DEFAULT
-#define MTDPARTS "mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0"
-#else
-#define MTDPARTS
-#endif
 #define CONFIG_EXTRA_ENV_SETTINGS \
-       MTDPARTS \
        "usbtty=cdc_acm\0" \
        "stdin=vga\0" \
        "stdout=vga\0" \