From patchwork Sat Oct 27 18:50:00 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Constantine Shulyupin X-Patchwork-Id: 1656151 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork2.kernel.org (Postfix) with ESMTP id 8FCBDDFAC4 for ; Sat, 27 Oct 2012 18:52:30 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TSBSt-0001gU-AO; Sat, 27 Oct 2012 18:50:35 +0000 Received: from oproxy6-pub.bluehost.com ([67.222.54.6]) by merlin.infradead.org with smtp (Exim 4.76 #1 (Red Hat Linux)) id 1TSBSp-0001gG-5W for linux-arm-kernel@lists.infradead.org; Sat, 27 Oct 2012 18:50:32 +0000 Received: (qmail 30265 invoked by uid 0); 27 Oct 2012 18:50:05 -0000 Received: from unknown (HELO box668.bluehost.com) (66.147.244.168) by cpoproxy3.bluehost.com with SMTP; 27 Oct 2012 18:50:05 -0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=makelinux.com; s=default; h=Message-Id:Date:Subject:Cc:To:From; bh=24deBFbGKYfQgf4OkvYEv+UqYBv0Wba7VeLz52G71a0=; b=FYclQoME6cDp0KQhLK2nbCQqm4jV03eV9FGpa8qKeU/ToJkKXgXREg2ArLrXGqvh3+3IBYtURoHBjx0GmYADqqhjMOJ8ieAzJJyQ603i5Y1KDI2gt/qB6O5rwUDluEjj; Received: from [84.229.179.154] (port=34807 helo=makelinux.home) by box668.bluehost.com with esmtpa (Exim 4.76) (envelope-from ) id 1TSBSN-0005rx-OK; Sat, 27 Oct 2012 12:50:04 -0600 From: Constantine Shulyupin To: Subject: [PATCH] Add FDT support to Pandaboard initialization Date: Sat, 27 Oct 2012 20:50:00 +0200 Message-Id: <1351363800-28744-1-git-send-email-const@MakeLinux.com> X-Mailer: git-send-email 1.7.9.5 X-Identified-User: {1470:box668.bluehost.com:makelinu:makelinux.net} {sentby:smtp auth 84.229.179.154 authed with poster@makelinux.net} X-Spam-Note: CRM114 invocation failed X-Spam-Score: 1.2 (+) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (1.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- 3.0 KHOP_BIG_TO_CC Sent to 10+ recipients instaed of Bcc or a list -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [67.222.54.6 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid Cc: pandaboard@googlegroups.com, linux@arm.linux.org.uk, Tony Lindgren OMAP , nsekhar@ti.com, linux-kernel@vger.kernel.org, balbi@ti.com, Santosh Shilimkar OMAP , tim.bird@am.sony.com, Constantine Shulyupin , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org From: Constantine Shulyupin Problem: - FDT is supported only by generic OMAP board initialization in arch/arm/mach-omap2/board-generic.c and lacks some configurations, which are not yet configured in FDT (USB for example). Solution: - arch/arm/mach-omap2/board-omap4panda.c supports initialization with FDT and without it. Signed-off-by: Constantine Shulyupin --- arch/arm/mach-omap2/board-omap4panda.c | 33 ++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/arch/arm/mach-omap2/board-omap4panda.c b/arch/arm/mach-omap2/board-omap4panda.c index bfcd397..fea7a83 100644 --- a/arch/arm/mach-omap2/board-omap4panda.c +++ b/arch/arm/mach-omap2/board-omap4panda.c @@ -31,6 +31,7 @@ #include #include #include +#include #include #include @@ -526,3 +527,35 @@ MACHINE_START(OMAP4_PANDA, "OMAP4 Panda board") .timer = &omap4_timer, .restart = omap_prcm_restart, MACHINE_END + +static struct of_device_id omap_dt_match_table[] __initdata = { + { .compatible = "simple-bus", }, + { .compatible = "ti,omap-infra", }, + { } +}; + +static void __init panda_dt_init(void) +{ + of_platform_populate(NULL, omap_dt_match_table, NULL, NULL); + omap4_panda_init(); +} + +static const char *omap4_panda_compat[] __initdata = { + "ti,omap4-panda", + "ti,omap4", + NULL, +}; + +DT_MACHINE_START(OMAP4_PANDA_DT, "OMAP4 Pandaboard with FDT support") + .dt_compat = omap4_panda_compat, + .reserve = omap_reserve, + .smp = smp_ops(omap4_smp_ops), + .map_io = omap4_map_io, + .init_early = omap4430_init_early, + .init_irq = omap_gic_of_init, + .handle_irq = gic_handle_irq, + .init_machine = panda_dt_init, + .init_late = omap4430_init_late, + .timer = &omap4_timer, + .restart = omap_prcm_restart, +MACHINE_END