diff options
author | Yusuke Goda <yusuke.goda.sx@renesas.com> | 2010-11-08 06:45:09 +0100 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-11-08 06:55:11 +0100 |
commit | 2e351ec61c35fac01ed1fb1ce35c183bf85e780c (patch) | |
tree | 79a60f2ba92028b03af249e483cb27a815841636 /arch/arm/mach-shmobile/board-ap4evb.c | |
parent | ARM: mach-shmobile: intc-sh7372: fix interrupt number (diff) | |
download | linux-2e351ec61c35fac01ed1fb1ce35c183bf85e780c.tar.xz linux-2e351ec61c35fac01ed1fb1ce35c183bf85e780c.zip |
ARM: mach-shmobile: ap4evb: Mark NOR boot loader partitions read-only.
This makes the loader and bootenv partitions read-only under MTD for the
on-board NOR flash.
Signed-off-by: Yusuke Goda <yusuke.goda.sx@renesas.com>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/arm/mach-shmobile/board-ap4evb.c')
-rw-r--r-- | arch/arm/mach-shmobile/board-ap4evb.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-shmobile/board-ap4evb.c b/arch/arm/mach-shmobile/board-ap4evb.c index 32d9e2816e56..63c2fcac8e1e 100644 --- a/arch/arm/mach-shmobile/board-ap4evb.c +++ b/arch/arm/mach-shmobile/board-ap4evb.c @@ -163,11 +163,13 @@ static struct mtd_partition nor_flash_partitions[] = { .name = "loader", .offset = 0x00000000, .size = 512 * 1024, + .mask_flags = MTD_WRITEABLE, }, { .name = "bootenv", .offset = MTDPART_OFS_APPEND, .size = 512 * 1024, + .mask_flags = MTD_WRITEABLE, }, { .name = "kernel_ro", |