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: 6416221 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 793CFC0432 for ; Fri, 15 May 2015 19:51:58 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A0D68204E2 for ; Fri, 15 May 2015 19:51:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BBCA020221 for ; Fri, 15 May 2015 19:51:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934584AbbEOTvZ (ORCPT ); Fri, 15 May 2015 15:51:25 -0400 Received: from mail-wg0-f52.google.com ([74.125.82.52]:34038 "EHLO mail-wg0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934539AbbEOTvW (ORCPT ); Fri, 15 May 2015 15:51:22 -0400 Received: by wguv19 with SMTP id v19so63294150wgu.1; 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?= Cc: linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, =?UTF-8?q?Pali=20Roh=C3=A1r?= 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 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, 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 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; }