From patchwork Tue Sep 17 12:43:35 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Russ Dill X-Patchwork-Id: 2902261 Return-Path: X-Original-To: patchwork-linux-kbuild@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 4B1C39F1C0 for ; Tue, 17 Sep 2013 12:46:06 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6013320378 for ; Tue, 17 Sep 2013 12:46:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 87F4220181 for ; Tue, 17 Sep 2013 12:45:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753203Ab3IQMpe (ORCPT ); Tue, 17 Sep 2013 08:45:34 -0400 Received: from mail-pa0-f52.google.com ([209.85.220.52]:63923 "EHLO mail-pa0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752984Ab3IQMoL (ORCPT ); Tue, 17 Sep 2013 08:44:11 -0400 Received: by mail-pa0-f52.google.com with SMTP id kq13so6709967pab.39 for ; Tue, 17 Sep 2013 05:44:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=pzQtK7vPoEC4gLVceI7cXBQtS3G403mA0e1PdakoS5Q=; b=dCHRPIOj6FY6xJoN8I8lUeNl15clHrOUA0xReO/oZFa0F9WNbQDed4DaRgs8GNDz6b 3wgYrmIPrsp8PZPznqWYghOyu8uvJj86yHFmcqOFc8vDBl9OkfMN3O3zZChYQFqHxhhu LNi7mgP1nwMmGpOvoctZa0y7xbyzdyEkYpyaJCdaAQ/Su3YfxuCCnd+vGUiGAAGzAWHd gMQzuIL+J0lpCbOggxGapSCAXtINaXyYFkERmOT7s7tlNDYET4erzsJ6ELsZN357YqeR Nk3avRDlT/6yyvH2xTEIjXzoFqsq07+Iua/jkgnvsmMwh+dkA6si4R+NHpkKyKYlIleQ KukQ== X-Received: by 10.66.163.199 with SMTP id yk7mr8531567pab.136.1379421851310; Tue, 17 Sep 2013 05:44:11 -0700 (PDT) Received: from localhost (pool-71-189-49-9.lsanca.fios.verizon.net. [71.189.49.9]) by mx.google.com with ESMTPSA id bb1sm38049884pbc.10.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 17 Sep 2013 05:44:10 -0700 (PDT) From: Russ Dill To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org Cc: linux-kbuild@vger.kernel.org, Ard Biesheuvel , mans@mansr.com, Shawn Guo , Dave Martin , Russell King - ARM Linux Subject: [RFC PATCH 09/11] ARM: dts: AM33XX: Associate SRAM with MPU and mark it exec Date: Tue, 17 Sep 2013 05:43:35 -0700 Message-Id: <1379421817-15759-10-git-send-email-Russ.Dill@ti.com> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1379421817-15759-1-git-send-email-Russ.Dill@ti.com> References: <1379421817-15759-1-git-send-email-Russ.Dill@ti.com> Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,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 SRAM is for use by the MPU. Marking it as such makes it easier for PM initialization code to locate the SRAM in order to load a PIE section into it. Additionally, set the map-exec flag to allow code to be run from SRAM. This is necessary for suspend/resume. Signed-off-by: Russ Dill --- arch/arm/boot/dts/am33xx.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/am33xx.dtsi b/arch/arm/boot/dts/am33xx.dtsi index 302463d..20942a2 100644 --- a/arch/arm/boot/dts/am33xx.dtsi +++ b/arch/arm/boot/dts/am33xx.dtsi @@ -62,6 +62,7 @@ mpu { compatible = "ti,omap3-mpu"; ti,hwmods = "mpu"; + sram = <&ocmcram>; }; }; @@ -507,6 +508,7 @@ ocmcram: ocmcram@40300000 { compatible = "mmio-sram"; reg = <0x40300000 0x10000>; /* 64k */ + map-exec; }; wkup_m3: wkup_m3@44d00000 {