From: Rajendra Nayak Subject: [RFC 0/3] Use clknames to reference parent/bypass/ref clks Date: Wed, 19 Jan 2011 19:44:23 +0530 Message-ID: <1295446466-23655-1-git-send-email-rnayak@ti.com> Return-path: Received: from bear.ext.ti.com ([192.94.94.41]:49530 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754272Ab1ASOOg (ORCPT ); Wed, 19 Jan 2011 09:14:36 -0500 Sender: linux-omap-owner@vger.kernel.org List-Id: linux-omap@vger.kernel.org To: linux-omap@vger.kernel.org Cc: paul@pwsan.com, khilman@deeprootsystems.com, Rajendra Nayak This RFC series adds support to allow clock framework to reference clk parents, reference clocks and bypass clocks (for DPLL's) by names along with the current support to reference them by pointers. Referencing through clk pointers makes it difficult to support different revs of a single chip when seperate clk nodes, one for each rev have to be modelled, and especially when these are non-leaf nodes. A case for this exists in the current series as well. The series is boot tested on 3430sdp and fixes the multiple WARN's otherwise seen like the one below [ 0.000000] ------------[ cut here ]------------ [ 0.000000] WARNING: at arch/arm/mach-omap2/clkt_clksel.c:194 omap2_clksel_recalc+0xd4/0xe4() [ 0.000000] clock: Could not find fieldval 0 for clock dpll2_fck parent core_ck [ 0.000000] Modules linked in: [ 0.000000] [] (unwind_backtrace+0x0/0xe4) from [] (warn_slowpath_common+0x4c/0x64) [ 0.000000] [] (warn_slowpath_common+0x4c/0x64) from [] (warn_slowpath_fmt+0x2c/0x3c) [ 0.000000] [] (warn_slowpath_fmt+0x2c/0x3c) from [] (omap2_clksel_recalc+0xd4/0xe4) [ 0.000000] [] (omap2_clksel_recalc+0xd4/0xe4) from [] (propagate_rate+0x24/0x50) [ 0.000000] [] (propagate_rate+0x24/0x50) from [] (propagate_rate+0x30/0x50) [ 0.000000] ---[ end trace 1b75b31a2719ed1d ]--- Rajendra Nayak (3): OMAP: clocks: Use clk names instead of clk pointers OMAP3: PM: Fix CLK_SRC mask for IVA2 and MPU on 3430ES2 OMAP4: clocks: Remove unused clksel definitions arch/arm/mach-omap2/clock2420_data.c | 86 +++++++------- arch/arm/mach-omap2/clock2430_data.c | 88 ++++++++-------- arch/arm/mach-omap2/clock3xxx_data.c | 183 +++++++++++++++++-------------- arch/arm/mach-omap2/clock44xx_data.c | 145 +++++++++++------------- arch/arm/mach-omap2/cm-regbits-34xx.h | 2 + arch/arm/plat-omap/clock.c | 48 +++++++- arch/arm/plat-omap/include/plat/clock.h | 11 ++- 7 files changed, 308 insertions(+), 255 deletions(-)