From patchwork Fri May 15 19:50:06 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Pali_Roh=C3=A1r?= X-Patchwork-Id: 6416231 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.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 8DEA19F1C1 for ; Fri, 15 May 2015 19:54:16 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D55B220557 for ; Fri, 15 May 2015 19:54:15 +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 1181B20544 for ; Fri, 15 May 2015 19:54:15 +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 1YtLeD-0002Lf-Fc; Fri, 15 May 2015 19:51:53 +0000 Received: from mail-wi0-x22f.google.com ([2a00:1450:400c:c05::22f]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YtLe0-0002IB-Lp for linux-arm-kernel@lists.infradead.org; Fri, 15 May 2015 19:51:41 +0000 Received: by wizk4 with SMTP id k4so2164194wiz.1 for ; Fri, 15 May 2015 12:51:21 -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 :mime-version:content-type:content-transfer-encoding; bh=g+5BftV7yWfaCMYdGDbT6Syy0Kpxl5OvJOuCHAg8VWM=; b=hyB2Uap63hwv68jN+llvq1LcU1LpDf8/aZy0H9w0/+9YAr9GTONAcKzOoTM8czZjMT z8PnHuNjCGSJU8p5YhkgCiaGfX2IMbfcJjLaQqma3KaVR7qU9e00YX2y82hAC1jSJVbg cA1GF8lxjTMUChxgiC13shdg1ZPqOEZGuLwuiJ9UrVonuaR/yjAlZOCNuozdm6Ae5RgE pcpnf5tCKucQnhLf7jZOmJlrKAVQ9Y82C1+UgFVwPeRhjU70j3MNw4m/vkKm0CBYp/M5 cCZG008SMeLuYIUjFlc16ER48XghfPoTTvKU+j/5Lx0mVu7JDE0uJX6lVnVfRolmEWkg ppXw== X-Received: by 10.180.160.228 with SMTP id xn4mr432216wib.62.1431719481219; Fri, 15 May 2015 12:51:21 -0700 (PDT) Received: from Pali-Latitude.kolej.mff.cuni.cz (pali.kolej.mff.cuni.cz. [78.128.193.202]) by mx.google.com with ESMTPSA id nb9sm4415341wic.10.2015.05.15.12.51.18 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 May 2015 12:51:19 -0700 (PDT) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: Rob Herring , Russell King , Will Deacon , Ivaylo Dimitrov , Sebastian Reichel , Pavel Machek , Tony Lindgren , =?UTF-8?q?Andreas=20F=C3=A4rber?= Subject: [PATCH 1/2] arm: devtree: Save atags if are in DT atags field Date: Fri, 15 May 2015 21:50:06 +0200 Message-Id: <1431719407-18230-2-git-send-email-pali.rohar@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1431719407-18230-1-git-send-email-pali.rohar@gmail.com> References: <1430902142-17035-1-git-send-email-pali.rohar@gmail.com> <1431719407-18230-1-git-send-email-pali.rohar@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150515_125140_925351_829F307F X-CRM114-Status: GOOD ( 10.16 ) X-Spam-Score: -0.8 (/) Cc: linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, =?UTF-8?q?Pali=20Roh=C3=A1r?= X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_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 This patch creates /proc/atags from DT /atags field. Signed-off-by: Pali Rohár --- arch/arm/kernel/devtree.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/kernel/devtree.c b/arch/arm/kernel/devtree.c index 7e13e27..dd98322 100644 --- a/arch/arm/kernel/devtree.c +++ b/arch/arm/kernel/devtree.c @@ -29,6 +29,7 @@ #include #include +#include "atags.h" #ifdef CONFIG_SMP extern struct of_cpu_method __cpu_method_of_table[]; @@ -256,5 +257,10 @@ const struct machine_desc * __init setup_machine_fdt(unsigned int dt_phys) system_rev = 0; } + /* Save atags */ + prop = of_get_flat_dt_prop(dt_root, "atags", NULL); + if (prop) + save_atags((void *)prop); + return mdesc; }