From patchwork Mon Aug 19 15:04:29 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 2846539 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id E1DD3BF546 for ; Mon, 19 Aug 2013 15:07:04 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BDFC7201FE for ; Mon, 19 Aug 2013 15:07:03 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 75485201CD for ; Mon, 19 Aug 2013 15:07:02 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VBR24-0005fk-LD; Mon, 19 Aug 2013 15:06:12 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VBR1m-0000bX-FP; Mon, 19 Aug 2013 15:05:54 +0000 Received: from mailout4.samsung.com ([203.254.224.34]) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VBR1O-0000WY-Bs for linux-arm-kernel@lists.infradead.org; Mon, 19 Aug 2013 15:05:31 +0000 Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MRS007AS9WSR1A0@mailout4.samsung.com> for linux-arm-kernel@lists.infradead.org; Tue, 20 Aug 2013 00:05:19 +0900 (KST) X-AuditID: cbfee61b-b7efe6d000007b11-cd-5212342f3978 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 5C.C5.31505.F2432125; Tue, 20 Aug 2013 00:05:19 +0900 (KST) Received: from localhost.localdomain ([106.116.147.30]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MRS004QS9VPKP20@mmp2.samsung.com>; Tue, 20 Aug 2013 00:05:19 +0900 (KST) From: Marek Szyprowski To: linux-arm-kernel@lists.infradead.org, linaro-mm-sig@lists.linaro.org, devicetree@vger.kernel.org Subject: [PATCH v6 4/4] ARM: init: add support for reserved memory defined by device tree Date: Mon, 19 Aug 2013 17:04:29 +0200 Message-id: <1376924669-28873-5-git-send-email-m.szyprowski@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1376924669-28873-1-git-send-email-m.szyprowski@samsung.com> References: <1376924669-28873-1-git-send-email-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpnkeLIzCtJLcpLzFFi42I5/e+xoK6+iVCQwY2LwhZ/Jx1jt5h/5Byr Rf+bhawWr85sZLN409vBYnG26Q27xfbOGewWX648ZLLY9Pgaq8XaI3fZLTa8PMhksfT6RSaL BcdbWC3+TJezOHX9M5vFhOlrWSy+f/vGZvF3+yYWi8Nv2oHGHWxjsVg/4zWLxapdfxgdxDzW zFvD6PH71yRGj9eTJzB6XO7rZfLYOesuu8fmJfUet/89Zva4cqKJ1WPdn1dMHv1/DTz6tqxi 9Pj5Usfj8yY5j41zQwP4orhsUlJzMstSi/TtErgyFjx7zVjwhb1i1bV9jA2MF9m6GDk5JARM JJrbf7BD2GISF+6tB4pzcQgJTGeUaHwzjRnCaWeSmPn2JwtIFZuAoUTX2y6wbhGBNIkZqzaw gBQxC7xhlVhxqQdslLBAtMSrZ/dZQWwWAVWJI1/WgzXwCnhIHD/6BaiGA2idgsScSTYgYU4B T4ltnUeZQGwhoJJ9T78yTmDkXcDIsIpRNLUguaA4KT3XSK84Mbe4NC9dLzk/dxMjOHqeSe9g XNVgcYhRgINRiYe3Q0koSIg1say4MvcQowQHs5II71d2oBBvSmJlVWpRfnxRaU5q8SFGaQ4W JXHeg63WgUIC6YklqdmpqQWpRTBZJg5OqQbGkH+nNFeGvHj//WLpR8+7d3XEi9Pv6l3ql991 fs11BblieZE07qVZXV8O7v/EfNn6oPJaHcPLp4UXCx1p1bieE/qy4feaCTPO3M1h0Ky9atI+ /dpUU9N5U5RntenPqKm9PNOkUMi9O/xcr/6bQrUroWvPdcmfeuklMU/xqJiQQlRJ26XzVb8n KbEUZyQaajEXFScCAJLsVMCaAgAA X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130819_110530_681915_7AD1EF6C X-CRM114-Status: GOOD ( 11.18 ) X-Spam-Score: -9.7 (---------) Cc: Mark Rutland , Laura Abbott , Pawel Moll , Arnd Bergmann , Stephen Warren , Tomasz Figa , Tomasz Figa , Michal Nazarewicz , Grant Likely , Marc , Kyungmin Park , Sylwester Nawrocki , Kumar Gala , Olof Johansson , Ian Campbell , Nishanth Peethambaran , Sascha Hauer , Marek Szyprowski 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=-7.0 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 Enable reserved memory initialization from device tree. Signed-off-by: Marek Szyprowski Acked-by: Kyungmin Park Acked-by: Michal Nazarewicz Acked-by: Tomasz Figa --- arch/arm/mm/init.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/mm/init.c b/arch/arm/mm/init.c index 15225d8..6a2fe44 100644 --- a/arch/arm/mm/init.c +++ b/arch/arm/mm/init.c @@ -17,6 +17,7 @@ #include #include #include +#include #include #include #include @@ -377,6 +378,8 @@ void __init arm_memblock_init(struct meminfo *mi, struct machine_desc *mdesc) if (mdesc->reserve) mdesc->reserve(); + early_init_dt_scan_reserved_mem(); + /* * reserve memory for DMA contigouos allocations, * must come from DMA area inside low memory