Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753231AbaAVTB7 (ORCPT ); Wed, 22 Jan 2014 14:01:59 -0500 Received: from smtp.codeaurora.org ([198.145.11.231]:46044 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752580AbaAVTBz (ORCPT ); Wed, 22 Jan 2014 14:01:55 -0500 From: Josh Cartwright To: Russell King , linux-kernel@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, Benjamin Herrenschmidt , Laura Abbott , Marek Szyprowski Subject: [PATCH RFC 3/4] ARM: init: add support for reserved memory defined by device tree Date: Wed, 22 Jan 2014 12:58:51 -0600 Message-Id: <1390417133-6650-4-git-send-email-joshc@codeaurora.org> X-Mailer: git-send-email 1.8.4.2 In-Reply-To: <1390417133-6650-1-git-send-email-joshc@codeaurora.org> References: <1390417133-6650-1-git-send-email-joshc@codeaurora.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Marek Szyprowski Enable reserved memory initialization from device tree. Cc: Benjamin Herrenschmidt Cc: Laura Abbott Signed-off-by: Marek Szyprowski --- 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 403ba90..5efe0b4 100644 --- a/arch/arm/mm/init.c +++ b/arch/arm/mm/init.c @@ -17,6 +17,7 @@ #include #include #include +#include #include #include #include @@ -323,6 +324,8 @@ void __init arm_memblock_init(struct meminfo *mi, 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 -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/