projects/linux·commit 2e351ec6

ARM: mach-shmobile: ap4evb: Mark NOR boot loader partitions read-only.

2e351ec6 · Yusuke Goda <[email protected]> · 2010-11-08 05:45:09 +00:00

This makes the loader and bootenv partitions read-only under MTD for the
on-board NOR flash.

Signed-off-by: Yusuke Goda <[email protected]>
Signed-off-by: Kuninori Morimoto <[email protected]>
Signed-off-by: Paul Mundt <[email protected]>
Commit
2e351ec61c35fac01ed1fb1ce35c183bf85e780c
Parents
3f25cb04

Changes

1 files changed · +2 −0

FileStatusAddDelContent
arch/arm/mach-shmobile/board-ap4evb.cmodified+2−0View file

arch/arm/mach-shmobile/board-ap4evb.c

View file
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",