From patchwork Fri May 29 08:42:13 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajendra Nayak X-Patchwork-Id: 26902 X-Patchwork-Delegate: khilman@deeprootsystems.com Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n4T8gcYs017612 for ; Fri, 29 May 2009 08:42:39 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754383AbZE2Im2 (ORCPT ); Fri, 29 May 2009 04:42:28 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755711AbZE2Im2 (ORCPT ); Fri, 29 May 2009 04:42:28 -0400 Received: from devils.ext.ti.com ([198.47.26.153]:42743 "EHLO devils.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754383AbZE2ImZ (ORCPT ); Fri, 29 May 2009 04:42:25 -0400 Received: from dbdp31.itg.ti.com ([172.24.170.98]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id n4T8gLVh008059 for ; Fri, 29 May 2009 03:42:27 -0500 Received: from linfarm476.india.ti.com (localhost [127.0.0.1]) by dbdp31.itg.ti.com (8.13.8/8.13.8) with ESMTP id n4T8gKuu000303; Fri, 29 May 2009 14:12:20 +0530 (IST) Received: from linfarm476.india.ti.com (localhost [127.0.0.1]) by linfarm476.india.ti.com (8.12.11/8.12.11) with ESMTP id n4T8gKHr013198; Fri, 29 May 2009 14:12:20 +0530 Received: (from x0016154@localhost) by linfarm476.india.ti.com (8.12.11/8.12.11/Submit) id n4T8gKuo013196; Fri, 29 May 2009 14:12:20 +0530 From: Rajendra Nayak To: linux-omap@vger.kernel.org Cc: Rajendra Nayak Subject: [PATCH 03/10][RFC] OMAP4: PM: Add a dummy node to prevent crash at bootup Date: Fri, 29 May 2009 14:12:13 +0530 Message-Id: <1243586540-12274-3-git-send-email-rnayak@ti.com> X-Mailer: git-send-email 1.5.5 In-Reply-To: <1243586540-12274-2-git-send-email-rnayak@ti.com> References: <1243586540-12274-1-git-send-email-rnayak@ti.com> <1243586540-12274-2-git-send-email-rnayak@ti.com> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org This patch adds a dummy gpmc clock node to prevent a crash at bootup on OMAP4. Signed-off-by: Rajendra Nayak --- arch/arm/mach-omap2/clock44xx.c | 1 + arch/arm/mach-omap2/clock44xx.h | 7 +++++++ 2 files changed, 8 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/clock44xx.c b/arch/arm/mach-omap2/clock44xx.c index f4e0113..ffb63b3 100644 --- a/arch/arm/mach-omap2/clock44xx.c +++ b/arch/arm/mach-omap2/clock44xx.c @@ -73,6 +73,7 @@ static struct omap_clk omap44xx_clks[] = { CLK(NULL, "gpt9_fck", &gpt9_fck, CK_443X), CLK(NULL, "gpt10_fck", &gpt10_fck, CK_443X), CLK(NULL, "gpt11_fck", &gpt11_fck, CK_443X), + CLK(NULL, "gpmc_fck", &gpmc_fck, CK_443X), }; static struct clk_functions omap2_clk_functions = { diff --git a/arch/arm/mach-omap2/clock44xx.h b/arch/arm/mach-omap2/clock44xx.h index 2ce7147..8a0cc62 100644 --- a/arch/arm/mach-omap2/clock44xx.h +++ b/arch/arm/mach-omap2/clock44xx.h @@ -291,4 +291,11 @@ static struct clk gpt11_fck = { .clksel = omap443x_gpt_clksel, .recalc = &omap2_clksel_recalc, }; + +/* TODO:Dummy clock node still needed to boot on Omap4, remove later */ +static struct clk gpmc_fck = { + .name = "gpmc_fck", + .ops = &clkops_null, +}; + #endif