From patchwork Tue Jun 3 21:29:01 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrea Adami X-Patchwork-Id: 4291091 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id EC03A9F326 for ; Tue, 3 Jun 2014 21:32:44 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E438B20254 for ; Tue, 3 Jun 2014 21:32:43 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3E37D20253 for ; Tue, 3 Jun 2014 21:32:43 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WrwHG-0003Cd-UV; Tue, 03 Jun 2014 21:29:50 +0000 Received: from mail-we0-x22a.google.com ([2a00:1450:400c:c03::22a]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WrwH7-00038d-Ud for linux-arm-kernel@lists.infradead.org; Tue, 03 Jun 2014 21:29:42 +0000 Received: by mail-we0-f170.google.com with SMTP id u57so7576598wes.29 for ; Tue, 03 Jun 2014 14:29:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=qOaGAjn8QCzFWfWAFOeoC6AfyMczkwXaBR7WJ21gyXE=; b=S4iRaNX4BKqyDkKfkCIny0l5Iq12a4RNPXdXQMW69E/Ju6EqXOtXjsBlKt/vKX0VKC yFfXoy5w4BRW3jfLlwGCDZtoVfZjvpnvrHuf8QqdCii8MhteenM1HGIplIhqNMO2kt5U 234RJ2JX2Vv6XxKrOa52bt4XIdEt5X7R8AxSCmF9Ue+II69ELRVCll5zn6BdampRzeZm l60OsbflNyQupfJKeSi19+2qqLZPt3jJJJ8yxUvRmWHQRFH87dTqq2VG3vlciXkfd/6k bJ1VZYQw6dgiE9e1Vpipvyoeo1Bw1DjqXaj4MI+dCbwkRhyJ3uO4BF6Q/Q7vP0InvOUW Dn3g== X-Received: by 10.14.32.136 with SMTP id o8mr1690194eea.35.1401830959820; Tue, 03 Jun 2014 14:29:19 -0700 (PDT) Received: from mizar.208.67.220.220 (host73-90-dynamic.180-80-r.retail.telecomitalia.it. [80.180.90.73]) by mx.google.com with ESMTPSA id l49sm357742eef.27.2014.06.03.14.29.18 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 03 Jun 2014 14:29:19 -0700 (PDT) From: Andrea Adami To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 2/2] arm: sa1100: collie: add top boot mtd partition Date: Tue, 3 Jun 2014 23:29:01 +0200 Message-Id: <1401830941-17086-3-git-send-email-andrea.adami@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1401830941-17086-1-git-send-email-andrea.adami@gmail.com> References: <1401830941-17086-1-git-send-email-andrea.adami@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140603_142942_143854_E79A97DE X-CRM114-Status: GOOD ( 13.71 ) X-Spam-Score: -0.1 (/) Cc: Dmitry Eremin-Solenikov , Olof Johansson , Russell King , linux-kernel@vger.kernel.org, Andrea Adami X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The CFI mapping is now perfect so we can expose the top block, read only. There isn't much to read, though, just the sharpsl_params values. Signed-off-by: Andrea Adami --- arch/arm/mach-sa1100/collie.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm/mach-sa1100/collie.c b/arch/arm/mach-sa1100/collie.c index f26aeea..3f449b0 100644 --- a/arch/arm/mach-sa1100/collie.c +++ b/arch/arm/mach-sa1100/collie.c @@ -329,6 +329,11 @@ static struct mtd_partition collie_partitions[] = { .name = "rootfs", .offset = MTDPART_OFS_APPEND, .size = 0x00e20000, + }, { + .name = "bootblock", + .offset = MTDPART_OFS_APPEND, + .size = 0x00020000, + .mask_flags = MTD_WRITEABLE } };