]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
ARM: mach-shmobile: ap4evb: Mark NOR boot loader partitions read-only.
authorYusuke Goda <yusuke.goda.sx@renesas.com>
Mon, 8 Nov 2010 05:45:09 +0000 (05:45 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 8 Nov 2010 05:55:11 +0000 (14:55 +0900)
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>
arch/arm/mach-shmobile/board-ap4evb.c

index 32d9e2816e569a98a9a6525e9aab6c757053388f..63c2fcac8e1e2c6b567a2f596f01e9469c372a11 100644 (file)
@@ -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",