[PATCH] ARM: LPC32XX: Update PHY3250 MTD partition info

Ben Gardiner bengardiner at nanometrics.ca
Thu Apr 15 13:44:54 EDT 2010


Adding the two other partitions of the phycore3250's nand flash:
u-boot and the u-boot environment partitions. The former can be useful
if you are feeling adventurous and would like to upgrade u-boot. The
later is very useful for userspace utilities like fw_setenv which can
be used to modify the bootargs for the next reboot or insert many other
useful scripts.

In addition, adding these partitions brings the mtdblock numbers back
to what they were with the 2.6.27.8 release of the linux kernel shipped
with the phycore3250 evm.

Signed-off-by: Ben Gardiner <bengardiner at nanometrics.ca>
---
 arch/arm/mach-lpc32xx/phy3250.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-lpc32xx/phy3250.c b/arch/arm/mach-lpc32xx/phy3250.c
index b908d17..2672b63 100644
--- a/arch/arm/mach-lpc32xx/phy3250.c
+++ b/arch/arm/mach-lpc32xx/phy3250.c
@@ -345,6 +345,16 @@ static int nandwp_enable(int enable)
 #define BLK_SIZE (512 * 32)
 static struct mtd_partition __initdata phy3250_nand_partition[] = {
 	{
+		.name	= "phy3250-uboot",
+		.offset	= 0,
+		.size	= (BLK_SIZE * 90)
+	},
+	{
+		.name	= "phy3250-ubt-env",
+		.offset	= (BLK_SIZE * 90),
+		.size	= (BLK_SIZE * 10)
+	},
+	{
 		.name	= "phy3250-kernel",
 		.offset	= (BLK_SIZE * 100),
 		.size	= (BLK_SIZE * 256)
-- 
1.6.3.3




More information about the linux-arm-kernel mailing list