From patchwork Wed Aug 3 16:01:12 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 3247 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id D517B24070 for ; Wed, 3 Aug 2011 16:01:32 +0000 (UTC) Received: from mail-qy0-f173.google.com (mail-qy0-f173.google.com [209.85.216.173]) by fiordland.canonical.com (Postfix) with ESMTP id 9CD29A1815E for ; Wed, 3 Aug 2011 16:01:32 +0000 (UTC) Received: by qyk10 with SMTP id 10so2863791qyk.11 for ; Wed, 03 Aug 2011 09:01:32 -0700 (PDT) Received: by 10.229.43.201 with SMTP id x9mr3350596qce.197.1312387292037; Wed, 03 Aug 2011 09:01:32 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.229.6.73 with SMTP id 9cs161770qcy; Wed, 3 Aug 2011 09:01:31 -0700 (PDT) Received: by 10.229.48.134 with SMTP id r6mr3944366qcf.142.1312387291372; Wed, 03 Aug 2011 09:01:31 -0700 (PDT) Received: from ch1outboundpool.messaging.microsoft.com (ch1ehsobe002.messaging.microsoft.com [216.32.181.182]) by mx.google.com with ESMTPS id w6si902880qct.108.2011.08.03.09.01.30 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 03 Aug 2011 09:01:31 -0700 (PDT) Received-SPF: neutral (google.com: 216.32.181.182 is neither permitted nor denied by best guess record for domain of shawn.guo@linaro.org) client-ip=216.32.181.182; Authentication-Results: mx.google.com; spf=neutral (google.com: 216.32.181.182 is neither permitted nor denied by best guess record for domain of shawn.guo@linaro.org) smtp.mail=shawn.guo@linaro.org Received: from mail9-ch1-R.bigfish.com (216.32.181.168) by CH1EHSOBE017.bigfish.com (10.43.70.67) with Microsoft SMTP Server id 14.1.225.22; Wed, 3 Aug 2011 16:01:30 +0000 Received: from mail9-ch1 (localhost.localdomain [127.0.0.1]) by mail9-ch1-R.bigfish.com (Postfix) with ESMTP id 2FF3319030C; Wed, 3 Aug 2011 16:01:30 +0000 (UTC) X-SpamScore: 0 X-BigFish: VS0(zzzz1202hzzz2dh87h2a8h668h839h61h) X-Spam-TCS-SCL: 0:0 X-Forefront-Antispam-Report: CIP:70.37.183.190; KIP:(null); UIP:(null); IPVD:NLI; H:mail.freescale.net; RD:none; EFVD:NLI X-FB-DOMAIN-IP-MATCH: fail Received: from mail9-ch1 (localhost.localdomain [127.0.0.1]) by mail9-ch1 (MessageSwitch) id 1312387288373969_12444; Wed, 3 Aug 2011 16:01:28 +0000 (UTC) Received: from CH1EHSMHS033.bigfish.com (snatpool1.int.messaging.microsoft.com [10.43.68.251]) by mail9-ch1.bigfish.com (Postfix) with ESMTP id 574EBAC804D; Wed, 3 Aug 2011 16:01:28 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by CH1EHSMHS033.bigfish.com (10.43.70.33) with Microsoft SMTP Server (TLS) id 14.1.225.22; Wed, 3 Aug 2011 16:01:26 +0000 Received: from az33smr01.freescale.net (10.64.34.199) by 039-SN1MMR1-002.039d.mgd.msft.net (10.84.1.15) with Microsoft SMTP Server id 14.1.289.8; Wed, 3 Aug 2011 11:01:25 -0500 Received: from ubuntu.ea.freescale.net ([10.214.137.158]) by az33smr01.freescale.net (8.13.1/8.13.0) with ESMTP id p73G1NsC018519; Wed, 3 Aug 2011 11:01:23 -0500 (CDT) From: Shawn Guo To: CC: , Grant Likely Subject: [PATCH] arm/dt: Add dt machine definition Date: Thu, 4 Aug 2011 00:01:12 +0800 Message-ID: <1312387272-2278-1-git-send-email-shawn.guo@linaro.org> X-Mailer: git-send-email 1.7.4.1 MIME-Version: 1.0 X-OriginatorOrg: sigmatel.com From: Grant Likely This patch adds a DT_MACHINE_START macro to use instead of MACHINE_START when creating a machine_desc that supports using the device tree. Signed-off-by: Grant Likely --- arch/arm/include/asm/mach/arch.h | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/arch/arm/include/asm/mach/arch.h b/arch/arm/include/asm/mach/arch.h index 3281fb4..217aa19 100644 --- a/arch/arm/include/asm/mach/arch.h +++ b/arch/arm/include/asm/mach/arch.h @@ -74,4 +74,11 @@ static const struct machine_desc __mach_desc_##_type \ #define MACHINE_END \ }; +#define DT_MACHINE_START(_name, _namestr) \ +static const struct machine_desc __mach_desc_##_name \ + __used \ + __attribute__((__section__(".arch.info.init"))) = { \ + .nr = ~0, \ + .name = _namestr, + #endif