From patchwork Sat Feb 12 12:47:01 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: thomas.abraham@linaro.org X-Patchwork-Id: 129 Return-Path: Delivered-To: unknown Received: from imap.gmail.com (74.125.159.109) by localhost6.localdomain6 with IMAP4-SSL; 08 Jun 2011 14:40:14 -0000 Delivered-To: patches@linaro.org Received: by 10.147.124.5 with SMTP id b5cs261047yan; Sat, 12 Feb 2011 04:49:12 -0800 (PST) Received: by 10.42.225.5 with SMTP id iq5mr2100171icb.430.1297514952451; Sat, 12 Feb 2011 04:49:12 -0800 (PST) Received: from mailout4.samsung.com (mailout4.samsung.com [203.254.224.34]) by mx.google.com with ESMTP id ev1si1209358icb.77.2011.02.12.04.49.12; Sat, 12 Feb 2011 04:49:12 -0800 (PST) Received-SPF: neutral (google.com: 203.254.224.34 is neither permitted nor denied by best guess record for domain of thomas.abraham@linaro.org) client-ip=203.254.224.34; Authentication-Results: mx.google.com; spf=neutral (google.com: 203.254.224.34 is neither permitted nor denied by best guess record for domain of thomas.abraham@linaro.org) smtp.mail=thomas.abraham@linaro.org Received: from epmmp2 (mailout4.samsung.com [203.254.224.34]) by mailout4.samsung.com (Oracle Communications Messaging Exchange Server 7u4-19.01 64bit (built Sep 7 2010)) with ESMTP id <0LGI00K1L8XYBT80@mailout4.samsung.com> for patches@linaro.org; Sat, 12 Feb 2011 21:49:10 +0900 (KST) Received: from localhost.localdomain ([107.108.73.37]) by mmp2.samsung.com (iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004)) with ESMTPA id <0LGI00IEA8XP10@mmp2.samsung.com> for patches@linaro.org; Sat, 12 Feb 2011 21:49:11 +0900 (KST) Date: Sat, 12 Feb 2011 18:17:01 +0530 From: Thomas Abraham Subject: [PATCH 3/7] ARM: s5pv310-dt: Add support for probing platform bus on s5pv310 dt-enabled machine In-reply-to: <1297514825-10345-1-git-send-email-thomas.abraham@linaro.org> To: devicetree-discuss@lists.ozlabs.org Cc: kgene.kim@samsung.com, grant.likely@secretlab.ca, linaro-dev@lists.linaro.org, patches@linaro.org Message-id: <1297514825-10345-4-git-send-email-thomas.abraham@linaro.org> X-Mailer: git-send-email 1.6.6.rc2 Content-transfer-encoding: 7BIT References: <1297514825-10345-1-git-send-email-thomas.abraham@linaro.org> This patch adds support for probing devices from device tree for Samsung's s5pv310 device-tree enabled machine. Signed-off-by: Thomas Abraham --- arch/arm/mach-s5pv310/mach-s5pv310-dt.c | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-s5pv310/mach-s5pv310-dt.c b/arch/arm/mach-s5pv310/mach-s5pv310-dt.c index a5e33ff..2578d73 100644 --- a/arch/arm/mach-s5pv310/mach-s5pv310-dt.c +++ b/arch/arm/mach-s5pv310/mach-s5pv310-dt.c @@ -57,6 +57,16 @@ static void s5pv310_dt_init_early(void) s3c24xx_init_uarts(uartcfgs, ARRAY_SIZE(uartcfgs)); } +static struct of_device_id s5pv310_dt_match_table[] __initdata = { + { .compatible = "simple-bus", }, + {}, +}; + +static void __init s5pv310_dt_machine_init(void) +{ + of_platform_bus_probe(NULL, s5pv310_dt_match_table, NULL); +} + static char const *s5pv310_dt_compat[] = { "samsung,s5pv310", NULL @@ -67,6 +77,7 @@ MACHINE_START(S5PV310_DT, "Samsung's S5PV310 with flattened device tree") /* Maintainer: Changhwan Youn */ .init_irq = s5pv310_init_irq, .map_io = s5pv310_dt_map_io, + .init_machine = s5pv310_dt_machine_init, .timer = &s5pv310_timer, .dt_compat = s5pv310_dt_compat, .init_early = s5pv310_dt_init_early,