Commit 2e351ec6 authored by Yusuke Goda's avatar Yusuke Goda Committed by Paul Mundt

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: default avatarYusuke Goda <yusuke.goda.sx@renesas.com>
Signed-off-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 3f25cb04
...@@ -163,11 +163,13 @@ static struct mtd_partition nor_flash_partitions[] = { ...@@ -163,11 +163,13 @@ static struct mtd_partition nor_flash_partitions[] = {
.name = "loader", .name = "loader",
.offset = 0x00000000, .offset = 0x00000000,
.size = 512 * 1024, .size = 512 * 1024,
.mask_flags = MTD_WRITEABLE,
}, },
{ {
.name = "bootenv", .name = "bootenv",
.offset = MTDPART_OFS_APPEND, .offset = MTDPART_OFS_APPEND,
.size = 512 * 1024, .size = 512 * 1024,
.mask_flags = MTD_WRITEABLE,
}, },
{ {
.name = "kernel_ro", .name = "kernel_ro",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment