* [PATCH 0/5] Complete the migration of MTDPARTS_DEFAULT / MTDIDS_DEFAULT
@ 2022-12-07 8:26 Patrick Delaunay
2022-12-07 8:26 ` [PATCH 1/5] configs: am333x_guardian: move MTDIDS_DEFAULT in defconfif Patrick Delaunay
` (6 more replies)
0 siblings, 7 replies; 9+ messages in thread
From: Patrick Delaunay @ 2022-12-07 8:26 UTC (permalink / raw)
To: u-boot
Cc: Patrick Delaunay, Chris Packham, Govindaraji Sivanantham,
Heinrich Schuchardt, Hiremath Gireesh, Sjoerd Simons,
U-Boot STM32
Addition for previous commit a331017c237c ("Complete migration of
MTDPARTS_DEFAULT / MTDIDS_DEFAULT, include in environment")
Remove the remaining defines MTDPARTS_DEFAULT and MTDIDS_DEFAULT
in the configuration files (include/configs/*.h).
After this serie, the only remaining references of these 2 defines are
located in cmd/mtdparts.c and only for local purpose when
CONFIG_MTDIDS_DEFAULT or CONFIG_MTDPART_DEFAULT are not defined.
Patrick.
Patrick Delaunay (5):
configs: am333x_guardian: move MTDIDS_DEFAULT in defconfif
configs: x530: move MTDPART/MTDIDS_DEFAULT in defconfig
configs: SBx81LIFXCAT: move MTDPART_DEFAULT in defconfig
configs: SBx81LIFKW: move MTDPART_DEFAULT in defconfig
configs: remove support of MTDIDS_DEFAULT/MTDPARTS_DEFAULT
cmd/mtdparts.c | 5 +----
configs/SBx81LIFKW_defconfig | 1 +
configs/SBx81LIFXCAT_defconfig | 1 +
configs/am335x_guardian_defconfig | 1 +
configs/x530_defconfig | 2 ++
drivers/mtd/mtd_uboot.c | 4 ----
include/configs/SBx81LIFKW.h | 1 -
include/configs/SBx81LIFXCAT.h | 1 -
include/configs/am335x_guardian.h | 1 -
include/configs/x530.h | 2 --
10 files changed, 6 insertions(+), 13 deletions(-)
--
2.25.1
^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH 1/5] configs: am333x_guardian: move MTDIDS_DEFAULT in defconfif
2022-12-07 8:26 [PATCH 0/5] Complete the migration of MTDPARTS_DEFAULT / MTDIDS_DEFAULT Patrick Delaunay
@ 2022-12-07 8:26 ` Patrick Delaunay
2022-12-13 16:36 ` Tom Rini
2022-12-07 8:26 ` [PATCH 2/5] configs: x530: move MTDPART/MTDIDS_DEFAULT in defconfig Patrick Delaunay
` (5 subsequent siblings)
6 siblings, 1 reply; 9+ messages in thread
From: Patrick Delaunay @ 2022-12-07 8:26 UTC (permalink / raw)
To: u-boot
Cc: Patrick Delaunay, Govindaraji Sivanantham, Hiremath Gireesh,
Sjoerd Simons, U-Boot STM32
Replace MTDIDS_DEFAULT in config include file by CONFIG_MTDIDS_DEFAULT
in defonfig to complete the Kconfig migration
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
---
configs/am335x_guardian_defconfig | 1 +
include/configs/am335x_guardian.h | 1 -
2 files changed, 1 insertion(+), 1 deletion(-)
diff --git a/configs/am335x_guardian_defconfig b/configs/am335x_guardian_defconfig
index fef4fd155100..0feac53c3509 100644
--- a/configs/am335x_guardian_defconfig
+++ b/configs/am335x_guardian_defconfig
@@ -64,6 +64,7 @@ CONFIG_SYS_DISABLE_AUTOLOAD=y
CONFIG_CMD_BMP=y
CONFIG_CMD_EXT4_WRITE=y
CONFIG_CMD_MTDPARTS=y
+CONFIG_MTDIDS_DEFAULT="nand0=nand.0"
CONFIG_MTDPARTS_DEFAULT="mtdparts=nand.0:256k(SPL),256k(SPL.backup1),256k(SPL.backup2),256k(SPL.backup3),1m(u-boot),1m(u-boot.backup1),1m(u-boot-2),1m(u-boot-2.backup1),256k(u-boot-env),256k(u-boot-env.backup1),256k(splash-screen),-(UBI)"
CONFIG_CMD_UBI=y
# CONFIG_SPL_DOS_PARTITION is not set
diff --git a/include/configs/am335x_guardian.h b/include/configs/am335x_guardian.h
index 7c5e7ce475ef..a5b83b0c25dd 100644
--- a/include/configs/am335x_guardian.h
+++ b/include/configs/am335x_guardian.h
@@ -115,7 +115,6 @@
}
#define CFG_SYS_NAND_ECCSIZE 512
#define CFG_SYS_NAND_ECCBYTES 26
-#define MTDIDS_DEFAULT "nand0=nand.0"
#endif /* CONFIG_MTD_RAW_NAND */
--
2.25.1
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH 2/5] configs: x530: move MTDPART/MTDIDS_DEFAULT in defconfig
2022-12-07 8:26 [PATCH 0/5] Complete the migration of MTDPARTS_DEFAULT / MTDIDS_DEFAULT Patrick Delaunay
2022-12-07 8:26 ` [PATCH 1/5] configs: am333x_guardian: move MTDIDS_DEFAULT in defconfif Patrick Delaunay
@ 2022-12-07 8:26 ` Patrick Delaunay
2022-12-07 8:26 ` [PATCH 3/5] configs: SBx81LIFXCAT: move MTDPART_DEFAULT " Patrick Delaunay
` (4 subsequent siblings)
6 siblings, 0 replies; 9+ messages in thread
From: Patrick Delaunay @ 2022-12-07 8:26 UTC (permalink / raw)
To: u-boot; +Cc: Patrick Delaunay, Chris Packham, U-Boot STM32
Replace MTDIDS_DEFAULT and MTDPARTS_DEFAULT in the config include file by
CONFIG_MTDIDS_DEFAULT and CONFIG_MTDPARTS_DEFAULT in defconfig to complete
the Kconfig migration.
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
---
configs/x530_defconfig | 2 ++
include/configs/x530.h | 2 --
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/configs/x530_defconfig b/configs/x530_defconfig
index 2f8be2fcd776..70c08adcde97 100644
--- a/configs/x530_defconfig
+++ b/configs/x530_defconfig
@@ -57,6 +57,8 @@ CONFIG_CMD_EXT4=y
CONFIG_CMD_FAT=y
CONFIG_CMD_FS_GENERIC=y
CONFIG_CMD_MTDPARTS=y
+CONFIG_MTDIDS_DEFAULT="nand0=nand"
+CONFIG_MTDPARTS_DEFAULT="mtdparts=nand:240M(user),8M(errlog),8M(nand-bbt)"
CONFIG_CMD_UBI=y
CONFIG_ENV_OVERWRITE=y
CONFIG_ARP_TIMEOUT=200
diff --git a/include/configs/x530.h b/include/configs/x530.h
index dee87cb77325..c213dc6074b0 100644
--- a/include/configs/x530.h
+++ b/include/configs/x530.h
@@ -32,8 +32,6 @@
/* SPI NOR flash default params, used by sf commands */
-#define MTDIDS_DEFAULT "nand0=nand"
-#define MTDPARTS_DEFAULT "mtdparts=nand:240M(user),8M(errlog),8M(nand-bbt)"
#define MTDPARTS_MTDOOPS "errlog"
/* Partition support */
--
2.25.1
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH 3/5] configs: SBx81LIFXCAT: move MTDPART_DEFAULT in defconfig
2022-12-07 8:26 [PATCH 0/5] Complete the migration of MTDPARTS_DEFAULT / MTDIDS_DEFAULT Patrick Delaunay
2022-12-07 8:26 ` [PATCH 1/5] configs: am333x_guardian: move MTDIDS_DEFAULT in defconfif Patrick Delaunay
2022-12-07 8:26 ` [PATCH 2/5] configs: x530: move MTDPART/MTDIDS_DEFAULT in defconfig Patrick Delaunay
@ 2022-12-07 8:26 ` Patrick Delaunay
2022-12-07 8:26 ` [PATCH 4/5] configs: SBx81LIFKW: " Patrick Delaunay
` (3 subsequent siblings)
6 siblings, 0 replies; 9+ messages in thread
From: Patrick Delaunay @ 2022-12-07 8:26 UTC (permalink / raw)
To: u-boot; +Cc: Patrick Delaunay, Chris Packham, U-Boot STM32
Replace MTDPARTS_DEFAULT in the config include file by
CONFIG_MTDPARTS_DEFAULT in defconfig to complete the Kconfig migration.
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
---
configs/SBx81LIFXCAT_defconfig | 1 +
include/configs/SBx81LIFXCAT.h | 1 -
2 files changed, 1 insertion(+), 1 deletion(-)
diff --git a/configs/SBx81LIFXCAT_defconfig b/configs/SBx81LIFXCAT_defconfig
index 125871301e34..80dbbb11c9ba 100644
--- a/configs/SBx81LIFXCAT_defconfig
+++ b/configs/SBx81LIFXCAT_defconfig
@@ -35,6 +35,7 @@ CONFIG_CMD_MII=y
CONFIG_CMD_PING=y
CONFIG_CMD_SNTP=y
# CONFIG_CMD_LED is not set
+CONFIG_MTDPARTS_DEFAULT="mtdparts=spi0.0:768K(boot)ro,256K(boot-env),14M(user),1M(errlog)"
CONFIG_DOS_PARTITION=y
CONFIG_OF_CONTROL=y
CONFIG_ENV_OVERWRITE=y
diff --git a/include/configs/SBx81LIFXCAT.h b/include/configs/SBx81LIFXCAT.h
index 9a9663b34ba8..23d37394e076 100644
--- a/include/configs/SBx81LIFXCAT.h
+++ b/include/configs/SBx81LIFXCAT.h
@@ -21,7 +21,6 @@
* for your console driver.
*/
-#define MTDPARTS_DEFAULT "mtdparts=spi0.0:768K(boot)ro,256K(boot-env),14M(user),1M(errlog)"
#define MTDPARTS_MTDOOPS "errlog"
/*
--
2.25.1
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH 4/5] configs: SBx81LIFKW: move MTDPART_DEFAULT in defconfig
2022-12-07 8:26 [PATCH 0/5] Complete the migration of MTDPARTS_DEFAULT / MTDIDS_DEFAULT Patrick Delaunay
` (2 preceding siblings ...)
2022-12-07 8:26 ` [PATCH 3/5] configs: SBx81LIFXCAT: move MTDPART_DEFAULT " Patrick Delaunay
@ 2022-12-07 8:26 ` Patrick Delaunay
2022-12-07 8:26 ` [PATCH 5/5] configs: remove support of MTDIDS_DEFAULT/MTDPARTS_DEFAULT Patrick Delaunay
` (2 subsequent siblings)
6 siblings, 0 replies; 9+ messages in thread
From: Patrick Delaunay @ 2022-12-07 8:26 UTC (permalink / raw)
To: u-boot; +Cc: Patrick Delaunay, Chris Packham, U-Boot STM32
Replace MTDPARTS_DEFAULT in the config include file by
CONFIG_MTDPARTS_DEFAULT in defconfig to complete the Kconfig migration.
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
---
configs/SBx81LIFKW_defconfig | 1 +
include/configs/SBx81LIFKW.h | 1 -
2 files changed, 1 insertion(+), 1 deletion(-)
diff --git a/configs/SBx81LIFKW_defconfig b/configs/SBx81LIFKW_defconfig
index fa7c35b9ef77..e53f2489c5d0 100644
--- a/configs/SBx81LIFKW_defconfig
+++ b/configs/SBx81LIFKW_defconfig
@@ -34,6 +34,7 @@ CONFIG_BOOTP_NTPSERVER=y
CONFIG_CMD_MII=y
CONFIG_CMD_PING=y
CONFIG_CMD_SNTP=y
+CONFIG_MTDPARTS_DEFAULT="mtdparts=spi0.0:768K(boot)ro,256K(boot-env),14M(user),1M(errlog)"
CONFIG_DOS_PARTITION=y
CONFIG_OF_CONTROL=y
CONFIG_ENV_OVERWRITE=y
diff --git a/include/configs/SBx81LIFKW.h b/include/configs/SBx81LIFKW.h
index bad34d9771ec..d5c9c05767a0 100644
--- a/include/configs/SBx81LIFKW.h
+++ b/include/configs/SBx81LIFKW.h
@@ -21,7 +21,6 @@
* for your console driver.
*/
-#define MTDPARTS_DEFAULT "mtdparts=spi0.0:768K(boot)ro,256K(boot-env),14M(user),1M(errlog)"
#define MTDPARTS_MTDOOPS "errlog"
/*
--
2.25.1
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH 5/5] configs: remove support of MTDIDS_DEFAULT/MTDPARTS_DEFAULT
2022-12-07 8:26 [PATCH 0/5] Complete the migration of MTDPARTS_DEFAULT / MTDIDS_DEFAULT Patrick Delaunay
` (3 preceding siblings ...)
2022-12-07 8:26 ` [PATCH 4/5] configs: SBx81LIFKW: " Patrick Delaunay
@ 2022-12-07 8:26 ` Patrick Delaunay
2022-12-07 14:40 ` [PATCH 0/5] Complete the migration of MTDPARTS_DEFAULT / MTDIDS_DEFAULT Tom Rini
2022-12-11 21:04 ` Chris Packham
6 siblings, 0 replies; 9+ messages in thread
From: Patrick Delaunay @ 2022-12-07 8:26 UTC (permalink / raw)
To: u-boot; +Cc: Patrick Delaunay, Heinrich Schuchardt, U-Boot STM32
Complete the migration of MTDPARTS_DEFAULT / MTDIDS_DEFAULT in Kconfig;
this patch removes the support of MTDIDS_DEFAULT / MTDPARTS_DEFAULT
in the configuration files (include/configs/*.h).
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
---
cmd/mtdparts.c | 5 +----
drivers/mtd/mtd_uboot.c | 4 ----
2 files changed, 1 insertion(+), 8 deletions(-)
diff --git a/cmd/mtdparts.c b/cmd/mtdparts.c
index bab75a262f3a..0984158f41ea 100644
--- a/cmd/mtdparts.c
+++ b/cmd/mtdparts.c
@@ -111,20 +111,17 @@ DECLARE_GLOBAL_DATA_PTR;
#define MTD_WRITEABLE_CMD 1
/* default values for mtdids and mtdparts variables */
-#if !defined(MTDIDS_DEFAULT)
#ifdef CONFIG_MTDIDS_DEFAULT
#define MTDIDS_DEFAULT CONFIG_MTDIDS_DEFAULT
#else
#define MTDIDS_DEFAULT NULL
#endif
-#endif
-#if !defined(MTDPARTS_DEFAULT)
#ifdef CONFIG_MTDPARTS_DEFAULT
#define MTDPARTS_DEFAULT CONFIG_MTDPARTS_DEFAULT
#else
#define MTDPARTS_DEFAULT NULL
#endif
-#endif
+
#if defined(CONFIG_SYS_MTDPARTS_RUNTIME)
extern void board_mtdparts_default(const char **mtdids, const char **mtdparts);
#endif
diff --git a/drivers/mtd/mtd_uboot.c b/drivers/mtd/mtd_uboot.c
index dd0b0242f95f..14ce726b10d8 100644
--- a/drivers/mtd/mtd_uboot.c
+++ b/drivers/mtd/mtd_uboot.c
@@ -30,8 +30,6 @@ static const char *get_mtdids(void)
#if defined(CONFIG_SYS_MTDPARTS_RUNTIME)
board_mtdparts_default(&mtdids, &mtdparts);
-#elif defined(MTDIDS_DEFAULT)
- mtdids = MTDIDS_DEFAULT;
#elif defined(CONFIG_MTDIDS_DEFAULT)
mtdids = CONFIG_MTDIDS_DEFAULT;
#endif
@@ -147,8 +145,6 @@ static const char *get_mtdparts(void)
#if defined(CONFIG_SYS_MTDPARTS_RUNTIME)
board_mtdparts_default(&mtdids, &mtdparts);
-#elif defined(MTDPARTS_DEFAULT)
- mtdparts = MTDPARTS_DEFAULT;
#elif defined(CONFIG_MTDPARTS_DEFAULT)
mtdparts = CONFIG_MTDPARTS_DEFAULT;
#endif
--
2.25.1
^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [PATCH 0/5] Complete the migration of MTDPARTS_DEFAULT / MTDIDS_DEFAULT
2022-12-07 8:26 [PATCH 0/5] Complete the migration of MTDPARTS_DEFAULT / MTDIDS_DEFAULT Patrick Delaunay
` (4 preceding siblings ...)
2022-12-07 8:26 ` [PATCH 5/5] configs: remove support of MTDIDS_DEFAULT/MTDPARTS_DEFAULT Patrick Delaunay
@ 2022-12-07 14:40 ` Tom Rini
2022-12-11 21:04 ` Chris Packham
6 siblings, 0 replies; 9+ messages in thread
From: Tom Rini @ 2022-12-07 14:40 UTC (permalink / raw)
To: Patrick Delaunay
Cc: u-boot, Chris Packham, Govindaraji Sivanantham,
Heinrich Schuchardt, Hiremath Gireesh, Sjoerd Simons,
U-Boot STM32
[-- Attachment #1: Type: text/plain, Size: 659 bytes --]
On Wed, Dec 07, 2022 at 09:26:39AM +0100, Patrick Delaunay wrote:
> Addition for previous commit a331017c237c ("Complete migration of
> MTDPARTS_DEFAULT / MTDIDS_DEFAULT, include in environment")
>
> Remove the remaining defines MTDPARTS_DEFAULT and MTDIDS_DEFAULT
> in the configuration files (include/configs/*.h).
>
> After this serie, the only remaining references of these 2 defines are
> located in cmd/mtdparts.c and only for local purpose when
> CONFIG_MTDIDS_DEFAULT or CONFIG_MTDPART_DEFAULT are not defined.
Thanks for doing this! I suspect this means I can follow-up and remove
the defaults from cmd/mtparts.c later.
--
Tom
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 0/5] Complete the migration of MTDPARTS_DEFAULT / MTDIDS_DEFAULT
2022-12-07 8:26 [PATCH 0/5] Complete the migration of MTDPARTS_DEFAULT / MTDIDS_DEFAULT Patrick Delaunay
` (5 preceding siblings ...)
2022-12-07 14:40 ` [PATCH 0/5] Complete the migration of MTDPARTS_DEFAULT / MTDIDS_DEFAULT Tom Rini
@ 2022-12-11 21:04 ` Chris Packham
6 siblings, 0 replies; 9+ messages in thread
From: Chris Packham @ 2022-12-11 21:04 UTC (permalink / raw)
To: Patrick Delaunay, u-boot
Cc: Govindaraji Sivanantham, Heinrich Schuchardt, Hiremath Gireesh,
Sjoerd Simons, U-Boot STM32
On 7/12/22 21:26, Patrick Delaunay wrote:
> Addition for previous commit a331017c237c ("Complete migration of
> MTDPARTS_DEFAULT / MTDIDS_DEFAULT, include in environment")
>
> Remove the remaining defines MTDPARTS_DEFAULT and MTDIDS_DEFAULT
> in the configuration files (include/configs/*.h).
>
> After this serie, the only remaining references of these 2 defines are
> located in cmd/mtdparts.c and only for local purpose when
> CONFIG_MTDIDS_DEFAULT or CONFIG_MTDPART_DEFAULT are not defined.
>
> Patrick.
>
>
> Patrick Delaunay (5):
> configs: am333x_guardian: move MTDIDS_DEFAULT in defconfif
> configs: x530: move MTDPART/MTDIDS_DEFAULT in defconfig
> configs: SBx81LIFXCAT: move MTDPART_DEFAULT in defconfig
> configs: SBx81LIFKW: move MTDPART_DEFAULT in defconfig
> configs: remove support of MTDIDS_DEFAULT/MTDPARTS_DEFAULT
For x530, SBx81LIFXCAT and SBx81LIFKW
Reviewed-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
> cmd/mtdparts.c | 5 +----
> configs/SBx81LIFKW_defconfig | 1 +
> configs/SBx81LIFXCAT_defconfig | 1 +
> configs/am335x_guardian_defconfig | 1 +
> configs/x530_defconfig | 2 ++
> drivers/mtd/mtd_uboot.c | 4 ----
> include/configs/SBx81LIFKW.h | 1 -
> include/configs/SBx81LIFXCAT.h | 1 -
> include/configs/am335x_guardian.h | 1 -
> include/configs/x530.h | 2 --
> 10 files changed, 6 insertions(+), 13 deletions(-)
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 1/5] configs: am333x_guardian: move MTDIDS_DEFAULT in defconfif
2022-12-07 8:26 ` [PATCH 1/5] configs: am333x_guardian: move MTDIDS_DEFAULT in defconfif Patrick Delaunay
@ 2022-12-13 16:36 ` Tom Rini
0 siblings, 0 replies; 9+ messages in thread
From: Tom Rini @ 2022-12-13 16:36 UTC (permalink / raw)
To: Patrick Delaunay
Cc: u-boot, Govindaraji Sivanantham, Hiremath Gireesh, Sjoerd Simons,
U-Boot STM32
[-- Attachment #1: Type: text/plain, Size: 325 bytes --]
On Wed, Dec 07, 2022 at 09:26:40AM +0100, Patrick Delaunay wrote:
> Replace MTDIDS_DEFAULT in config include file by CONFIG_MTDIDS_DEFAULT
> in defonfig to complete the Kconfig migration
>
> Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
For the series, applied to u-boot/next, thanks!
--
Tom
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2022-12-13 16:36 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-07 8:26 [PATCH 0/5] Complete the migration of MTDPARTS_DEFAULT / MTDIDS_DEFAULT Patrick Delaunay
2022-12-07 8:26 ` [PATCH 1/5] configs: am333x_guardian: move MTDIDS_DEFAULT in defconfif Patrick Delaunay
2022-12-13 16:36 ` Tom Rini
2022-12-07 8:26 ` [PATCH 2/5] configs: x530: move MTDPART/MTDIDS_DEFAULT in defconfig Patrick Delaunay
2022-12-07 8:26 ` [PATCH 3/5] configs: SBx81LIFXCAT: move MTDPART_DEFAULT " Patrick Delaunay
2022-12-07 8:26 ` [PATCH 4/5] configs: SBx81LIFKW: " Patrick Delaunay
2022-12-07 8:26 ` [PATCH 5/5] configs: remove support of MTDIDS_DEFAULT/MTDPARTS_DEFAULT Patrick Delaunay
2022-12-07 14:40 ` [PATCH 0/5] Complete the migration of MTDPARTS_DEFAULT / MTDIDS_DEFAULT Tom Rini
2022-12-11 21:04 ` Chris Packham
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.