linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: LPC32XX: Update PHY3250 MTD partition info
@ 2010-04-15 17:44 Ben Gardiner
  2010-04-16  0:17 ` Kevin Wells
  0 siblings, 1 reply; 4+ messages in thread
From: Ben Gardiner @ 2010-04-15 17:44 UTC (permalink / raw)
  To: linux-arm-kernel

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@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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-04-22 14:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-15 17:44 [PATCH] ARM: LPC32XX: Update PHY3250 MTD partition info Ben Gardiner
2010-04-16  0:17 ` Kevin Wells
2010-04-16  0:35   ` H Hartley Sweeten
2010-04-22 14:35     ` Ben Gardiner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).