From patchwork Mon Nov 8 05:45:09 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 307662 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oA85jI4L012073 for ; Mon, 8 Nov 2010 05:45:18 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751232Ab0KHFpP (ORCPT ); Mon, 8 Nov 2010 00:45:15 -0500 Received: from mail.renesas.com ([202.234.163.13]:52186 "EHLO mail01.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751218Ab0KHFpP (ORCPT ); Mon, 8 Nov 2010 00:45:15 -0500 X-AuditID: ac140384-00000009000004f6-ab-4cd78e6445fe Received: from guardian05.idc.renesas.com ([172.20.8.207]) by mail01.idc.renesas.com (sendmail) with ESMTP id oA85j8Rd028805; Mon, 8 Nov 2010 14:45:08 +0900 (JST) Received: (from root@localhost) by guardian05.idc.renesas.com with id oA85j9OO018906; Mon, 8 Nov 2010 14:45:09 +0900 (JST) Received: from mta01.idc.renesas.com (localhost [127.0.0.1]) by mta01.idc.renesas.com with ESMTP id oA85j8QH028403; Mon, 8 Nov 2010 14:45:08 +0900 (JST) Received: from PG10870.renesas.com ([172.30.8.159]) by ims05.idc.renesas.com (Sendmail) with ESMTPA id <0LBJ003A5XB87Z@ims05.idc.renesas.com>; Mon, 08 Nov 2010 14:45:09 +0900 (JST) Date: Mon, 08 Nov 2010 14:45:09 +0900 (JST) Date-warning: Date header was inserted by ims05.idc.renesas.com From: Kuninori Morimoto Subject: [PATCH ARM: mach-shmobile: ap4evb: MTD loader become readonly To: Paul Mundt Cc: Linux-SH Message-id: MIME-version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-type: text/plain; charset=US-ASCII User-Agent: SEMI/1.14.6 (Maruoka) FLIM/1.14.7 (=?ISO-2022-JP-2?B?U2Fuag==?= =?ISO-2022-JP-2?B?GyQoRCtXGyhC?=) APEL/10.6 Emacs/23.2 (i386-mingw-nt5.1.2600) MULE/6.0 (HANACHIRUSATO) X-Brightmail-Tracker: AAAAAA== Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Mon, 08 Nov 2010 05:45:18 +0000 (UTC) diff --git a/arch/arm/mach-shmobile/board-ap4evb.c b/arch/arm/mach-shmobile/board-ap4evb.c index 0de010e..ed92604 100644 --- a/arch/arm/mach-shmobile/board-ap4evb.c +++ b/arch/arm/mach-shmobile/board-ap4evb.c @@ -159,11 +159,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",