From patchwork Tue Mar 29 07:36:06 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 816 Return-Path: Delivered-To: unknown Received: from imap.gmail.com (74.125.159.109) by localhost6.localdomain6 with IMAP4-SSL; 08 Jun 2011 14:46:07 -0000 Delivered-To: patches@linaro.org Received: by 10.42.161.68 with SMTP id s4cs163142icx; Tue, 29 Mar 2011 00:32:28 -0700 (PDT) Received: by 10.42.135.2 with SMTP id n2mr8685960ict.251.1301383948253; Tue, 29 Mar 2011 00:32:28 -0700 (PDT) Received: from mail-iw0-f178.google.com (mail-iw0-f178.google.com [209.85.214.178]) by mx.google.com with ESMTPS id ws4si13328893icb.77.2011.03.29.00.32.26 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 29 Mar 2011 00:32:27 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.214.178 is neither permitted nor denied by best guess record for domain of shawn.guo@linaro.org) client-ip=209.85.214.178; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.214.178 is neither permitted nor denied by best guess record for domain of shawn.guo@linaro.org) smtp.mail=shawn.guo@linaro.org Received: by iwn9 with SMTP id 9so5419316iwn.37 for ; Tue, 29 Mar 2011 00:32:26 -0700 (PDT) Received: by 10.43.59.80 with SMTP id wn16mr14399icb.67.1301383946046; Tue, 29 Mar 2011 00:32:26 -0700 (PDT) Received: from localhost.localdomain ([114.216.150.217]) by mx.google.com with ESMTPS id he40sm3475929ibb.50.2011.03.29.00.32.18 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 29 Mar 2011 00:32:25 -0700 (PDT) From: Shawn Guo To: linaro-kernel@lists.linaro.org Cc: grant.likely@linaro.org, nicolas.pitre@linaro.org, patches@linaro.org, Shawn Guo Subject: [PATCH v2] arm/dt: Add mx51 babbage devicetree support Date: Tue, 29 Mar 2011 15:36:06 +0800 Message-Id: <1301384166-20366-1-git-send-email-shawn.guo@linaro.org> X-Mailer: git-send-email 1.7.1 Enable basic device tree support on mx51 babbage Signed-off-by: Shawn Guo --- Changes since v1: * rename babbage.dts to mx51-babbage.dts for better aligning with other dts naming arch/arm/boot/dts/mx51-babbage.dts | 19 +++++++++++++++++++ arch/arm/mach-mx5/board-mx51_babbage.c | 6 ++++++ 2 files changed, 25 insertions(+), 0 deletions(-) create mode 100644 arch/arm/boot/dts/mx51-babbage.dts diff --git a/arch/arm/boot/dts/mx51-babbage.dts b/arch/arm/boot/dts/mx51-babbage.dts new file mode 100644 index 0000000..71410b2 --- /dev/null +++ b/arch/arm/boot/dts/mx51-babbage.dts @@ -0,0 +1,19 @@ +/dts-v1/; + +/ { + model = "Freescale i.MX51 Babbage"; + compatible = "fsl,mx51-babbage"; + #address-cells = <1>; + #size-cells = <1>; + + aliases { + }; + + memory { + device_type = "memory"; + reg = <0x90000000 0x20000000>; + }; + + chosen { + }; +}; diff --git a/arch/arm/mach-mx5/board-mx51_babbage.c b/arch/arm/mach-mx5/board-mx51_babbage.c index b2ecd19..30b92ca 100644 --- a/arch/arm/mach-mx5/board-mx51_babbage.c +++ b/arch/arm/mach-mx5/board-mx51_babbage.c @@ -399,6 +399,11 @@ static struct sys_timer mx51_babbage_timer = { .init = mx51_babbage_timer_init, }; +static const char *mx51_babbage_dt_match[] __initdata = { + "fsl,mx51-babbage", + NULL +}; + MACHINE_START(MX51_BABBAGE, "Freescale MX51 Babbage Board") /* Maintainer: Amit Kucheria */ .boot_params = MX51_PHYS_OFFSET + 0x100, @@ -407,4 +412,5 @@ MACHINE_START(MX51_BABBAGE, "Freescale MX51 Babbage Board") .init_irq = mx51_init_irq, .timer = &mx51_babbage_timer, .init_machine = mx51_babbage_init, + .dt_compat = mx51_babbage_dt_match, MACHINE_END