sh: mach-ecovec24: modify 1st MTD area to read only
authorKuninori Morimoto <morimoto.kuninori@renesas.com>
Wed, 30 Sep 2009 00:50:30 +0000 (00:50 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Wed, 30 Sep 2009 03:51:55 +0000 (12:51 +0900)
Tested-by: Yusuke Goda <goda.yusuke@renesas.com>
Signed-off-by: Kuninori Morimoto <morimoto.kuninori@renesas.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/boards/mach-ecovec24/setup.c

index 52912a6..0fb665d 100644 (file)
@@ -71,7 +71,7 @@ static struct mtd_partition nor_flash_partitions[] = {
                .name = "boot loader",
                .offset = 0,
                .size = (5 * 1024 * 1024),
-               .mask_flags = MTD_CAP_ROM,
+               .mask_flags = MTD_WRITEABLE,  /* force read-only */
        }, {
                .name = "free-area",
                .offset = MTDPART_OFS_APPEND,