summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorYusuke Goda <yusuke.goda.sx@renesas.com>2010-11-08 05:45:09 +0000
committerPaul Mundt <lethal@linux-sh.org>2010-11-08 14:55:11 +0900
commit2e351ec61c35fac01ed1fb1ce35c183bf85e780c (patch)
tree79a60f2ba92028b03af249e483cb27a815841636 /arch
parent3f25cb042ca77ac52546ae9f0039cfd0a243698c (diff)
downloadop-kernel-dev-2e351ec61c35fac01ed1fb1ce35c183bf85e780c.zip
op-kernel-dev-2e351ec61c35fac01ed1fb1ce35c183bf85e780c.tar.gz
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')
-rw-r--r--arch/arm/mach-shmobile/board-ap4evb.c2
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 32d9e28..63c2fca 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",
OpenPOWER on IntegriCloud