public inbox for linux-sh@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sh: ap325rxa: create CPLD data area in mtd
@ 2008-08-25  6:23 Nobuhiro Iwamatsu
  2008-08-25  6:30 ` Paul Mundt
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Nobuhiro Iwamatsu @ 2008-08-25  6:23 UTC (permalink / raw)
  To: linux-sh

AP320 and AP325RXA has CPLD data in NOR Flash.
If this area erased, this board can not boot.
This patch create CPLD data area and set writeable mask bit.

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com>
---
 arch/sh/boards/board-ap325rxa.c |   18 ++++++++++++++++--
 1 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/arch/sh/boards/board-ap325rxa.c b/arch/sh/boards/board-ap325rxa.c
index fd16125..9e24455 100644
--- a/arch/sh/boards/board-ap325rxa.c
+++ b/arch/sh/boards/board-ap325rxa.c
@@ -52,6 +52,10 @@ static struct platform_device smc9118_device = {
 	},
 };

+/*
+ * AP320 and AP325RXA has CPLD data in NOR Flash(0xA80000-0xABFFFF).
+ * If this area erased, this board can not boot.
+ */
 static struct mtd_partition ap325rxa_nor_flash_partitions[] = {
 	{
 		 .name = "uboot",
@@ -63,7 +67,17 @@ static struct mtd_partition ap325rxa_nor_flash_partitions[] = {
 		 .offset = MTDPART_OFS_APPEND,
 		 .size = (2 * 1024 * 1024),
 	}, {
-		 .name = "other",
+		 .name = "free-area0",
+		 .offset = MTDPART_OFS_APPEND,
+		 .size = ((7 * 1024 * 1024) + (512 * 1024)),
+	}, {
+		 .name = "FPGA-Data",
+		 .offset = MTDPART_OFS_APPEND,
+		 .mask_flags = MTD_WRITEABLE,	/* Read-only */
+		 .size = (1024 * 128 * 2),
+		 .size = MTDPART_SIZ_FULL,
+	}, {
+		 .name = "free-area1",
 		 .offset = MTDPART_OFS_APPEND,
 		 .size = MTDPART_SIZ_FULL,
 	},
@@ -292,7 +306,7 @@ static int __init ap325rxa_devices_setup(void)

 	i2c_register_board_info(0, ap325rxa_i2c_devices,
 				ARRAY_SIZE(ap325rxa_i2c_devices));
-
+
 	return platform_add_devices(ap325rxa_devices,
 				ARRAY_SIZE(ap325rxa_devices));
 }
-- 
1.5.6.3


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

* Re: [PATCH] sh: ap325rxa: create CPLD data area in mtd
  2008-08-25  6:23 [PATCH] sh: ap325rxa: create CPLD data area in mtd Nobuhiro Iwamatsu
@ 2008-08-25  6:30 ` Paul Mundt
  2008-08-25  6:31 ` Nobuhiro Iwamatsu
  2008-08-25 13:42 ` Nobuhiro Iwamatsu
  2 siblings, 0 replies; 4+ messages in thread
From: Paul Mundt @ 2008-08-25  6:30 UTC (permalink / raw)
  To: linux-sh

On Mon, Aug 25, 2008 at 03:23:52PM +0900, Nobuhiro Iwamatsu wrote:
> AP320 and AP325RXA has CPLD data in NOR Flash.
> If this area erased, this board can not boot.
> This patch create CPLD data area and set writeable mask bit.
> 
> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com>

Applied, thanks.

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

* [PATCH] sh: ap325rxa: create CPLD data area in mtd
  2008-08-25  6:23 [PATCH] sh: ap325rxa: create CPLD data area in mtd Nobuhiro Iwamatsu
  2008-08-25  6:30 ` Paul Mundt
@ 2008-08-25  6:31 ` Nobuhiro Iwamatsu
  2008-08-25 13:42 ` Nobuhiro Iwamatsu
  2 siblings, 0 replies; 4+ messages in thread
From: Nobuhiro Iwamatsu @ 2008-08-25  6:31 UTC (permalink / raw)
  To: linux-sh

AP320 and AP325RXA has CPLD data in NOR Flash.
If this area erased, this board can not boot.
This patch create CPLD data area and set writeable mask bit.

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com>
---
 arch/sh/boards/board-ap325rxa.c |   18 ++++++++++++++++--
 1 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/arch/sh/boards/board-ap325rxa.c b/arch/sh/boards/board-ap325rxa.c
index fd16125..9e24455 100644
--- a/arch/sh/boards/board-ap325rxa.c
+++ b/arch/sh/boards/board-ap325rxa.c
@@ -52,6 +52,10 @@ static struct platform_device smc9118_device = {
 	},
 };

+/*
+ * AP320 and AP325RXA has CPLD data in NOR Flash(0xA80000-0xABFFFF).
+ * If this area erased, this board can not boot.
+ */
 static struct mtd_partition ap325rxa_nor_flash_partitions[] = {
 	{
 		 .name = "uboot",
@@ -63,7 +67,17 @@ static struct mtd_partition ap325rxa_nor_flash_partitions[] = {
 		 .offset = MTDPART_OFS_APPEND,
 		 .size = (2 * 1024 * 1024),
 	}, {
-		 .name = "other",
+		 .name = "free-area0",
+		 .offset = MTDPART_OFS_APPEND,
+		 .size = ((7 * 1024 * 1024) + (512 * 1024)),
+	}, {
+		 .name = "FPGA-Data",
+		 .offset = MTDPART_OFS_APPEND,
+		 .mask_flags = MTD_WRITEABLE,	/* Read-only */
+		 .size = (1024 * 128 * 2),
+		 .size = MTDPART_SIZ_FULL,
+	}, {
+		 .name = "free-area1",
 		 .offset = MTDPART_OFS_APPEND,
 		 .size = MTDPART_SIZ_FULL,
 	},
@@ -292,7 +306,7 @@ static int __init ap325rxa_devices_setup(void)

 	i2c_register_board_info(0, ap325rxa_i2c_devices,
 				ARRAY_SIZE(ap325rxa_i2c_devices));
-
+
 	return platform_add_devices(ap325rxa_devices,
 				ARRAY_SIZE(ap325rxa_devices));
 }
-- 
1.5.6.3


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

* Re: [PATCH] sh: ap325rxa: create CPLD data area in mtd
  2008-08-25  6:23 [PATCH] sh: ap325rxa: create CPLD data area in mtd Nobuhiro Iwamatsu
  2008-08-25  6:30 ` Paul Mundt
  2008-08-25  6:31 ` Nobuhiro Iwamatsu
@ 2008-08-25 13:42 ` Nobuhiro Iwamatsu
  2 siblings, 0 replies; 4+ messages in thread
From: Nobuhiro Iwamatsu @ 2008-08-25 13:42 UTC (permalink / raw)
  To: linux-sh

Opps, 
This is a mistake. Please disregard it. 

Best regards,
 Nobuhiro

On Mon, 25 Aug 2008 15:31:56 +0900
Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com> wrote:

> AP320 and AP325RXA has CPLD data in NOR Flash.
> If this area erased, this board can not boot.
> This patch create CPLD data area and set writeable mask bit.
> 
> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com>
-- 
Nobuhiro Iwamatsu

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

end of thread, other threads:[~2008-08-25 13:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-25  6:23 [PATCH] sh: ap325rxa: create CPLD data area in mtd Nobuhiro Iwamatsu
2008-08-25  6:30 ` Paul Mundt
2008-08-25  6:31 ` Nobuhiro Iwamatsu
2008-08-25 13:42 ` Nobuhiro Iwamatsu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox