sh: ap325rxa: create CPLD data area in mtd
PATCH 1/1 sh: ap325rxa: create CPLD data area in mtd
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.
--- arch/sh/boards/board-ap325rxa.c | 18 ++++++++++++++++-- 1 files changed, 16 insertions(+), 2 deletions(-)
arch/sh/boards/board-ap325rxa.c +16 -2
@@ -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)); }
Signature · 1 line
1.5.6.3
Paul Mundt
AppliedQuoted 5 lines · Nobuhiro Iwamatsu
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 <[email protected]>
Applied, thanks.
PATCH 1/1 sh: ap325rxa: create CPLD data area in mtd
In reply to Nobuhiro IwamatsuAP320 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.
--- arch/sh/boards/board-ap325rxa.c | 18 ++++++++++++++++-- 1 files changed, 16 insertions(+), 2 deletions(-)
arch/sh/boards/board-ap325rxa.c +16 -2
@@ -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)); }
Signature · 1 line
1.5.6.3
Opps,
This is a mistake. Please disregard it.
Best regards,
Nobuhiro
Quoted 5 lines · On Mon, 25 Aug 2008 15:31:56 +0900 Nobuhiro Iwamatsu…
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 <[email protected]>
Signature · 1 line
Nobuhiro Iwamatsu