Use clknames to reference parent/bypass/ref clks
cover Use clknames to reference parent/bypass/ref clks
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] [<c006208c>] (unwind_backtrace+0x0/0xe4) from [<c0092bfc>] (warn_slowpath_common+0x4c/0x64) [ 0.000000] [<c0092bfc>] (warn_slowpath_common+0x4c/0x64) from [<c0092c94>] (warn_slowpath_fmt+0x2c/0x3c) [ 0.000000] [<c0092c94>] (warn_slowpath_fmt+0x2c/0x3c) from [<c0073dc4>] (omap2_clksel_recalc+0xd4/0xe4) [ 0.000000] [<c0073dc4>] (omap2_clksel_recalc+0xd4/0xe4) from [<c0077e1c>] (propagate_rate+0x24/0x50) [ 0.000000] [<c0077e1c>] (propagate_rate+0x24/0x50) from [<c0077e28>] (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(-)
RFC 1/3 OMAP: clocks: Use clk names instead of clk pointers
There are various instances of clk pointers being embedded within structures in the clock framework to refer to clk parents, reference clocks, bypass clocks etc.
The right way to reference these is by their name and not by embedding direct pointers to these clks.
Hence make provision to be able to provide clock names to refer to parents and bypass/ref clks and populate the clk pointers at runtime.
This requires the const qualifier to be dropped for struct clksel within struct clk and hence needs clksel struct definitions to be changed in all clock*_data.c files.
--- arch/arm/mach-omap2/clock2420_data.c | 86 +++++++++--------- arch/arm/mach-omap2/clock2430_data.c | 88 ++++++++++---------- arch/arm/mach-omap2/clock3xxx_data.c | 144 +++++++++++++++--------------- arch/arm/mach-omap2/clock44xx_data.c | 136 +++++++++++++++--------------- arch/arm/plat-omap/clock.c | 48 +++++++++-- arch/arm/plat-omap/include/plat/clock.h | 11 ++- 6 files changed, 277 insertions(+), 236 deletions(-)
arch/arm/mach-omap2/clock2420_data.c +43 -43
@@ -161,17 +161,17 @@ static struct clk apll54_ck = {/* func_54m_ck */ -static const struct clksel_rate func_54m_apll54_rates[] = { +static struct clksel_rate func_54m_apll54_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_24XX }, { .div =0 }, }; -static const struct clksel_rate func_54m_alt_rates[] = { +static struct clksel_rate func_54m_alt_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =0 }, }; -static const struct clksel func_54m_clksel[] = { +static struct clksel func_54m_clksel[] = { { .parent = &apll54_ck, .rates = func_54m_apll54_rates, }, { .parent = &alt_ck, .rates = func_54m_alt_rates, }, { .parent =NULL },
@@ -207,17 +207,17 @@ static struct clk func_96m_ck = {/* func_48m_ck */ -static const struct clksel_rate func_48m_apll96_rates[] = { +static struct clksel_rate func_48m_apll96_rates[] = { { .div =2 , .val =0 , .flags =RATE_IN_24XX }, { .div =0 }, }; -static const struct clksel_rate func_48m_alt_rates[] = { +static struct clksel_rate func_48m_alt_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =0 }, }; -static const struct clksel func_48m_clksel[] = { +static struct clksel func_48m_clksel[] = { { .parent = &apll96_ck, .rates = func_48m_apll96_rates }, { .parent = &alt_ck, .rates = func_48m_alt_rates }, { .parent =NULL }
@@ -262,27 +262,27 @@ static struct clk wdt1_osc_ck = {* harmless since access to those clocks are gated by the struct clk * flags fields, which mark them as 2420-only. */ -static const struct clksel_rate common_clkout_src_core_rates[] = { +static struct clksel_rate common_clkout_src_core_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel_rate common_clkout_src_sys_rates[] = { +static struct clksel_rate common_clkout_src_sys_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel_rate common_clkout_src_96m_rates[] = { +static struct clksel_rate common_clkout_src_96m_rates[] = { { .div =1 , .val =2 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel_rate common_clkout_src_54m_rates[] = { +static struct clksel_rate common_clkout_src_54m_rates[] = { { .div =1 , .val =3 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel common_clkout_src_clksel[] = { +static struct clksel common_clkout_src_clksel[] = { { .parent = &core_ck, .rates = common_clkout_src_core_rates }, { .parent = &sys_ck, .rates = common_clkout_src_sys_rates }, { .parent = &func_96m_ck, .rates = common_clkout_src_96m_rates },
@@ -306,7 +306,7 @@ static struct clk sys_clkout_src = { .set_rate = &omap2_clksel_set_rate }; -static const struct clksel_rate common_clkout_rates[] = { +static struct clksel_rate common_clkout_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_24XX }, { .div =2 , .val =1 , .flags =RATE_IN_24XX }, { .div =4 , .val =2 , .flags =RATE_IN_24XX },
@@ -315,7 +315,7 @@ static const struct clksel_rate common_clkout_rates[] = { { .div = 0 }, }; -static const struct clksel sys_clkout_clksel[] = { +static struct clksel sys_clkout_clksel[] = { { .parent = &sys_clkout_src, .rates = common_clkout_rates }, { .parent =NULL } };
@@ -350,7 +350,7 @@ static struct clk sys_clkout2_src = { .set_rate = &omap2_clksel_set_rate }; -static const struct clksel sys_clkout2_clksel[] = { +static struct clksel sys_clkout2_clksel[] = { { .parent = &sys_clkout2_src, .rates = common_clkout_rates }, { .parent =NULL } };
@@ -390,7 +390,7 @@ static struct clk emul_ck = {* - Base divider comes from: CM_CLKSEL_MPU * */ -static const struct clksel_rate mpu_core_rates[] = { +static struct clksel_rate mpu_core_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =2 , .val =2 , .flags =RATE_IN_24XX }, { .div =4 , .val =4 , .flags =RATE_IN_242X },
@@ -399,7 +399,7 @@ static const struct clksel_rate mpu_core_rates[] = { { .div = 0 }, }; -static const struct clksel mpu_clksel[] = { +static struct clksel mpu_clksel[] = { { .parent = &core_ck, .rates = mpu_core_rates }, { .parent =NULL } };
@@ -426,7 +426,7 @@ static struct clk mpu_ck = { /* Control cpu */* controls. The other branch gets further divided by 2 then possibly * routed into a synchronizer and out of clocks abc. */ -static const struct clksel_rate dsp_fck_core_rates[] = { +static struct clksel_rate dsp_fck_core_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =2 , .val =2 , .flags =RATE_IN_24XX }, { .div =3 , .val =3 , .flags =RATE_IN_24XX },
@@ -437,7 +437,7 @@ static const struct clksel_rate dsp_fck_core_rates[] = { { .div = 0 }, }; -static const struct clksel dsp_fck_clksel[] = { +static struct clksel dsp_fck_clksel[] = { { .parent = &core_ck, .rates = dsp_fck_core_rates }, { .parent =NULL } };
@@ -456,13 +456,13 @@ static struct clk dsp_fck = { };/* DSP interface clock */ -static const struct clksel_rate dsp_irate_ick_rates[] = { +static struct clksel_rate dsp_irate_ick_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =2 , .val =2 , .flags =RATE_IN_24XX }, { .div =0 }, }; -static const struct clksel dsp_irate_ick_clksel[] = { +static struct clksel dsp_irate_ick_clksel[] = { { .parent = &dsp_fck, .rates = dsp_irate_ick_rates }, { .parent =NULL } };
@@ -536,7 +536,7 @@ static struct clk iva1_mpu_int_ifck = {* may very well need notification when the clock changes. Currently for low * operating points, these are taken care of in sleep.S. */ -static const struct clksel_rate core_l3_core_rates[] = { +static struct clksel_rate core_l3_core_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =2 , .val =2 , .flags =RATE_IN_242X }, { .div =4 , .val =4 , .flags =RATE_IN_24XX },
@@ -547,7 +547,7 @@ static const struct clksel_rate core_l3_core_rates[] = { { .div = 0 } }; -static const struct clksel core_l3_clksel[] = { +static struct clksel core_l3_clksel[] = { { .parent = &core_ck, .rates = core_l3_core_rates }, { .parent =NULL } };
@@ -564,14 +564,14 @@ static struct clk core_l3_ck = { /* Used for ick and fck, interconnect */ };/* usb_l4_ick */ -static const struct clksel_rate usb_l4_ick_core_l3_rates[] = { +static struct clksel_rate usb_l4_ick_core_l3_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =2 , .val =2 , .flags =RATE_IN_24XX }, { .div =4 , .val =4 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel usb_l4_ick_clksel[] = { +static struct clksel usb_l4_ick_clksel[] = { { .parent = &core_l3_ck, .rates = usb_l4_ick_core_l3_rates }, { .parent =NULL }, };
@@ -597,13 +597,13 @@ static struct clk usb_l4_ick = { /* FS-USB interface clock */* functional clocks. Fixed APLL functional source clocks are managed in * this domain. */ -static const struct clksel_rate l4_core_l3_rates[] = { +static struct clksel_rate l4_core_l3_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =2 , .val =2 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel l4_clksel[] = { +static struct clksel l4_clksel[] = { { .parent = &core_l3_ck, .rates = l4_core_l3_rates }, { .parent =NULL } };
@@ -627,7 +627,7 @@ static struct clk l4_ck = { /* used both as an ick and fck */* * ssr = core/1/2/3/4/5, sst = 1/2 ssr. */ -static const struct clksel_rate ssi_ssr_sst_fck_core_rates[] = { +static struct clksel_rate ssi_ssr_sst_fck_core_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =2 , .val =2 , .flags =RATE_IN_24XX }, { .div =3 , .val =3 , .flags =RATE_IN_24XX },
@@ -637,7 +637,7 @@ static const struct clksel_rate ssi_ssr_sst_fck_core_rates[] = { { .div = 0 } }; -static const struct clksel ssi_ssr_sst_fck_clksel[] = { +static struct clksel ssi_ssr_sst_fck_clksel[] = { { .parent = &core_ck, .rates = ssi_ssr_sst_fck_core_rates }, { .parent =NULL } };
@@ -683,7 +683,7 @@ static struct clk ssi_l4_ick = {*/ /* This clksel struct is shared between gfx_3d_fck and gfx_2d_fck */ -static const struct clksel gfx_fck_clksel[] = { +static struct clksel gfx_fck_clksel[] = { { .parent = &core_l3_ck, .rates = gfx_l3_rates }, { .parent =NULL }, };
@@ -736,12 +736,12 @@ static struct clk gfx_ick = {*/ /* XXX Add RATE_NOT_VALIDATED */ -static const struct clksel_rate dss1_fck_sys_rates[] = { +static struct clksel_rate dss1_fck_sys_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel_rate dss1_fck_core_rates[] = { +static struct clksel_rate dss1_fck_core_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =2 , .val =2 , .flags =RATE_IN_24XX }, { .div =3 , .val =3 , .flags =RATE_IN_24XX },
@@ -755,7 +755,7 @@ static const struct clksel_rate dss1_fck_core_rates[] = { { .div = 0 } }; -static const struct clksel dss1_fck_clksel[] = { +static struct clksel dss1_fck_clksel[] = { { .parent = &sys_ck, .rates = dss1_fck_sys_rates }, { .parent = &core_ck, .rates = dss1_fck_core_rates }, { .parent =NULL },
@@ -785,17 +785,17 @@ static struct clk dss1_fck = { .recalc = &omap2_clksel_recalc, }; -static const struct clksel_rate dss2_fck_sys_rates[] = { +static struct clksel_rate dss2_fck_sys_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel_rate dss2_fck_48m_rates[] = { +static struct clksel_rate dss2_fck_48m_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel dss2_fck_clksel[] = { +static struct clksel dss2_fck_clksel[] = { { .parent = &sys_ck, .rates = dss2_fck_sys_rates }, { .parent = &func_48m_ck, .rates = dss2_fck_48m_rates }, { .parent =NULL }
@@ -831,12 +831,12 @@ static struct clk dss_54m_fck = { /* Alt clk used in power management */* here will likely have an L4 interface parent, and may have multiple * functional clock parents. */ -static const struct clksel_rate gpt_alt_rates[] = { +static struct clksel_rate gpt_alt_rates[] = { { .div =1 , .val =2 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel omap24xx_gpt_clksel[] = { +static struct clksel omap24xx_gpt_clksel[] = { { .parent = &func_32k_ck, .rates = gpt_32k_rates }, { .parent = &sys_ck, .rates = gpt_sys_rates }, { .parent = &alt_ck, .rates = gpt_alt_rates },
@@ -1142,17 +1142,17 @@ static struct clk mcbsp1_ick = { .recalc = &followparent_recalc, }; -static const struct clksel_rate common_mcbsp_96m_rates[] = { +static struct clksel_rate common_mcbsp_96m_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel_rate common_mcbsp_mcbsp_rates[] = { +static struct clksel_rate common_mcbsp_mcbsp_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel mcbsp_fck_clksel[] = { +static struct clksel mcbsp_fck_clksel[] = { { .parent = &func_96m_ck, .rates = common_mcbsp_96m_rates }, { .parent = &mcbsp_clks, .rates = common_mcbsp_mcbsp_rates }, { .parent =NULL }
@@ -1618,12 +1618,12 @@ static struct clk vlynq_ick = { .recalc = &followparent_recalc, }; -static const struct clksel_rate vlynq_fck_96m_rates[] = { +static struct clksel_rate vlynq_fck_96m_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_242X }, { .div =0 } }; -static const struct clksel_rate vlynq_fck_core_rates[] = { +static struct clksel_rate vlynq_fck_core_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_242X }, { .div =2 , .val =2 , .flags =RATE_IN_242X }, { .div =3 , .val =3 , .flags =RATE_IN_242X },
@@ -1637,7 +1637,7 @@ static const struct clksel_rate vlynq_fck_core_rates[] = { { .div = 0 } }; -static const struct clksel vlynq_fck_clksel[] = { +static struct clksel vlynq_fck_clksel[] = { { .parent = &func_96m_ck, .rates = vlynq_fck_96m_rates }, { .parent = &core_ck, .rates = vlynq_fck_core_rates }, { .parent =NULL }
arch/arm/mach-omap2/clock2430_data.c +44 -44
318 lines not on this page · raw message
arch/arm/mach-omap2/clock3xxx_data.c +72 -72
524 lines not on this page · raw message
arch/arm/mach-omap2/clock44xx_data.c +68 -68
523 lines not on this page · raw message
arch/arm/plat-omap/clock.c +41 -7
68 lines not on this page · raw message
arch/arm/plat-omap/include/plat/clock.h +9 -2
@@ -85,6 +85,7 @@ struct clksel_rate {/** * struct clksel - available parent clocks, and a pointer to their divisors * @parent: struct clk * to a possible parent clock +* @parent_name: Name of the possible parent clock * @rates: available divisors for this parent clock * * A struct clksel is always associated with one or more struct clks
@@ -92,6 +93,7 @@ struct clksel_rate {*/ struct clksel {struct clk *parent; +const char *parent_name;const struct clksel_rate *rates; };
@@ -101,7 +103,9 @@ struct clksel {* @mult_mask: mask of the DPLL M bitfield in @mult_div1_reg * @div1_mask: mask of the DPLL N bitfield in @mult_div1_reg * @clk_bypass: struct clk pointer to the clock's bypass clock input +* @clk_bypass_name: Name of the clock's bypass clock input * @clk_ref: struct clk pointer to the clock's reference clock input +* @clk_ref_name: Name of the clock's reference clock input * @control_reg: register containing the DPLL mode bitfield * @enable_mask: mask of the DPLL mode bitfield in @control_reg * @rate_tolerance: maximum variance allowed from target rate (in Hz)
@@ -143,7 +147,9 @@ struct dpll_data {u32 mult_mask;u32 div1_mask;struct clk *clk_bypass; +const char *clk_bypass_name;struct clk *clk_ref; +const char *clk_ref_name;void __iomem *control_reg;u32 enable_mask;unsigned int rate_tolerance;
@@ -230,6 +236,7 @@ struct clk {const struct clkops *ops;const char *name;struct clk *parent; +const char *parent_name;struct list_head children;struct list_head sibling;/* node for children */ unsigned long rate;
@@ -245,7 +252,7 @@ struct clk {#ifdef CONFIG_ARCH_OMAP2PLUS void __iomem *clksel_reg;u32 clksel_mask; -const struct clksel *clksel; +struct clksel *clksel;struct dpll_data *dpll_data;const char *clkdm_name;struct clockdomain *clkdm;
@@ -292,7 +299,7 @@ extern void clk_init_cpufreq_table(struct cpufreq_frequency_table **table);extern void clk_exit_cpufreq_table (struct cpufreq_frequency_table **table);#endif extern struct clk *omap_clk_get_by_name (const char *name); - +extern void omap_init_clk_pts (void );extern const struct clkops clkops_null;extern struct clk dummy_ck;
Signature · 1 line
1.7.0.4
RFC 2/3 OMAP3: PM: Fix CLK_SRC mask for IVA2 and MPU on 3430ES2PLUS
The IVA2_CLK_SRC and MPU_CLK_SRC for OMAP3430 ES2 and above are 3 bit fields.
Define new masks for them, and since they are used in a couple of clock nodes, model separate clock nodes for 3430ES1 and 3430ES2+.
Also change reference to these new clock nodes from clk pointers to clk name and make a call to omap_init_clk_pts to init the pointers at run time.
--- arch/arm/mach-omap2/clock3xxx_data.c | 39 ++++++++++++++++++++++++++------ arch/arm/mach-omap2/cm-regbits-34xx.h | 2 + 2 files changed, 33 insertions(+), 8 deletions(-)
arch/arm/mach-omap2/clock3xxx_data.c +31 -8
@@ -53,10 +53,6 @@* DPLL5 supplies other peripheral clocks (USBHOST, USIM). */ -/* Forward declarations for DPLL bypass clocks */ -static struct clk dpll1_fck; -static struct clk dpll2_fck; -/* PRM CLOCKS */ /* According to timer32k.c, this is a 32768Hz clock, not a 32000Hz clock. */
@@ -275,7 +271,7 @@ static struct dpll_data dpll1_dd = { .mult_div1_reg = OMAP_CM_REGADDR(MPU_MOD, OMAP3430_CM_CLKSEL1_PLL), .mult_mask = OMAP3430_MPU_DPLL_MULT_MASK, .div1_mask = OMAP3430_MPU_DPLL_DIV_MASK, - .clk_bypass = &dpll1_fck, + .clk_bypass_name = "dpll1_fck", .clk_ref = &sys_ck, .freqsel_mask = OMAP3430_MPU_DPLL_FREQSEL_MASK, .control_reg = OMAP_CM_REGADDR(MPU_MOD, OMAP3430_CM_CLKEN_PLL),
@@ -347,7 +343,7 @@ static struct dpll_data dpll2_dd = { .mult_div1_reg = OMAP_CM_REGADDR(OMAP3430_IVA2_MOD, OMAP3430_CM_CLKSEL1_PLL), .mult_mask = OMAP3430_IVA2_DPLL_MULT_MASK, .div1_mask = OMAP3430_IVA2_DPLL_DIV_MASK, - .clk_bypass = &dpll2_fck, + .clk_bypass_name = "dpll2_fck", .clk_ref = &sys_ck, .freqsel_mask = OMAP3430_IVA2_DPLL_FREQSEL_MASK, .control_reg = OMAP_CM_REGADDR(OMAP3430_IVA2_MOD, OMAP3430_CM_CLKEN_PLL),
@@ -1077,6 +1073,17 @@ static struct clk dpll1_fck = { .recalc = &omap2_clksel_recalc, }; +static struct clk dpll1_fck_3430es2 = { + .name ="dpll1_fck" , + .ops = &clkops_null, + .parent = &core_ck, + .init = &omap2_init_clksel_parent, + .clksel_reg =OMAP_CM_REGADDR (MPU_MOD ,OMAP3430_CM_CLKSEL1_PLL ), + .clksel_mask =OMAP3430ES2_MPU_CLK_SRC_MASK , + .clksel = div4_core_clksel, + .recalc = &omap2_clksel_recalc, +}; +static struct clk mpu_ck = { .name ="mpu_ck" , .ops = &clkops_null,
@@ -1133,6 +1140,17 @@ static struct clk dpll2_fck = { .recalc = &omap2_clksel_recalc, }; +static struct clk dpll2_fck_3430es2 = { + .name ="dpll2_fck" , + .ops = &clkops_null, + .parent = &core_ck, + .init = &omap2_init_clksel_parent, + .clksel_reg =OMAP_CM_REGADDR (OMAP3430_IVA2_MOD ,OMAP3430_CM_CLKSEL1_PLL ), + .clksel_mask =OMAP3430ES2_IVA2_CLK_SRC_MASK , + .clksel = div4_core_clksel, + .recalc = &omap2_clksel_recalc, +}; +static struct clk iva2_ck = { .name ="iva2_ck" , .ops = &clkops_omap2_dflt_wait,
@@ -3261,11 +3279,13 @@ static struct omap_clk omap3xxx_clks[] = {CLK (NULL ,"clkout2_src_ck" , &clkout2_src_ck,CK_3XXX ),CLK (NULL ,"sys_clkout2" , &sys_clkout2,CK_3XXX ),CLK (NULL ,"corex2_fck" , &corex2_fck,CK_3XXX ), -CLK (NULL ,"dpll1_fck" , &dpll1_fck,CK_3XXX ), +CLK (NULL ,"dpll1_fck" , &dpll1_fck,CK_3430ES1 ), +CLK (NULL ,"dpll1_fck" , &dpll1_fck_3430es2,CK_3430ES2PLUS |CK_AM35XX |CK_36XX ),CLK (NULL ,"mpu_ck" , &mpu_ck,CK_3XXX ),CLK (NULL ,"arm_fck" , &arm_fck,CK_3XXX ),CLK ("etb" ,"emu_mpu_alwon_ck" , &emu_mpu_alwon_ck,CK_3XXX ), -CLK (NULL ,"dpll2_fck" , &dpll2_fck,CK_34XX |CK_36XX ), +CLK (NULL ,"dpll2_fck" , &dpll2_fck,CK_3430ES1 ), +CLK (NULL ,"dpll2_fck" , &dpll2_fck_3430es2,CK_3430ES2PLUS |CK_36XX ),CLK (NULL ,"iva2_ck" , &iva2_ck,CK_34XX |CK_36XX ),CLK (NULL ,"l3_ick" , &l3_ick,CK_3XXX ), CLK(NULL, "l4_ick", &l4_ick, CK_3XXX),
@@ -3535,6 +3555,9 @@ int __init omap3xxx_clk_init(void)omap2_init_clk_clkdm (c->lk.clk); } +/* Initialise clk pointers for parent/ref/bypass clks */ +omap_init_clk_pts (); +recalculate_root_clocks (); pr_info("Clocking rate (Crystal/Core/MPU): %ld.%01ld/%ld/%ld MHz\n",
arch/arm/mach-omap2/cm-regbits-34xx.h +2 -0
@@ -80,6 +80,7 @@/* CM_CLKSEL1_PLL_IVA2 */ #define OMAP3430_IVA2_CLK_SRC_SHIFT 19#define OMAP3430_IVA2_CLK_SRC_MASK (0x3 << 19) +#define OMAP3430ES2_IVA2_CLK_SRC_MASK (0x7 << 19)#define OMAP3430_IVA2_DPLL_MULT_SHIFT 8#define OMAP3430_IVA2_DPLL_MULT_MASK (0x7ff << 8)#define OMAP3430_IVA2_DPLL_DIV_SHIFT 0
@@ -125,6 +126,7 @@/* CM_CLKSEL1_PLL_MPU */ #define OMAP3430_MPU_CLK_SRC_SHIFT 19#define OMAP3430_MPU_CLK_SRC_MASK (0x3 << 19) +#define OMAP3430ES2_MPU_CLK_SRC_MASK (0x7 << 19)#define OMAP3430_MPU_DPLL_MULT_SHIFT 8#define OMAP3430_MPU_DPLL_MULT_MASK (0x7ff << 8)#define OMAP3430_MPU_DPLL_DIV_SHIFT 0
Signature · 1 line
1.7.0.4
RFC 3/3 OMAP4: clocks: Remove unused clksel definitions
Trivial fix to remove a couple of unused
clksel definitions for OMAP4
--- arch/arm/mach-omap2/clock44xx_data.c | 13 ------------- 1 files changed, 0 insertions(+), 13 deletions(-)
arch/arm/mach-omap2/clock44xx_data.c +0 -13
@@ -472,12 +472,6 @@ static struct clk dpll_core_m6x2_ck = { .set_rate = &omap2_clksel_set_rate, }; -static struct clksel dbgclk_mux_sel[] = { - { .parent = &sys_clkin_ck, .rates = div_1_0_rates }, - { .parent = &dpll_core_m6x2_ck, .rates = div_1_1_rates }, - { .parent =NULL }, -}; -static struct clk dbgclk_mux_ck = { .name ="dbgclk_mux_ck" , .parent = &sys_clkin_ck,
@@ -1309,13 +1303,6 @@ static struct clk per_abe_24m_fclk = { .recalc = &omap_fixed_divisor_recalc, }; -static struct clksel pmd_stm_clock_mux_sel[] = { - { .parent = &sys_clkin_ck, .rates = div_1_0_rates }, - { .parent = &dpll_core_m6x2_ck, .rates = div_1_1_rates }, - { .parent = &tie_low_clock_ck, .rates = div_1_2_rates }, - { .parent =NULL }, -}; -static struct clk pmd_stm_clock_mux_ck = { .name ="pmd_stm_clock_mux_ck" , .parent = &sys_clkin_ck,
Signature · 1 line
1.7.0.4
Re: [RFC 2/3] OMAP3: PM: Fix CLK_SRC mask for IVA2 and MPU on 3430ES2PLUS
In reply to Rajendra NayakQuoted 5 lines · Rajendra Nayak
The
IVA2_CLK_SRCandMPU_CLK_SRCfor OMAP3430 ES2 and above are 3 bit fields.
Define new masks for them, and since they are used in a couple of clock nodes, model separate clock nodes for 3430ES1 and 3430ES2+.
This part should probably be separated out as a fix for the -rc cycle.
Kevin
Quoted 126 lines
Also change reference to these new clock nodes from clk pointers to clk name and make a call to
omap_init_clk_ptsto init the pointers at run time.Signed-off-by Rajendra Nayak <[email protected]>--- arch/arm/mach-omap2/clock3xxx_data.c | 39 ++++++++++++++++++++++++++------ arch/arm/mach-omap2/cm-regbits-34xx.h | 2 + 2 files changed, 33 insertions(+), 8 deletions(-)arch/arm/mach-omap2/clock3xxx_data.c +31
-8@@ -53,10 +53,6 @@* DPLL5 supplies other peripheral clocks (USBHOST, USIM). */ -/* Forward declarations for DPLL bypass clocks */ -static struct clk dpll1_fck; -static struct clk dpll2_fck; -/* PRM CLOCKS */ /* According to timer32k.c, this is a 32768Hz clock, not a 32000Hz clock. */ @@ -275,7 +271,7 @@ static struct dpll_data dpll1_dd = { .mult_div1_reg = OMAP_CM_REGADDR(MPU_MOD, OMAP3430_CM_CLKSEL1_PLL), .mult_mask = OMAP3430_MPU_DPLL_MULT_MASK, .div1_mask = OMAP3430_MPU_DPLL_DIV_MASK, - .clk_bypass = &dpll1_fck, + .clk_bypass_name = "dpll1_fck", .clk_ref = &sys_ck, .freqsel_mask = OMAP3430_MPU_DPLL_FREQSEL_MASK, .control_reg = OMAP_CM_REGADDR(MPU_MOD, OMAP3430_CM_CLKEN_PLL),@@ -347,7 +343,7 @@ static struct dpll_data dpll2_dd = { .mult_div1_reg = OMAP_CM_REGADDR(OMAP3430_IVA2_MOD, OMAP3430_CM_CLKSEL1_PLL), .mult_mask = OMAP3430_IVA2_DPLL_MULT_MASK, .div1_mask = OMAP3430_IVA2_DPLL_DIV_MASK, - .clk_bypass = &dpll2_fck, + .clk_bypass_name = "dpll2_fck", .clk_ref = &sys_ck, .freqsel_mask = OMAP3430_IVA2_DPLL_FREQSEL_MASK, .control_reg = OMAP_CM_REGADDR(OMAP3430_IVA2_MOD, OMAP3430_CM_CLKEN_PLL),@@ -1077,6 +1073,17 @@ static struct clk dpll1_fck = { .recalc = &omap2_clksel_recalc, }; +static struct clk dpll1_fck_3430es2 = { + .name ="dpll1_fck" , + .ops = &clkops_null, + .parent = &core_ck, + .init = &omap2_init_clksel_parent, + .clksel_reg =OMAP_CM_REGADDR (MPU_MOD ,OMAP3430_CM_CLKSEL1_PLL ), + .clksel_mask =OMAP3430ES2_MPU_CLK_SRC_MASK , + .clksel = div4_core_clksel, + .recalc = &omap2_clksel_recalc, +}; +static struct clk mpu_ck = { .name ="mpu_ck" , .ops = &clkops_null,@@ -1133,6 +1140,17 @@ static struct clk dpll2_fck = { .recalc = &omap2_clksel_recalc, }; +static struct clk dpll2_fck_3430es2 = { + .name ="dpll2_fck" , + .ops = &clkops_null, + .parent = &core_ck, + .init = &omap2_init_clksel_parent, + .clksel_reg =OMAP_CM_REGADDR (OMAP3430_IVA2_MOD ,OMAP3430_CM_CLKSEL1_PLL ), + .clksel_mask =OMAP3430ES2_IVA2_CLK_SRC_MASK , + .clksel = div4_core_clksel, + .recalc = &omap2_clksel_recalc, +}; +static struct clk iva2_ck = { .name ="iva2_ck" , .ops = &clkops_omap2_dflt_wait,@@ -3261,11 +3279,13 @@ static struct omap_clk omap3xxx_clks[] = {CLK (NULL ,"clkout2_src_ck" , &clkout2_src_ck,CK_3XXX ),CLK (NULL ,"sys_clkout2" , &sys_clkout2,CK_3XXX ),CLK (NULL ,"corex2_fck" , &corex2_fck,CK_3XXX ), -CLK (NULL ,"dpll1_fck" , &dpll1_fck,CK_3XXX ), +CLK (NULL ,"dpll1_fck" , &dpll1_fck,CK_3430ES1 ), +CLK (NULL ,"dpll1_fck" , &dpll1_fck_3430es2,CK_3430ES2PLUS |CK_AM35XX |CK_36XX ),CLK (NULL ,"mpu_ck" , &mpu_ck,CK_3XXX ),CLK (NULL ,"arm_fck" , &arm_fck,CK_3XXX ),CLK ("etb" ,"emu_mpu_alwon_ck" , &emu_mpu_alwon_ck,CK_3XXX ), -CLK (NULL ,"dpll2_fck" , &dpll2_fck,CK_34XX |CK_36XX ), +CLK (NULL ,"dpll2_fck" , &dpll2_fck,CK_3430ES1 ), +CLK (NULL ,"dpll2_fck" , &dpll2_fck_3430es2,CK_3430ES2PLUS |CK_36XX ),CLK (NULL ,"iva2_ck" , &iva2_ck,CK_34XX |CK_36XX ),CLK (NULL ,"l3_ick" , &l3_ick,CK_3XXX ), CLK(NULL, "l4_ick", &l4_ick, CK_3XXX),@@ -3535,6 +3555,9 @@ int __init omap3xxx_clk_init(void)omap2_init_clk_clkdm (c->lk.clk); } +/* Initialise clk pointers for parent/ref/bypass clks */ +omap_init_clk_pts (); +recalculate_root_clocks (); pr_info("Clocking rate (Crystal/Core/MPU): %ld.%01ld/%ld/%ld MHz\n",arch/arm/mach-omap2/cm-regbits-34xx.h +2
-0@@ -80,6 +80,7 @@/* CM_CLKSEL1_PLL_IVA2 */ #define OMAP3430_IVA2_CLK_SRC_SHIFT 19#define OMAP3430_IVA2_CLK_SRC_MASK (0x3 << 19) +#define OMAP3430ES2_IVA2_CLK_SRC_MASK (0x7 << 19)#define OMAP3430_IVA2_DPLL_MULT_SHIFT 8#define OMAP3430_IVA2_DPLL_MULT_MASK (0x7ff << 8)#define OMAP3430_IVA2_DPLL_DIV_SHIFT 0@@ -125,6 +126,7 @@/* CM_CLKSEL1_PLL_MPU */ #define OMAP3430_MPU_CLK_SRC_SHIFT 19#define OMAP3430_MPU_CLK_SRC_MASK (0x3 << 19) +#define OMAP3430ES2_MPU_CLK_SRC_MASK (0x7 << 19)#define OMAP3430_MPU_DPLL_MULT_SHIFT 8#define OMAP3430_MPU_DPLL_MULT_MASK (0x7ff << 8)#define OMAP3430_MPU_DPLL_DIV_SHIFT 0
RE: [RFC 2/3] OMAP3: PM: Fix CLK_SRC mask for IVA2 and MPU on 3430ES2PLUS
Hi Kevin,
Quoted 6 lines
-----Original Message-----
From: Kevin Hilman [mailto:[email protected]]
Sent: Tuesday, January 25, 2011 3:39 AM
To: Rajendra Nayak
Cc: [email protected]; [email protected]
Subject: Re: [RFC 2/3] OMAP3: PM: FixCLK_SRCmask for IVA2 and MPU on
3430ES2PLUS
Quoted 10 lines
Quoted 5 lines · Rajendra Nayak
The
IVA2_CLK_SRCandMPU_CLK_SRCfor OMAP3430 ES2 and above are 3 bit fields.
Define new masks for them, and since they are used in a couple of clock nodes, model separate clock nodes for 3430ES1 and 3430ES2+.This part should probably be separated out as a fix for the -rc cycle.
The reason I clubbed this fix here was because it had a dependency on the 'reference by name' approach added by the previous patch.
Else I was looking at creating too many duplicate nodes, since the clock nodes which get added in this patch (dpll1_fck_3430es2/dpll2_fck_3430es2) are part of dpll_data.
Regards,
Rajendra
Quoted 11 lines
Kevin
Quoted 8 lines
Also change reference to these new clock nodes from clk pointers to clk name and make a call to
omap_init_clk_ptsto init the pointers at run time.Signed-off-by Rajendra Nayak <[email protected]>--- arch/arm/mach-omap2/clock3xxx_data.c | 39
++++++++++++++++++++++++++------
Quoted 4 lines
Review
Quoted 4 lines
arch/arm/mach-omap2/cm-regbits-34xx.h | 2 + 2 files changed, 33 insertions(+), 8 deletions(-)(quoted diff) +0
-0
b/arch/arm/mach-omap2/clock3xxx_data.c
Quoted 7 lines
Quoted 7 lines
index 9c87adb..c3a7ff5 100644
arch/arm/mach-omap2/clock3xxx_data.c +0
-0@@ -53,10 +53,6 @@* DPLL5 supplies other peripheral clocks (USBHOST, USIM). */
Quoted 7 lines
arch/arm/mach-omap2/clock3xxx_data.c
Quoted 7 lines
arch/arm/mach-omap2/clock3xxx_data.c +0
-4-/* Forward declarations for DPLL bypass clocks */ -static struct clk dpll1_fck; -static struct clk dpll2_fck; -/* PRM CLOCKS */ /* According to timer32k.c, this is a 32768Hz clock, not a 32000Hz
clock. */
Quoted 2 lines
arch/arm/mach-omap2/clock3xxx_data.c static struct dpll_data dpll1_dd = { · line 271
Quoted 2 lines
arch/arm/mach-omap2/clock3xxx_data.c +0
-0@@ -275,7 +271,7 @@ static struct dpll_data dpll1_dd = { .mult_div1_reg = OMAP_CM_REGADDR(MPU_MOD,
OMAP3430_CM_CLKSEL1_PLL),
Quoted 9 lines
arch/arm/mach-omap2/clock3xxx_data.c static struct dpll_data dpll2_dd = { · line 343
Quoted 9 lines
arch/arm/mach-omap2/clock3xxx_data.c +1
-1.mult_mask = OMAP3430_MPU_DPLL_MULT_MASK, .div1_mask = OMAP3430_MPU_DPLL_DIV_MASK, - .clk_bypass = &dpll1_fck, + .clk_bypass_name = "dpll1_fck", .clk_ref = &sys_ck, .freqsel_mask = OMAP3430_MPU_DPLL_FREQSEL_MASK, .control_reg = OMAP_CM_REGADDR(MPU_MOD, OMAP3430_CM_CLKEN_PLL),@@ -347,7 +343,7 @@ static struct dpll_data dpll2_dd = { .mult_div1_reg = OMAP_CM_REGADDR(OMAP3430_IVA2_MOD,
OMAP3430_CM_CLKSEL1_PLL),
Quoted 7 lines
arch/arm/mach-omap2/clock3xxx_data.c static struct dpll_data dpll2_dd = {
Quoted 7 lines
arch/arm/mach-omap2/clock3xxx_data.c +1
-1.mult_mask = OMAP3430_IVA2_DPLL_MULT_MASK, .div1_mask = OMAP3430_IVA2_DPLL_DIV_MASK, - .clk_bypass = &dpll2_fck, + .clk_bypass_name = "dpll2_fck", .clk_ref = &sys_ck, .freqsel_mask = OMAP3430_IVA2_DPLL_FREQSEL_MASK, .control_reg = OMAP_CM_REGADDR(OMAP3430_IVA2_MOD,
OMAP3430_CM_CLKEN_PLL),
Quoted 10 lines
arch/arm/mach-omap2/clock3xxx_data.c static struct clk dpll1_fck = { · line 1081
Quoted 10 lines
arch/arm/mach-omap2/clock3xxx_data.c +6
-0@@ -1077,6 +1073,17 @@ static struct clk dpll1_fck = { .recalc = &omap2_clksel_recalc, }; +static struct clk dpll1_fck_3430es2 = { + .name ="dpll1_fck" , + .ops = &clkops_null, + .parent = &core_ck, + .init = &omap2_init_clksel_parent, + .clksel_reg = OMAP_CM_REGADDR(MPU_MOD,
OMAP3430_CM_CLKSEL1_PLL),
Quoted 12 lines
Quoted 12 lines
arch/arm/mach-omap2/clock3xxx_data.c +5
-0+ .clksel_mask = OMAP3430ES2_MPU_CLK_SRC_MASK, + .clksel = div4_core_clksel, + .recalc = &omap2_clksel_recalc, +}; +static struct clk mpu_ck = { .name ="mpu_ck" , .ops = &clkops_null,@@ -1133,6 +1140,17 @@ static struct clk dpll2_fck = { .recalc = &omap2_clksel_recalc, };
Quoted 6 lines
arch/arm/mach-omap2/clock3xxx_data.c static struct clk dpll2_fck = {
Quoted 6 lines
arch/arm/mach-omap2/clock3xxx_data.c +6
-0+static struct clk dpll2_fck_3430es2 = { + .name ="dpll2_fck" , + .ops = &clkops_null, + .parent = &core_ck, + .init = &omap2_init_clksel_parent, + .clksel_reg = OMAP_CM_REGADDR(OMAP3430_IVA2_MOD,
OMAP3430_CM_CLKSEL1_PLL),
Quoted 7 lines
Quoted 7 lines
arch/arm/mach-omap2/clock3xxx_data.c +5
-0+ .clksel_mask = OMAP3430ES2_IVA2_CLK_SRC_MASK, + .clksel = div4_core_clksel, + .recalc = &omap2_clksel_recalc, +}; +static struct clk iva2_ck = { .name ="iva2_ck" ,
Quoted 8 lines
arch/arm/mach-omap2/clock3xxx_data.c static struct omap_clk omap3xxx_clks[] = { · line 3283
Quoted 8 lines
arch/arm/mach-omap2/clock3xxx_data.c +2
-1.ops = &clkops_omap2_dflt_wait,@@ -3261,11 +3279,13 @@ static struct omap_clk omap3xxx_clks[] = {CLK (NULL ,"clkout2_src_ck" , &clkout2_src_ck,CK_3XXX ),CLK (NULL ,"sys_clkout2" , &sys_clkout2,CK_3XXX ),CLK (NULL ,"corex2_fck" , &corex2_fck,CK_3XXX ), - CLK(NULL, "dpll1_fck", &dpll1_fck, CK_3XXX), +CLK (NULL ,"dpll1_fck" , &dpll1_fck,CK_3430ES1 ), + CLK(NULL, "dpll1_fck", &dpll1_fck_3430es2,
CK_3430ES2PLUS | CK_AM35XX | CK_36XX),
Quoted 4 lines
arch/arm/mach-omap2/clock3xxx_data.c static struct omap_clk omap3xxx_clks[] = {
Quoted 4 lines
arch/arm/mach-omap2/clock3xxx_data.c +0
-1CLK (NULL ,"mpu_ck" , &mpu_ck,CK_3XXX ),CLK (NULL ,"arm_fck" , &arm_fck,CK_3XXX ), CLK("etb", "emu_mpu_alwon_ck", &emu_mpu_alwon_ck, CK_3XXX), - CLK(NULL, "dpll2_fck", &dpll2_fck, CK_34XX |
CK_36XX),
Quoted 2 lines
arch/arm/mach-omap2/clock3xxx_data.c static struct omap_clk omap3xxx_clks[] = { · line 3288
Quoted 2 lines
arch/arm/mach-omap2/clock3xxx_data.c +2
-0+CLK (NULL ,"dpll2_fck" , &dpll2_fck,CK_3430ES1 ), + CLK(NULL, "dpll2_fck", &dpll2_fck_3430es2,
CK_3430ES2PLUS | CK_36XX),
Quoted 1 line
arch/arm/mach-omap2/clock3xxx_data.c static struct omap_clk omap3xxx_clks[] = { · line 3289
Quoted 1 line
arch/arm/mach-omap2/clock3xxx_data.c +0
-0CLK(NULL, "iva2_ck", &iva2_ck, CK_34XX |
CK_36XX),
Quoted 6 lines
Quoted 6 lines
arch/arm/mach-omap2/clock3xxx_data.c +0
-0CLK (NULL ,"l3_ick" , &l3_ick,CK_3XXX ), CLK(NULL, "l4_ick", &l4_ick, CK_3XXX),@@ -3535,6 +3555,9 @@ int __init omap3xxx_clk_init(void)omap2_init_clk_clkdm (c->lk.clk); }
Quoted 6 lines
arch/arm/mach-omap2/clock3xxx_data.c int __init omap3xxx_clk_init(void)
Quoted 6 lines
arch/arm/mach-omap2/clock3xxx_data.c +3
-0+/* Initialise clk pointers for parent/ref/bypass clks */ +omap_init_clk_pts (); +recalculate_root_clocks (); pr_info("Clocking rate (Crystal/Core/MPU): %ld.%01ld/%ld/%ld
MHz\n",
Quoted 1 line
Review
Quoted 1 line
(quoted diff) +0
-0
b/arch/arm/mach-omap2/cm-regbits-34xx.h
Quoted 8 lines
arch/arm/mach-omap2/cm-regbits-34xx.h line 83
Quoted 8 lines
index b912759..fd80872 100644
arch/arm/mach-omap2/cm-regbits-34xx.h +1
-0@@ -80,6 +80,7 @@/* CM_CLKSEL1_PLL_IVA2 */ #define OMAP3430_IVA2_CLK_SRC_SHIFT 19#define OMAP3430_IVA2_CLK_SRC_MASK (0x3 << 19) +#define OMAP3430ES2_IVA2_CLK_SRC_MASK (0x7 <<
19)
Quoted 2 lines
arch/arm/mach-omap2/cm-regbits-34xx.h line 85
Quoted 2 lines
arch/arm/mach-omap2/cm-regbits-34xx.h +0
-0#define OMAP3430_IVA2_DPLL_MULT_SHIFT 8#define OMAP3430_IVA2_DPLL_MULT_MASK (0x7ff <<
8)
Quoted 6 lines
arch/arm/mach-omap2/cm-regbits-34xx.h line 129
Quoted 6 lines
arch/arm/mach-omap2/cm-regbits-34xx.h +1
-0#define OMAP3430_IVA2_DPLL_DIV_SHIFT 0@@ -125,6 +126,7 @@/* CM_CLKSEL1_PLL_MPU */ #define OMAP3430_MPU_CLK_SRC_SHIFT 19#define OMAP3430_MPU_CLK_SRC_MASK (0x3 << 19) +#define OMAP3430ES2_MPU_CLK_SRC_MASK (0x7 <<
19)
Quoted 2 lines
arch/arm/mach-omap2/cm-regbits-34xx.h line 131
Quoted 2 lines
arch/arm/mach-omap2/cm-regbits-34xx.h +0
-0#define OMAP3430_MPU_DPLL_MULT_SHIFT 8#define OMAP3430_MPU_DPLL_MULT_MASK (0x7ff <<
8)
Quoted 1 line
Quoted 1 line
arch/arm/mach-omap2/cm-regbits-34xx.h +0
-0#define OMAP3430_MPU_DPLL_DIV_SHIFT 0
Re: [RFC 2/3] OMAP3: PM: Fix CLK_SRC mask for IVA2 and MPU on 3430ES2PLUS
Quoted 18 lines · Rajendra Nayak
Hi Kevin,
Quoted 6 lines
-----Original Message-----
From: Kevin Hilman [mailto:[email protected]]
Sent: Tuesday, January 25, 2011 3:39 AM
To: Rajendra Nayak
Cc: [email protected]; [email protected]
Subject: Re: [RFC 2/3] OMAP3: PM: FixCLK_SRCmask for IVA2 and MPU on3430ES2PLUS
Quoted 9 lines
Quoted 5 lines · Rajendra Nayak
The
IVA2_CLK_SRCandMPU_CLK_SRCfor OMAP3430 ES2 and above are 3 bit fields.
Define new masks for them, and since they are used in a couple of clock nodes, model separate clock nodes for 3430ES1 and 3430ES2+.
Quoted 8 lines
Quoted 1 line
This part should probably be separated out as a fix for the -rc cycle.
The reason I clubbed this fix here was because it had a dependency on the 'reference by name' approach added by the previous patch.
Else I was looking at creating too many duplicate nodes, since the clock nodes which get added in this patch (dpll1_fck_3430es2/dpll2_fck_3430es2) are part of
dpll_data.
OK, thanks for the clarifiation. Might help to add that bit of description in the changelog, or after the '---' for the sake of reviewers.
Thanks,
Kevin
Quoted 147 lines
Quoted 11 lines
Kevin
Quoted 8 lines
Also change reference to these new clock nodes from clk pointers to clk name and make a call to
omap_init_clk_ptsto init the pointers at run time.Signed-off-by Rajendra Nayak <[email protected]>--- arch/arm/mach-omap2/clock3xxx_data.c | 39++++++++++++++++++++++++++------
Quoted 4 lines
Review
Quoted 4 lines
arch/arm/mach-omap2/cm-regbits-34xx.h | 2 + 2 files changed, 33 insertions(+), 8 deletions(-)(quoted diff) +0
-0
b/arch/arm/mach-omap2/clock3xxx_data.cQuoted 7 lines
Quoted 7 lines
index 9c87adb..c3a7ff5 100644
arch/arm/mach-omap2/clock3xxx_data.c +0
-0@@ -53,10 +53,6 @@* DPLL5 supplies other peripheral clocks (USBHOST, USIM). */ Quoted 7 lines
arch/arm/mach-omap2/clock3xxx_data.c
Quoted 7 lines
arch/arm/mach-omap2/clock3xxx_data.c +0
-4-/* Forward declarations for DPLL bypass clocks */ -static struct clk dpll1_fck; -static struct clk dpll2_fck; -/* PRM CLOCKS */ /* According to timer32k.c, this is a 32768Hz clock, not a 32000Hz clock. */
Quoted 2 lines
arch/arm/mach-omap2/clock3xxx_data.c static struct dpll_data dpll1_dd = { · line 271
Quoted 2 lines
arch/arm/mach-omap2/clock3xxx_data.c +0
-0@@ -275,7 +271,7 @@ static struct dpll_data dpll1_dd = { .mult_div1_reg = OMAP_CM_REGADDR(MPU_MOD,
OMAP3430_CM_CLKSEL1_PLL),Quoted 9 lines
arch/arm/mach-omap2/clock3xxx_data.c static struct dpll_data dpll2_dd = { · line 343
Quoted 9 lines
arch/arm/mach-omap2/clock3xxx_data.c +1
-1.mult_mask = OMAP3430_MPU_DPLL_MULT_MASK, .div1_mask = OMAP3430_MPU_DPLL_DIV_MASK, - .clk_bypass = &dpll1_fck, + .clk_bypass_name = "dpll1_fck", .clk_ref = &sys_ck, .freqsel_mask = OMAP3430_MPU_DPLL_FREQSEL_MASK, .control_reg = OMAP_CM_REGADDR(MPU_MOD, OMAP3430_CM_CLKEN_PLL),@@ -347,7 +343,7 @@ static struct dpll_data dpll2_dd = { .mult_div1_reg = OMAP_CM_REGADDR(OMAP3430_IVA2_MOD,
OMAP3430_CM_CLKSEL1_PLL),Quoted 7 lines
arch/arm/mach-omap2/clock3xxx_data.c static struct dpll_data dpll2_dd = {
Quoted 7 lines
arch/arm/mach-omap2/clock3xxx_data.c +1
-1.mult_mask = OMAP3430_IVA2_DPLL_MULT_MASK, .div1_mask = OMAP3430_IVA2_DPLL_DIV_MASK, - .clk_bypass = &dpll2_fck, + .clk_bypass_name = "dpll2_fck", .clk_ref = &sys_ck, .freqsel_mask = OMAP3430_IVA2_DPLL_FREQSEL_MASK, .control_reg = OMAP_CM_REGADDR(OMAP3430_IVA2_MOD,
OMAP3430_CM_CLKEN_PLL),Quoted 10 lines
arch/arm/mach-omap2/clock3xxx_data.c static struct clk dpll1_fck = { · line 1081
Quoted 10 lines
arch/arm/mach-omap2/clock3xxx_data.c +6
-0@@ -1077,6 +1073,17 @@ static struct clk dpll1_fck = { .recalc = &omap2_clksel_recalc, }; +static struct clk dpll1_fck_3430es2 = { + .name ="dpll1_fck" , + .ops = &clkops_null, + .parent = &core_ck, + .init = &omap2_init_clksel_parent, + .clksel_reg = OMAP_CM_REGADDR(MPU_MOD,
OMAP3430_CM_CLKSEL1_PLL),Quoted 12 lines
Quoted 12 lines
arch/arm/mach-omap2/clock3xxx_data.c +5
-0+ .clksel_mask = OMAP3430ES2_MPU_CLK_SRC_MASK, + .clksel = div4_core_clksel, + .recalc = &omap2_clksel_recalc, +}; +static struct clk mpu_ck = { .name ="mpu_ck" , .ops = &clkops_null,@@ -1133,6 +1140,17 @@ static struct clk dpll2_fck = { .recalc = &omap2_clksel_recalc, };Quoted 6 lines
arch/arm/mach-omap2/clock3xxx_data.c static struct clk dpll2_fck = {
Quoted 6 lines
arch/arm/mach-omap2/clock3xxx_data.c +6
-0+static struct clk dpll2_fck_3430es2 = { + .name ="dpll2_fck" , + .ops = &clkops_null, + .parent = &core_ck, + .init = &omap2_init_clksel_parent, + .clksel_reg = OMAP_CM_REGADDR(OMAP3430_IVA2_MOD,
OMAP3430_CM_CLKSEL1_PLL),Quoted 7 lines
Quoted 7 lines
arch/arm/mach-omap2/clock3xxx_data.c +5
-0+ .clksel_mask = OMAP3430ES2_IVA2_CLK_SRC_MASK, + .clksel = div4_core_clksel, + .recalc = &omap2_clksel_recalc, +}; +static struct clk iva2_ck = { .name ="iva2_ck" ,Quoted 8 lines
arch/arm/mach-omap2/clock3xxx_data.c static struct omap_clk omap3xxx_clks[] = { · line 3283
Quoted 8 lines
arch/arm/mach-omap2/clock3xxx_data.c +2
-1.ops = &clkops_omap2_dflt_wait,@@ -3261,11 +3279,13 @@ static struct omap_clk omap3xxx_clks[] = {CLK (NULL ,"clkout2_src_ck" , &clkout2_src_ck,CK_3XXX ),CLK (NULL ,"sys_clkout2" , &sys_clkout2,CK_3XXX ),CLK (NULL ,"corex2_fck" , &corex2_fck,CK_3XXX ), - CLK(NULL, "dpll1_fck", &dpll1_fck, CK_3XXX), +CLK (NULL ,"dpll1_fck" , &dpll1_fck,CK_3430ES1 ), + CLK(NULL, "dpll1_fck", &dpll1_fck_3430es2,
CK_3430ES2PLUS|CK_AM35XX|CK_36XX),Quoted 4 lines
arch/arm/mach-omap2/clock3xxx_data.c static struct omap_clk omap3xxx_clks[] = {
Quoted 4 lines
arch/arm/mach-omap2/clock3xxx_data.c +0
-1CLK (NULL ,"mpu_ck" , &mpu_ck,CK_3XXX ),CLK (NULL ,"arm_fck" , &arm_fck,CK_3XXX ), CLK("etb", "emu_mpu_alwon_ck", &emu_mpu_alwon_ck, CK_3XXX), - CLK(NULL, "dpll2_fck", &dpll2_fck, CK_34XX |
CK_36XX),Quoted 2 lines
arch/arm/mach-omap2/clock3xxx_data.c static struct omap_clk omap3xxx_clks[] = { · line 3288
Quoted 2 lines
arch/arm/mach-omap2/clock3xxx_data.c +2
-0+CLK (NULL ,"dpll2_fck" , &dpll2_fck,CK_3430ES1 ), + CLK(NULL, "dpll2_fck", &dpll2_fck_3430es2,
CK_3430ES2PLUS|CK_36XX),Quoted 1 line
arch/arm/mach-omap2/clock3xxx_data.c static struct omap_clk omap3xxx_clks[] = { · line 3289
Quoted 1 line
arch/arm/mach-omap2/clock3xxx_data.c +0
-0CLK(NULL, "iva2_ck", &iva2_ck, CK_34XX |
CK_36XX),Quoted 6 lines
Quoted 6 lines
arch/arm/mach-omap2/clock3xxx_data.c +0
-0CLK (NULL ,"l3_ick" , &l3_ick,CK_3XXX ), CLK(NULL, "l4_ick", &l4_ick, CK_3XXX),@@ -3535,6 +3555,9 @@ int __init omap3xxx_clk_init(void)omap2_init_clk_clkdm (c->lk.clk); }Quoted 6 lines
arch/arm/mach-omap2/clock3xxx_data.c int __init omap3xxx_clk_init(void)
Quoted 6 lines
arch/arm/mach-omap2/clock3xxx_data.c +3
-0+/* Initialise clk pointers for parent/ref/bypass clks */ +omap_init_clk_pts (); +recalculate_root_clocks (); pr_info("Clocking rate (Crystal/Core/MPU): %ld.%01ld/%ld/%ldMHz\n",
Quoted 1 line
Review
Quoted 1 line
(quoted diff) +0
-0
b/arch/arm/mach-omap2/cm-regbits-34xx.hQuoted 8 lines
arch/arm/mach-omap2/cm-regbits-34xx.h line 83
Quoted 8 lines
index b912759..fd80872 100644
arch/arm/mach-omap2/cm-regbits-34xx.h +1
-0@@ -80,6 +80,7 @@/* CM_CLKSEL1_PLL_IVA2 */ #define OMAP3430_IVA2_CLK_SRC_SHIFT 19#define OMAP3430_IVA2_CLK_SRC_MASK (0x3 << 19) +#define OMAP3430ES2_IVA2_CLK_SRC_MASK (0x7 <<19)
Quoted 2 lines
arch/arm/mach-omap2/cm-regbits-34xx.h line 85
Quoted 2 lines
arch/arm/mach-omap2/cm-regbits-34xx.h +0
-0#define OMAP3430_IVA2_DPLL_MULT_SHIFT 8#define OMAP3430_IVA2_DPLL_MULT_MASK (0x7ff <<8)
Quoted 6 lines
arch/arm/mach-omap2/cm-regbits-34xx.h line 129
Quoted 6 lines
arch/arm/mach-omap2/cm-regbits-34xx.h +1
-0#define OMAP3430_IVA2_DPLL_DIV_SHIFT 0@@ -125,6 +126,7 @@/* CM_CLKSEL1_PLL_MPU */ #define OMAP3430_MPU_CLK_SRC_SHIFT 19#define OMAP3430_MPU_CLK_SRC_MASK (0x3 << 19) +#define OMAP3430ES2_MPU_CLK_SRC_MASK (0x7 <<19)
Quoted 2 lines
arch/arm/mach-omap2/cm-regbits-34xx.h line 131
Quoted 2 lines
arch/arm/mach-omap2/cm-regbits-34xx.h +0
-0#define OMAP3430_MPU_DPLL_MULT_SHIFT 8#define OMAP3430_MPU_DPLL_MULT_MASK (0x7ff <<8)
Quoted 1 line
Quoted 1 line
arch/arm/mach-omap2/cm-regbits-34xx.h +0
-0#define OMAP3430_MPU_DPLL_DIV_SHIFT 0
RE: [RFC 2/3] OMAP3: PM: Fix CLK_SRC mask for IVA2 and MPU on 3430ES2PLUS
Hi Kevin,
Quoted 6 lines
-----Original Message-----
From: Kevin Hilman [mailto:[email protected]]
Sent: Tuesday, January 25, 2011 9:29 PM
To: Rajendra Nayak
Cc: [email protected]; [email protected]
Subject: Re: [RFC 2/3] OMAP3: PM: FixCLK_SRCmask for IVA2 and MPU on
3430ES2PLUS
Quoted 11 lines
Quoted 8 lines · Rajendra Nayak
Hi Kevin,
Quoted 6 lines
-----Original Message-----
From: Kevin Hilman [mailto:[email protected]]
Sent: Tuesday, January 25, 2011 3:39 AM
To: Rajendra Nayak
Cc: [email protected]; [email protected]
Subject: Re: [RFC 2/3] OMAP3: PM: FixCLK_SRCmask for IVA2 and MPU
on
Quoted 11 lines
Quoted 11 lines
3430ES2PLUS
Quoted 10 lines
Quoted 5 lines · Rajendra Nayak
The
IVA2_CLK_SRCandMPU_CLK_SRCfor OMAP3430 ES2 and above are 3 bit fields.
Define new masks for them, and since they are used in a couple of clock nodes, model separate clock nodes for 3430ES1 and 3430ES2+.This part should probably be separated out as a fix for the -rc
cycle.
Quoted 2 lines
Quoted 2 lines
The reason I clubbed this fix here was because it had a dependency on
the
Quoted 3 lines
Quoted 3 lines
'reference by name' approach added by the previous patch.
Else I was looking at creating too many duplicate nodes, since the
clock
Quoted 1 line
Quoted 1 line
nodes which get added in this patch
(dpll1_fck_3430es2/dpll2_fck_3430es2)
Quoted 5 lines
Quoted 1 line
are part of
dpll_data.OK, thanks for the clarifiation. Might help to add that bit of description in the changelog, or after the '---' for the sake of reviewers.
Sure, will do that.
Regards,
Rajendra
Quoted 40 lines
Thanks,
Kevin
Quoted 35 lines
Quoted 11 lines
Kevin
Quoted 8 lines
Also change reference to these new clock nodes from clk pointers to clk name and make a call to
omap_init_clk_ptsto init the pointers at run time.Signed-off-by Rajendra Nayak <[email protected]>--- arch/arm/mach-omap2/clock3xxx_data.c | 39++++++++++++++++++++++++++------
Quoted 4 lines
Review
Quoted 4 lines
arch/arm/mach-omap2/cm-regbits-34xx.h | 2 + 2 files changed, 33 insertions(+), 8 deletions(-)(quoted diff) +0
-0
b/arch/arm/mach-omap2/clock3xxx_data.cQuoted 7 lines
Quoted 7 lines
index 9c87adb..c3a7ff5 100644
arch/arm/mach-omap2/clock3xxx_data.c +0
-0@@ -53,10 +53,6 @@* DPLL5 supplies other peripheral clocks (USBHOST, USIM). */ Quoted 7 lines
arch/arm/mach-omap2/clock3xxx_data.c
Quoted 7 lines
arch/arm/mach-omap2/clock3xxx_data.c +0
-4-/* Forward declarations for DPLL bypass clocks */ -static struct clk dpll1_fck; -static struct clk dpll2_fck; -/* PRM CLOCKS */ /* According to timer32k.c, this is a 32768Hz clock, not a 32000Hz clock. */
Quoted 2 lines
arch/arm/mach-omap2/clock3xxx_data.c static struct dpll_data dpll1_dd = { · line 271
Quoted 2 lines
arch/arm/mach-omap2/clock3xxx_data.c +0
-0@@ -275,7 +271,7 @@ static struct dpll_data dpll1_dd = { .mult_div1_reg = OMAP_CM_REGADDR(MPU_MOD,
OMAP3430_CM_CLKSEL1_PLL),
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
arch/arm/mach-omap2/clock3xxx_data.c static struct dpll_data dpll1_dd = {
Quoted 7 lines
arch/arm/mach-omap2/clock3xxx_data.c +1
-1.mult_mask = OMAP3430_MPU_DPLL_MULT_MASK, .div1_mask = OMAP3430_MPU_DPLL_DIV_MASK, - .clk_bypass = &dpll1_fck, + .clk_bypass_name = "dpll1_fck", .clk_ref = &sys_ck, .freqsel_mask = OMAP3430_MPU_DPLL_FREQSEL_MASK, .control_reg = OMAP_CM_REGADDR(MPU_MOD,
OMAP3430_CM_CLKEN_PLL),
Quoted 41 lines
Quoted 41 lines
Quoted 2 lines
arch/arm/mach-omap2/clock3xxx_data.c static struct dpll_data dpll2_dd = { · line 343
Quoted 2 lines
arch/arm/mach-omap2/clock3xxx_data.c +0
-0@@ -347,7 +343,7 @@ static struct dpll_data dpll2_dd = { .mult_div1_reg = OMAP_CM_REGADDR(OMAP3430_IVA2_MOD,
OMAP3430_CM_CLKSEL1_PLL),Quoted 7 lines
arch/arm/mach-omap2/clock3xxx_data.c static struct dpll_data dpll2_dd = {
Quoted 7 lines
arch/arm/mach-omap2/clock3xxx_data.c +1
-1.mult_mask = OMAP3430_IVA2_DPLL_MULT_MASK, .div1_mask = OMAP3430_IVA2_DPLL_DIV_MASK, - .clk_bypass = &dpll2_fck, + .clk_bypass_name = "dpll2_fck", .clk_ref = &sys_ck, .freqsel_mask = OMAP3430_IVA2_DPLL_FREQSEL_MASK, .control_reg = OMAP_CM_REGADDR(OMAP3430_IVA2_MOD,
OMAP3430_CM_CLKEN_PLL),Quoted 10 lines
arch/arm/mach-omap2/clock3xxx_data.c static struct clk dpll1_fck = { · line 1081
Quoted 10 lines
arch/arm/mach-omap2/clock3xxx_data.c +6
-0@@ -1077,6 +1073,17 @@ static struct clk dpll1_fck = { .recalc = &omap2_clksel_recalc, }; +static struct clk dpll1_fck_3430es2 = { + .name ="dpll1_fck" , + .ops = &clkops_null, + .parent = &core_ck, + .init = &omap2_init_clksel_parent, + .clksel_reg = OMAP_CM_REGADDR(MPU_MOD,
OMAP3430_CM_CLKSEL1_PLL),Quoted 12 lines
Quoted 12 lines
arch/arm/mach-omap2/clock3xxx_data.c +5
-0+ .clksel_mask = OMAP3430ES2_MPU_CLK_SRC_MASK, + .clksel = div4_core_clksel, + .recalc = &omap2_clksel_recalc, +}; +static struct clk mpu_ck = { .name ="mpu_ck" , .ops = &clkops_null,@@ -1133,6 +1140,17 @@ static struct clk dpll2_fck = { .recalc = &omap2_clksel_recalc, };Quoted 6 lines
arch/arm/mach-omap2/clock3xxx_data.c static struct clk dpll2_fck = {
Quoted 6 lines
arch/arm/mach-omap2/clock3xxx_data.c +6
-0+static struct clk dpll2_fck_3430es2 = { + .name ="dpll2_fck" , + .ops = &clkops_null, + .parent = &core_ck, + .init = &omap2_init_clksel_parent, + .clksel_reg = OMAP_CM_REGADDR(OMAP3430_IVA2_MOD,
OMAP3430_CM_CLKSEL1_PLL),
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
arch/arm/mach-omap2/clock3xxx_data.c static struct omap_clk omap3xxx_clks[] = { · line 3279
Quoted 10 lines
arch/arm/mach-omap2/clock3xxx_data.c +5
-0+ .clksel_mask = OMAP3430ES2_IVA2_CLK_SRC_MASK, + .clksel = div4_core_clksel, + .recalc = &omap2_clksel_recalc, +}; +static struct clk iva2_ck = { .name ="iva2_ck" , .ops = &clkops_omap2_dflt_wait,@@ -3261,11 +3279,13 @@ static struct omap_clk omap3xxx_clks[] = { CLK(NULL, "clkout2_src_ck", &clkout2_src_ck,
CK_3XXX),
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
arch/arm/mach-omap2/clock3xxx_data.c static struct omap_clk omap3xxx_clks[] = {
Quoted 4 lines
arch/arm/mach-omap2/clock3xxx_data.c +1
-1CLK (NULL ,"sys_clkout2" , &sys_clkout2,CK_3XXX ),CLK (NULL ,"corex2_fck" , &corex2_fck,CK_3XXX ), - CLK(NULL, "dpll1_fck", &dpll1_fck, CK_3XXX), + CLK(NULL, "dpll1_fck", &dpll1_fck,
CK_3430ES1),
Quoted 5 lines
Quoted 5 lines
Quoted 1 line
arch/arm/mach-omap2/clock3xxx_data.c static struct omap_clk omap3xxx_clks[] = { · line 3283
Quoted 1 line
arch/arm/mach-omap2/clock3xxx_data.c +1
-0+ CLK(NULL, "dpll1_fck", &dpll1_fck_3430es2,
CK_3430ES2PLUS|CK_AM35XX|CK_36XX),Quoted 3 lines
Quoted 3 lines
arch/arm/mach-omap2/clock3xxx_data.c +0
-0CLK (NULL ,"mpu_ck" , &mpu_ck,CK_3XXX ),CLK (NULL ,"arm_fck" , &arm_fck,CK_3XXX ), CLK("etb", "emu_mpu_alwon_ck", &emu_mpu_alwon_ck,
CK_3XXX),
Quoted 3 lines
Quoted 3 lines
Quoted 1 line
arch/arm/mach-omap2/clock3xxx_data.c static struct omap_clk omap3xxx_clks[] = { · line 3268
Quoted 1 line
arch/arm/mach-omap2/clock3xxx_data.c +0
-1- CLK(NULL, "dpll2_fck", &dpll2_fck, CK_34XX |
CK_36XX),Quoted 1 line
arch/arm/mach-omap2/clock3xxx_data.c static struct omap_clk omap3xxx_clks[] = { · line 3287
Quoted 1 line
arch/arm/mach-omap2/clock3xxx_data.c +1
-0+ CLK(NULL, "dpll2_fck", &dpll2_fck,
CK_3430ES1),
Quoted 10 lines
Quoted 10 lines
Quoted 1 line
arch/arm/mach-omap2/clock3xxx_data.c static struct omap_clk omap3xxx_clks[] = { · line 3288
Quoted 1 line
arch/arm/mach-omap2/clock3xxx_data.c +1
-0+ CLK(NULL, "dpll2_fck", &dpll2_fck_3430es2,
CK_3430ES2PLUS|CK_36XX),Quoted 1 line
arch/arm/mach-omap2/clock3xxx_data.c static struct omap_clk omap3xxx_clks[] = { · line 3289
Quoted 1 line
arch/arm/mach-omap2/clock3xxx_data.c +0
-0CLK(NULL, "iva2_ck", &iva2_ck, CK_34XX |
CK_36XX),Quoted 6 lines
Quoted 6 lines
arch/arm/mach-omap2/clock3xxx_data.c +0
-0CLK (NULL ,"l3_ick" , &l3_ick,CK_3XXX ), CLK(NULL, "l4_ick", &l4_ick, CK_3XXX),@@ -3535,6 +3555,9 @@ int __init omap3xxx_clk_init(void)omap2_init_clk_clkdm (c->lk.clk); }
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
arch/arm/mach-omap2/clock3xxx_data.c int __init omap3xxx_clk_init(void)
Quoted 6 lines
arch/arm/mach-omap2/clock3xxx_data.c +3
-0+/* Initialise clk pointers for parent/ref/bypass clks */ +omap_init_clk_pts (); +recalculate_root_clocks (); pr_info("Clocking rate (Crystal/Core/MPU):
%ld.%01ld/%ld/%ld
Quoted 10 lines
Quoted 10 lines
MHz\n",
Quoted 1 line
Review
Quoted 1 line
(quoted diff) +0
-0
b/arch/arm/mach-omap2/cm-regbits-34xx.hQuoted 7 lines
arch/arm/mach-omap2/cm-regbits-34xx.h line 82
Quoted 7 lines
index b912759..fd80872 100644
arch/arm/mach-omap2/cm-regbits-34xx.h +0
-0@@ -80,6 +80,7 @@/* CM_CLKSEL1_PLL_IVA2 */ #define OMAP3430_IVA2_CLK_SRC_SHIFT 19#define OMAP3430_IVA2_CLK_SRC_MASK (0x3 <<
19)
Quoted 10 lines
Quoted 10 lines
Quoted 1 line
arch/arm/mach-omap2/cm-regbits-34xx.h line 83
Quoted 1 line
arch/arm/mach-omap2/cm-regbits-34xx.h +1
-0+#define OMAP3430ES2_IVA2_CLK_SRC_MASK (0x7 <<19)
Quoted 2 lines
arch/arm/mach-omap2/cm-regbits-34xx.h line 85
Quoted 2 lines
arch/arm/mach-omap2/cm-regbits-34xx.h +0
-0#define OMAP3430_IVA2_DPLL_MULT_SHIFT 8#define OMAP3430_IVA2_DPLL_MULT_MASK (0x7ff <<8)
Quoted 5 lines
arch/arm/mach-omap2/cm-regbits-34xx.h line 128
Quoted 5 lines
arch/arm/mach-omap2/cm-regbits-34xx.h +0
-0#define OMAP3430_IVA2_DPLL_DIV_SHIFT 0@@ -125,6 +126,7 @@/* CM_CLKSEL1_PLL_MPU */ #define OMAP3430_MPU_CLK_SRC_SHIFT 19#define OMAP3430_MPU_CLK_SRC_MASK (0x3 <<
19)
Quoted 6 lines
Quoted 6 lines
Quoted 1 line
arch/arm/mach-omap2/cm-regbits-34xx.h line 129
Quoted 1 line
arch/arm/mach-omap2/cm-regbits-34xx.h +1
-0+#define OMAP3430ES2_MPU_CLK_SRC_MASK (0x7 <<19)
Quoted 2 lines
arch/arm/mach-omap2/cm-regbits-34xx.h line 131
Quoted 2 lines
arch/arm/mach-omap2/cm-regbits-34xx.h +0
-0#define OMAP3430_MPU_DPLL_MULT_SHIFT 8#define OMAP3430_MPU_DPLL_MULT_MASK (0x7ff <<8)
Quoted 1 line
Quoted 1 line
arch/arm/mach-omap2/cm-regbits-34xx.h +0
-0#define OMAP3430_MPU_DPLL_DIV_SHIFT 0
Re: [RFC 1/3] OMAP: clocks: Use clk names instead of clk pointers
In reply to Rajendra NayakQuoted 7 lines · Rajendra Nayak
There are various instances of clk pointers being embedded within structures in the clock framework to refer to clk parents, reference clocks, bypass clocks etc.
The right way to reference these is by their name and not by embedding direct pointers to these clks.
Quoted 8 lines
Hence make provision to be able to provide clock names to refer to parents and bypass/ref clks and populate the clk pointers at runtime.
This requires the const qualifier to be dropped for struct clksel within struct clk and hence needs clksel struct definitions to be changed in all clock*_data.c files.
$SUBJECT and this commit log is completely wrong as this patch is only dropping the const from the clock structures.
Signature · 1 line
balbi
RE: [RFC 1/3] OMAP: clocks: Use clk names instead of clk pointers
Quoted 5 lines
-----Original Message-----
From: Felipe Balbi [mailto:[email protected]]
Sent: Wednesday, January 19, 2011 8:49 PM
To: Rajendra Nayak
Cc: [email protected]; [email protected];
Quoted 1 line
Subject: Re: [RFC 1/3] OMAP: clocks: Use clk names instead of clk
pointers
Quoted 13 lines · Rajendra Nayak
Quoted 11 lines
There are various instances of clk pointers being embedded within structures in the clock framework to refer to clk parents, reference clocks, bypass clocks etc.
The right way to reference these is by their name and not by embedding direct pointers to these clks.Hence make provision to be able to provide clock names to refer to parents and bypass/ref clks and populate the clk pointers at runtime.
Quoted 7 lines
Quoted 4 lines
This requires the const qualifier to be dropped for struct clksel within struct clk and hence needs clksel struct definitions to be changed in all clock*_data.c files.
$SUBJECT and this commit log is completely wrong as this patch is only dropping the const from the clock structures.
Did you look at this part of the patch?
------->
arch/arm/plat-omap/clock.c +22 -1
@@ -308,6 +308,16 @@ void clk_enable_init_clocks(void) } } +static struct clk *_omap_clk_get_by_name (const char *name) +{ +struct clk *c; + +list_for_each_entry (c, &clocks, node) +if (!strcmp (c->name, name)) +return c; +return NULL ; +} +/** * omap_clk_get_by_name - locate OMAP struct clk by its name * @name: name of the struct clk to locate
@@ -318,21 +328,45 @@ void clk_enable_init_clocks(void)*/ struct clk *omap_clk_get_by_name (const char *name) { -struct clk *c;struct clk *ret =NULL ;mutex_lock (&clocks_mutex); + ret =_omap_clk_get_by_name (name); +mutex_unlock (&clocks_mutex); + +return ret; +} + +static inline void omap_init_dpll_data_clk_pts (struct dpll_data *dd) +{ +if (!dd->clk_ref && dd->clk_ref_name) + dd->clk_ref =_omap_clk_get_by_name (dd->clk_ref_name); +if (!dd->clk_bypass && dd->clk_bypass_name) + dd->clk_bypass =
_omap_clk_get_by_name(dd->clk_bypass_name);
+}
+
+static inline void omap_init_clksel_clk_pts(struct clksel *clks) +{
+ if (!clks->parent && clks->parent_name)
+ clks->parent = _omap_clk_get_by_name(clks->parent_name);
+}
+
+void omap_init_clk_pts(void)
+{
+ struct clk *c;
+
+ mutex_lock(&clocks_mutex);
list_for_each_entry(c, &clocks, node) {
- if (!strcmp(c->name, name)) {
- ret = c;
- break;
- }
+ if (!c->parent && c->parent_name)
+ c->parent = _omap_clk_get_by_name(c->parent_name);
+ if (c->dpll_data)
+ omap_init_dpll_data_clk_pts(c->dpll_data);
+ if (c->clksel)
+ omap_init_clksel_clk_pts(c->clksel);
}
mutex_unlock(&clocks_mutex);
-
- return ret;
}
/*
(quoted diff) +0 -0
b/arch/arm/plat-omap/include/plat/clock.h
index 8eb0ada..dc0d9fd 100644
arch/arm/plat-omap/include/plat/clock.h +0 -0
@@ -85,6 +85,7 @@ struct clksel_rate {/** * struct clksel - available parent clocks, and a pointer to their
divisors
* @parent: struct clk * to a possible parent clock
+ * @parent_name: Name of the possible parent clock
* @rates: available divisors for this parent clock
*
* A struct clksel is always associated with one or more struct clks
@@ -92,6 +93,7 @@ struct clksel_rate {
*/
struct clksel {
struct clk *parent;
+ const char *parent_name;
const struct clksel_rate *rates;
};
@@ -101,7 +103,9 @@ struct clksel {
* @mult_mask: mask of the DPLL M bitfield in @mult_div1_reg
* @div1_mask: mask of the DPLL N bitfield in @mult_div1_reg
* @clk_bypass: struct clk pointer to the clock's bypass clock input
+ * @clk_bypass_name: Name of the clock's bypass clock input
* @clk_ref: struct clk pointer to the clock's reference clock input
+ * @clk_ref_name: Name of the clock's reference clock input
* @control_reg: register containing the DPLL mode bitfield
* @enable_mask: mask of the DPLL mode bitfield in @control_reg
* @rate_tolerance: maximum variance allowed from target rate (in Hz)
@@ -143,7 +147,9 @@ struct dpll_data {
u32 mult_mask;
u32 div1_mask;
struct clk *clk_bypass;
+ const char *clk_bypass_name;
struct clk *clk_ref;
+ const char *clk_ref_name;
void __iomem *control_reg;
u32 enable_mask;
unsigned int rate_tolerance;
@@ -230,6 +236,7 @@ struct clk {
const struct clkops *ops;
const char *name;
struct clk *parent;
+ const char *parent_name;
struct list_head children;
struct list_head sibling; /* node for children */
unsigned long rate;
@@ -245,7 +252,7 @@ struct clk {
#ifdef CONFIG_ARCH_OMAP2PLUS
void __iomem *clksel_reg;
u32 clksel_mask;
- const struct clksel *clksel;
+ struct clksel *clksel;
struct dpll_data *dpll_data;
const char *clkdm_name;
struct clockdomain *clkdm;
@@ -292,7 +299,7 @@ extern void clk_init_cpufreq_table(struct cpufreq_frequency_table **table);
extern void clk_exit_cpufreq_table(struct cpufreq_frequency_table
**table);
#endif
extern struct clk *omap_clk_get_by_name(const char *name);
-
+extern void omap_init_clk_pts(void);
extern const struct clkops clkops_null;
extern struct clk dummy_ck;
Signature · 1 line
1.7.0.4
Quoted 3 lines
--
balbi
Re: [RFC 1/3] OMAP: clocks: Use clk names instead of clk pointers
Hi,
Quoted 1 line · Rajendra Nayak
Did you look at this part of the patch?
missed that one. Should you then split: one patch dropping const and another doing the plat/clock.c changes ?
Signature · 1 line
balbi
RE: [RFC 1/3] OMAP: clocks: Use clk names instead of clk pointers
Quoted 5 lines
-----Original Message-----
From: Felipe Balbi [mailto:[email protected]]
Sent: Thursday, January 20, 2011 11:57 AM
To: Rajendra Nayak
Cc: [email protected]; [email protected]; [email protected];
Quoted 1 line
Subject: Re: [RFC 1/3] OMAP: clocks: Use clk names instead of clk
pointers
Quoted 8 lines
Hi,
Quoted 1 line · Rajendra Nayak
Did you look at this part of the patch?
missed that one. Should you then split: one patch dropping const and another doing the
plat/clock.cchanges ?
I could. Will do that in the next spin to avoid confusion.
Quoted 3 lines
--
balbi
Re: [RFC 1/3] OMAP: clocks: Use clk names instead of clk pointers
In reply to Rajendra NayakQuoted 11 lines · Rajendra Nayak
There are various instances of clk pointers being embedded within structures in the clock framework to refer to clk parents, reference clocks, bypass clocks etc.
The right way to reference these is by their name and not by embedding direct pointers to these clks.Hence make provision to be able to provide clock names to refer to parents and bypass/ref clks and populate the clk pointers at runtime.
Quoted 6 lines
This requires the const qualifier to be dropped for struct clksel within struct clk and hence needs clksel struct definitions to be changed in all clock*_data.c files.
Signed-off-by Rajendra Nayak <[email protected]>
I think the changelog needs a little more description about when the names are used instead of the pointers. It looks like the names are only used at init time to select the right pointers, but the rest of the framework continues to use pointers as before, right? This isnt' very clear from the changelog.
Kevin
Quoted 1,985 lines
--- arch/arm/mach-omap2/clock2420_data.c | 86 +++++++++--------- arch/arm/mach-omap2/clock2430_data.c | 88 ++++++++++---------- arch/arm/mach-omap2/clock3xxx_data.c | 144 +++++++++++++++--------------- arch/arm/mach-omap2/clock44xx_data.c | 136 +++++++++++++++--------------- arch/arm/plat-omap/clock.c | 48 +++++++++-- arch/arm/plat-omap/include/plat/clock.h | 11 ++- 6 files changed, 277 insertions(+), 236 deletions(-)arch/arm/mach-omap2/clock2420_data.c +43
-43@@ -161,17 +161,17 @@ static struct clk apll54_ck = {/* func_54m_ck */ -static const struct clksel_rate func_54m_apll54_rates[] = { +static struct clksel_rate func_54m_apll54_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_24XX }, { .div =0 }, }; -static const struct clksel_rate func_54m_alt_rates[] = { +static struct clksel_rate func_54m_alt_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =0 }, }; -static const struct clksel func_54m_clksel[] = { +static struct clksel func_54m_clksel[] = { { .parent = &apll54_ck, .rates = func_54m_apll54_rates, }, { .parent = &alt_ck, .rates = func_54m_alt_rates, }, { .parent =NULL },@@ -207,17 +207,17 @@ static struct clk func_96m_ck = {/* func_48m_ck */ -static const struct clksel_rate func_48m_apll96_rates[] = { +static struct clksel_rate func_48m_apll96_rates[] = { { .div =2 , .val =0 , .flags =RATE_IN_24XX }, { .div =0 }, }; -static const struct clksel_rate func_48m_alt_rates[] = { +static struct clksel_rate func_48m_alt_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =0 }, }; -static const struct clksel func_48m_clksel[] = { +static struct clksel func_48m_clksel[] = { { .parent = &apll96_ck, .rates = func_48m_apll96_rates }, { .parent = &alt_ck, .rates = func_48m_alt_rates }, { .parent =NULL }@@ -262,27 +262,27 @@ static struct clk wdt1_osc_ck = {* harmless since access to those clocks are gated by the struct clk * flags fields, which mark them as 2420-only. */ -static const struct clksel_rate common_clkout_src_core_rates[] = { +static struct clksel_rate common_clkout_src_core_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel_rate common_clkout_src_sys_rates[] = { +static struct clksel_rate common_clkout_src_sys_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel_rate common_clkout_src_96m_rates[] = { +static struct clksel_rate common_clkout_src_96m_rates[] = { { .div =1 , .val =2 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel_rate common_clkout_src_54m_rates[] = { +static struct clksel_rate common_clkout_src_54m_rates[] = { { .div =1 , .val =3 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel common_clkout_src_clksel[] = { +static struct clksel common_clkout_src_clksel[] = { { .parent = &core_ck, .rates = common_clkout_src_core_rates }, { .parent = &sys_ck, .rates = common_clkout_src_sys_rates }, { .parent = &func_96m_ck, .rates = common_clkout_src_96m_rates },@@ -306,7 +306,7 @@ static struct clk sys_clkout_src = { .set_rate = &omap2_clksel_set_rate }; -static const struct clksel_rate common_clkout_rates[] = { +static struct clksel_rate common_clkout_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_24XX }, { .div =2 , .val =1 , .flags =RATE_IN_24XX }, { .div =4 , .val =2 , .flags =RATE_IN_24XX },@@ -315,7 +315,7 @@ static const struct clksel_rate common_clkout_rates[] = { { .div = 0 }, }; -static const struct clksel sys_clkout_clksel[] = { +static struct clksel sys_clkout_clksel[] = { { .parent = &sys_clkout_src, .rates = common_clkout_rates }, { .parent =NULL } };@@ -350,7 +350,7 @@ static struct clk sys_clkout2_src = { .set_rate = &omap2_clksel_set_rate }; -static const struct clksel sys_clkout2_clksel[] = { +static struct clksel sys_clkout2_clksel[] = { { .parent = &sys_clkout2_src, .rates = common_clkout_rates }, { .parent =NULL } };@@ -390,7 +390,7 @@ static struct clk emul_ck = {* - Base divider comes from: CM_CLKSEL_MPU * */ -static const struct clksel_rate mpu_core_rates[] = { +static struct clksel_rate mpu_core_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =2 , .val =2 , .flags =RATE_IN_24XX }, { .div =4 , .val =4 , .flags =RATE_IN_242X },@@ -399,7 +399,7 @@ static const struct clksel_rate mpu_core_rates[] = { { .div = 0 }, }; -static const struct clksel mpu_clksel[] = { +static struct clksel mpu_clksel[] = { { .parent = &core_ck, .rates = mpu_core_rates }, { .parent =NULL } };@@ -426,7 +426,7 @@ static struct clk mpu_ck = { /* Control cpu */* controls. The other branch gets further divided by 2 then possibly * routed into a synchronizer and out of clocks abc. */ -static const struct clksel_rate dsp_fck_core_rates[] = { +static struct clksel_rate dsp_fck_core_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =2 , .val =2 , .flags =RATE_IN_24XX }, { .div =3 , .val =3 , .flags =RATE_IN_24XX },@@ -437,7 +437,7 @@ static const struct clksel_rate dsp_fck_core_rates[] = { { .div = 0 }, }; -static const struct clksel dsp_fck_clksel[] = { +static struct clksel dsp_fck_clksel[] = { { .parent = &core_ck, .rates = dsp_fck_core_rates }, { .parent =NULL } };@@ -456,13 +456,13 @@ static struct clk dsp_fck = { };/* DSP interface clock */ -static const struct clksel_rate dsp_irate_ick_rates[] = { +static struct clksel_rate dsp_irate_ick_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =2 , .val =2 , .flags =RATE_IN_24XX }, { .div =0 }, }; -static const struct clksel dsp_irate_ick_clksel[] = { +static struct clksel dsp_irate_ick_clksel[] = { { .parent = &dsp_fck, .rates = dsp_irate_ick_rates }, { .parent =NULL } };@@ -536,7 +536,7 @@ static struct clk iva1_mpu_int_ifck = {* may very well need notification when the clock changes. Currently for low * operating points, these are taken care of in sleep.S. */ -static const struct clksel_rate core_l3_core_rates[] = { +static struct clksel_rate core_l3_core_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =2 , .val =2 , .flags =RATE_IN_242X }, { .div =4 , .val =4 , .flags =RATE_IN_24XX },@@ -547,7 +547,7 @@ static const struct clksel_rate core_l3_core_rates[] = { { .div = 0 } }; -static const struct clksel core_l3_clksel[] = { +static struct clksel core_l3_clksel[] = { { .parent = &core_ck, .rates = core_l3_core_rates }, { .parent =NULL } };@@ -564,14 +564,14 @@ static struct clk core_l3_ck = { /* Used for ick and fck, interconnect */ };/* usb_l4_ick */ -static const struct clksel_rate usb_l4_ick_core_l3_rates[] = { +static struct clksel_rate usb_l4_ick_core_l3_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =2 , .val =2 , .flags =RATE_IN_24XX }, { .div =4 , .val =4 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel usb_l4_ick_clksel[] = { +static struct clksel usb_l4_ick_clksel[] = { { .parent = &core_l3_ck, .rates = usb_l4_ick_core_l3_rates }, { .parent =NULL }, };@@ -597,13 +597,13 @@ static struct clk usb_l4_ick = { /* FS-USB interface clock */* functional clocks. Fixed APLL functional source clocks are managed in * this domain. */ -static const struct clksel_rate l4_core_l3_rates[] = { +static struct clksel_rate l4_core_l3_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =2 , .val =2 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel l4_clksel[] = { +static struct clksel l4_clksel[] = { { .parent = &core_l3_ck, .rates = l4_core_l3_rates }, { .parent =NULL } };@@ -627,7 +627,7 @@ static struct clk l4_ck = { /* used both as an ick and fck */* * ssr = core/1/2/3/4/5, sst = 1/2 ssr. */ -static const struct clksel_rate ssi_ssr_sst_fck_core_rates[] = { +static struct clksel_rate ssi_ssr_sst_fck_core_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =2 , .val =2 , .flags =RATE_IN_24XX }, { .div =3 , .val =3 , .flags =RATE_IN_24XX },@@ -637,7 +637,7 @@ static const struct clksel_rate ssi_ssr_sst_fck_core_rates[] = { { .div = 0 } }; -static const struct clksel ssi_ssr_sst_fck_clksel[] = { +static struct clksel ssi_ssr_sst_fck_clksel[] = { { .parent = &core_ck, .rates = ssi_ssr_sst_fck_core_rates }, { .parent =NULL } };@@ -683,7 +683,7 @@ static struct clk ssi_l4_ick = {*/ /* This clksel struct is shared between gfx_3d_fck and gfx_2d_fck */ -static const struct clksel gfx_fck_clksel[] = { +static struct clksel gfx_fck_clksel[] = { { .parent = &core_l3_ck, .rates = gfx_l3_rates }, { .parent =NULL }, };@@ -736,12 +736,12 @@ static struct clk gfx_ick = {*/ /* XXX Add RATE_NOT_VALIDATED */ -static const struct clksel_rate dss1_fck_sys_rates[] = { +static struct clksel_rate dss1_fck_sys_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel_rate dss1_fck_core_rates[] = { +static struct clksel_rate dss1_fck_core_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =2 , .val =2 , .flags =RATE_IN_24XX }, { .div =3 , .val =3 , .flags =RATE_IN_24XX },@@ -755,7 +755,7 @@ static const struct clksel_rate dss1_fck_core_rates[] = { { .div = 0 } }; -static const struct clksel dss1_fck_clksel[] = { +static struct clksel dss1_fck_clksel[] = { { .parent = &sys_ck, .rates = dss1_fck_sys_rates }, { .parent = &core_ck, .rates = dss1_fck_core_rates }, { .parent =NULL },@@ -785,17 +785,17 @@ static struct clk dss1_fck = { .recalc = &omap2_clksel_recalc, }; -static const struct clksel_rate dss2_fck_sys_rates[] = { +static struct clksel_rate dss2_fck_sys_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel_rate dss2_fck_48m_rates[] = { +static struct clksel_rate dss2_fck_48m_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel dss2_fck_clksel[] = { +static struct clksel dss2_fck_clksel[] = { { .parent = &sys_ck, .rates = dss2_fck_sys_rates }, { .parent = &func_48m_ck, .rates = dss2_fck_48m_rates }, { .parent =NULL }@@ -831,12 +831,12 @@ static struct clk dss_54m_fck = { /* Alt clk used in power management */* here will likely have an L4 interface parent, and may have multiple * functional clock parents. */ -static const struct clksel_rate gpt_alt_rates[] = { +static struct clksel_rate gpt_alt_rates[] = { { .div =1 , .val =2 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel omap24xx_gpt_clksel[] = { +static struct clksel omap24xx_gpt_clksel[] = { { .parent = &func_32k_ck, .rates = gpt_32k_rates }, { .parent = &sys_ck, .rates = gpt_sys_rates }, { .parent = &alt_ck, .rates = gpt_alt_rates },@@ -1142,17 +1142,17 @@ static struct clk mcbsp1_ick = { .recalc = &followparent_recalc, }; -static const struct clksel_rate common_mcbsp_96m_rates[] = { +static struct clksel_rate common_mcbsp_96m_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel_rate common_mcbsp_mcbsp_rates[] = { +static struct clksel_rate common_mcbsp_mcbsp_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel mcbsp_fck_clksel[] = { +static struct clksel mcbsp_fck_clksel[] = { { .parent = &func_96m_ck, .rates = common_mcbsp_96m_rates }, { .parent = &mcbsp_clks, .rates = common_mcbsp_mcbsp_rates }, { .parent =NULL }@@ -1618,12 +1618,12 @@ static struct clk vlynq_ick = { .recalc = &followparent_recalc, }; -static const struct clksel_rate vlynq_fck_96m_rates[] = { +static struct clksel_rate vlynq_fck_96m_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_242X }, { .div =0 } }; -static const struct clksel_rate vlynq_fck_core_rates[] = { +static struct clksel_rate vlynq_fck_core_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_242X }, { .div =2 , .val =2 , .flags =RATE_IN_242X }, { .div =3 , .val =3 , .flags =RATE_IN_242X },@@ -1637,7 +1637,7 @@ static const struct clksel_rate vlynq_fck_core_rates[] = { { .div = 0 } }; -static const struct clksel vlynq_fck_clksel[] = { +static struct clksel vlynq_fck_clksel[] = { { .parent = &func_96m_ck, .rates = vlynq_fck_96m_rates }, { .parent = &core_ck, .rates = vlynq_fck_core_rates }, { .parent =NULL }arch/arm/mach-omap2/clock2430_data.c +44
-44@@ -161,17 +161,17 @@ static struct clk apll54_ck = {/* func_54m_ck */ -static const struct clksel_rate func_54m_apll54_rates[] = { +static struct clksel_rate func_54m_apll54_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_24XX }, { .div =0 }, }; -static const struct clksel_rate func_54m_alt_rates[] = { +static struct clksel_rate func_54m_alt_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =0 }, }; -static const struct clksel func_54m_clksel[] = { +static struct clksel func_54m_clksel[] = { { .parent = &apll54_ck, .rates = func_54m_apll54_rates, }, { .parent = &alt_ck, .rates = func_54m_alt_rates, }, { .parent =NULL },@@ -198,17 +198,17 @@ static struct clk core_ck = { };/* func_96m_ck */ -static const struct clksel_rate func_96m_apll96_rates[] = { +static struct clksel_rate func_96m_apll96_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_24XX }, { .div =0 }, }; -static const struct clksel_rate func_96m_alt_rates[] = { +static struct clksel_rate func_96m_alt_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_243X }, { .div =0 }, }; -static const struct clksel func_96m_clksel[] = { +static struct clksel func_96m_clksel[] = { { .parent = &apll96_ck, .rates = func_96m_apll96_rates }, { .parent = &alt_ck, .rates = func_96m_alt_rates }, { .parent =NULL }@@ -228,17 +228,17 @@ static struct clk func_96m_ck = {/* func_48m_ck */ -static const struct clksel_rate func_48m_apll96_rates[] = { +static struct clksel_rate func_48m_apll96_rates[] = { { .div =2 , .val =0 , .flags =RATE_IN_24XX }, { .div =0 }, }; -static const struct clksel_rate func_48m_alt_rates[] = { +static struct clksel_rate func_48m_alt_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =0 }, }; -static const struct clksel func_48m_clksel[] = { +static struct clksel func_48m_clksel[] = { { .parent = &apll96_ck, .rates = func_48m_apll96_rates }, { .parent = &alt_ck, .rates = func_48m_alt_rates }, { .parent =NULL }@@ -283,27 +283,27 @@ static struct clk wdt1_osc_ck = {* harmless since access to those clocks are gated by the struct clk * flags fields, which mark them as 2420-only. */ -static const struct clksel_rate common_clkout_src_core_rates[] = { +static struct clksel_rate common_clkout_src_core_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel_rate common_clkout_src_sys_rates[] = { +static struct clksel_rate common_clkout_src_sys_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel_rate common_clkout_src_96m_rates[] = { +static struct clksel_rate common_clkout_src_96m_rates[] = { { .div =1 , .val =2 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel_rate common_clkout_src_54m_rates[] = { +static struct clksel_rate common_clkout_src_54m_rates[] = { { .div =1 , .val =3 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel common_clkout_src_clksel[] = { +static struct clksel common_clkout_src_clksel[] = { { .parent = &core_ck, .rates = common_clkout_src_core_rates }, { .parent = &sys_ck, .rates = common_clkout_src_sys_rates }, { .parent = &func_96m_ck, .rates = common_clkout_src_96m_rates },@@ -327,7 +327,7 @@ static struct clk sys_clkout_src = { .set_rate = &omap2_clksel_set_rate }; -static const struct clksel_rate common_clkout_rates[] = { +static struct clksel_rate common_clkout_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_24XX }, { .div =2 , .val =1 , .flags =RATE_IN_24XX }, { .div =4 , .val =2 , .flags =RATE_IN_24XX },@@ -336,7 +336,7 @@ static const struct clksel_rate common_clkout_rates[] = { { .div = 0 }, }; -static const struct clksel sys_clkout_clksel[] = { +static struct clksel sys_clkout_clksel[] = { { .parent = &sys_clkout_src, .rates = common_clkout_rates }, { .parent =NULL } };@@ -375,13 +375,13 @@ static struct clk emul_ck = {* - Base divider comes from: CM_CLKSEL_MPU * */ -static const struct clksel_rate mpu_core_rates[] = { +static struct clksel_rate mpu_core_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =2 , .val =2 , .flags =RATE_IN_24XX }, { .div =0 }, }; -static const struct clksel mpu_clksel[] = { +static struct clksel mpu_clksel[] = { { .parent = &core_ck, .rates = mpu_core_rates }, { .parent =NULL } };@@ -408,7 +408,7 @@ static struct clk mpu_ck = { /* Control cpu */* controls. The other branch gets further divided by 2 then possibly * routed into a synchronizer and out of clocks abc. */ -static const struct clksel_rate dsp_fck_core_rates[] = { +static struct clksel_rate dsp_fck_core_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =2 , .val =2 , .flags =RATE_IN_24XX }, { .div =3 , .val =3 , .flags =RATE_IN_24XX },@@ -416,7 +416,7 @@ static const struct clksel_rate dsp_fck_core_rates[] = { { .div = 0 }, }; -static const struct clksel dsp_fck_clksel[] = { +static struct clksel dsp_fck_clksel[] = { { .parent = &core_ck, .rates = dsp_fck_core_rates }, { .parent =NULL } };@@ -435,14 +435,14 @@ static struct clk dsp_fck = { };/* DSP interface clock */ -static const struct clksel_rate dsp_irate_ick_rates[] = { +static struct clksel_rate dsp_irate_ick_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =2 , .val =2 , .flags =RATE_IN_24XX }, { .div =3 , .val =3 , .flags =RATE_IN_243X }, { .div =0 }, }; -static const struct clksel dsp_irate_ick_clksel[] = { +static struct clksel dsp_irate_ick_clksel[] = { { .parent = &dsp_fck, .rates = dsp_irate_ick_rates }, { .parent =NULL } };@@ -486,14 +486,14 @@ static struct clk iva2_1_ick = {* may very well need notification when the clock changes. Currently for low * operating points, these are taken care of in sleep.S. */ -static const struct clksel_rate core_l3_core_rates[] = { +static struct clksel_rate core_l3_core_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =4 , .val =4 , .flags =RATE_IN_24XX }, { .div =6 , .val =6 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel core_l3_clksel[] = { +static struct clksel core_l3_clksel[] = { { .parent = &core_ck, .rates = core_l3_core_rates }, { .parent =NULL } };@@ -510,14 +510,14 @@ static struct clk core_l3_ck = { /* Used for ick and fck, interconnect */ };/* usb_l4_ick */ -static const struct clksel_rate usb_l4_ick_core_l3_rates[] = { +static struct clksel_rate usb_l4_ick_core_l3_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =2 , .val =2 , .flags =RATE_IN_24XX }, { .div =4 , .val =4 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel usb_l4_ick_clksel[] = { +static struct clksel usb_l4_ick_clksel[] = { { .parent = &core_l3_ck, .rates = usb_l4_ick_core_l3_rates }, { .parent =NULL }, };@@ -543,13 +543,13 @@ static struct clk usb_l4_ick = { /* FS-USB interface clock */* functional clocks. Fixed APLL functional source clocks are managed in * this domain. */ -static const struct clksel_rate l4_core_l3_rates[] = { +static struct clksel_rate l4_core_l3_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =2 , .val =2 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel l4_clksel[] = { +static struct clksel l4_clksel[] = { { .parent = &core_l3_ck, .rates = l4_core_l3_rates }, { .parent =NULL } };@@ -573,7 +573,7 @@ static struct clk l4_ck = { /* used both as an ick and fck */* * ssr = core/1/2/3/4/5, sst = 1/2 ssr. */ -static const struct clksel_rate ssi_ssr_sst_fck_core_rates[] = { +static struct clksel_rate ssi_ssr_sst_fck_core_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =2 , .val =2 , .flags =RATE_IN_24XX }, { .div =3 , .val =3 , .flags =RATE_IN_24XX },@@ -582,7 +582,7 @@ static const struct clksel_rate ssi_ssr_sst_fck_core_rates[] = { { .div = 0 } }; -static const struct clksel ssi_ssr_sst_fck_clksel[] = { +static struct clksel ssi_ssr_sst_fck_clksel[] = { { .parent = &core_ck, .rates = ssi_ssr_sst_fck_core_rates }, { .parent =NULL } };@@ -628,7 +628,7 @@ static struct clk ssi_l4_ick = {*/ /* This clksel struct is shared between gfx_3d_fck and gfx_2d_fck */ -static const struct clksel gfx_fck_clksel[] = { +static struct clksel gfx_fck_clksel[] = { { .parent = &core_l3_ck, .rates = gfx_l3_rates }, { .parent =NULL }, };@@ -678,7 +678,7 @@ static struct clk gfx_ick = {* MDM_ICLK * These clocks are usable in chassis mode only. */ -static const struct clksel_rate mdm_ick_core_rates[] = { +static struct clksel_rate mdm_ick_core_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_243X }, { .div =4 , .val =4 , .flags =RATE_IN_243X }, { .div =6 , .val =6 , .flags =RATE_IN_243X },@@ -686,7 +686,7 @@ static const struct clksel_rate mdm_ick_core_rates[] = { { .div = 0 } }; -static const struct clksel mdm_ick_clksel[] = { +static struct clksel mdm_ick_clksel[] = { { .parent = &core_ck, .rates = mdm_ick_core_rates }, { .parent =NULL } };@@ -724,12 +724,12 @@ static struct clk mdm_osc_ck = {*/ /* XXX Add RATE_NOT_VALIDATED */ -static const struct clksel_rate dss1_fck_sys_rates[] = { +static struct clksel_rate dss1_fck_sys_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel_rate dss1_fck_core_rates[] = { +static struct clksel_rate dss1_fck_core_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =2 , .val =2 , .flags =RATE_IN_24XX }, { .div =3 , .val =3 , .flags =RATE_IN_24XX },@@ -743,7 +743,7 @@ static const struct clksel_rate dss1_fck_core_rates[] = { { .div = 0 } }; -static const struct clksel dss1_fck_clksel[] = { +static struct clksel dss1_fck_clksel[] = { { .parent = &sys_ck, .rates = dss1_fck_sys_rates }, { .parent = &core_ck, .rates = dss1_fck_core_rates }, { .parent =NULL },@@ -773,17 +773,17 @@ static struct clk dss1_fck = { .recalc = &omap2_clksel_recalc, }; -static const struct clksel_rate dss2_fck_sys_rates[] = { +static struct clksel_rate dss2_fck_sys_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel_rate dss2_fck_48m_rates[] = { +static struct clksel_rate dss2_fck_48m_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel dss2_fck_clksel[] = { +static struct clksel dss2_fck_clksel[] = { { .parent = &sys_ck, .rates = dss2_fck_sys_rates }, { .parent = &func_48m_ck, .rates = dss2_fck_48m_rates }, { .parent =NULL }@@ -819,12 +819,12 @@ static struct clk dss_54m_fck = { /* Alt clk used in power management */* here will likely have an L4 interface parent, and may have multiple * functional clock parents. */ -static const struct clksel_rate gpt_alt_rates[] = { +static struct clksel_rate gpt_alt_rates[] = { { .div =1 , .val =2 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel omap24xx_gpt_clksel[] = { +static struct clksel omap24xx_gpt_clksel[] = { { .parent = &func_32k_ck, .rates = gpt_32k_rates }, { .parent = &sys_ck, .rates = gpt_sys_rates }, { .parent = &alt_ck, .rates = gpt_alt_rates },@@ -1130,17 +1130,17 @@ static struct clk mcbsp1_ick = { .recalc = &followparent_recalc, }; -static const struct clksel_rate common_mcbsp_96m_rates[] = { +static struct clksel_rate common_mcbsp_96m_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel_rate common_mcbsp_mcbsp_rates[] = { +static struct clksel_rate common_mcbsp_mcbsp_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel mcbsp_fck_clksel[] = { +static struct clksel mcbsp_fck_clksel[] = { { .parent = &func_96m_ck, .rates = common_mcbsp_96m_rates }, { .parent = &mcbsp_clks, .rates = common_mcbsp_mcbsp_rates }, { .parent =NULL }arch/arm/mach-omap2/clock3xxx_data.c +72
-72@@ -109,37 +109,37 @@ static struct clk virt_38_4m_ck = { .rate = 38400000, }; -static const struct clksel_rate osc_sys_12m_rates[] = { +static struct clksel_rate osc_sys_12m_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_3XXX }, { .div =0 } }; -static const struct clksel_rate osc_sys_13m_rates[] = { +static struct clksel_rate osc_sys_13m_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_3XXX }, { .div =0 } }; -static const struct clksel_rate osc_sys_16_8m_rates[] = { +static struct clksel_rate osc_sys_16_8m_rates[] = { { .div =1 , .val =5 , .flags =RATE_IN_3430ES2PLUS_36XX }, { .div =0 } }; -static const struct clksel_rate osc_sys_19_2m_rates[] = { +static struct clksel_rate osc_sys_19_2m_rates[] = { { .div =1 , .val =2 , .flags =RATE_IN_3XXX }, { .div =0 } }; -static const struct clksel_rate osc_sys_26m_rates[] = { +static struct clksel_rate osc_sys_26m_rates[] = { { .div =1 , .val =3 , .flags =RATE_IN_3XXX }, { .div =0 } }; -static const struct clksel_rate osc_sys_38_4m_rates[] = { +static struct clksel_rate osc_sys_38_4m_rates[] = { { .div =1 , .val =4 , .flags =RATE_IN_3XXX }, { .div =0 } }; -static const struct clksel osc_sys_clksel[] = { +static struct clksel osc_sys_clksel[] = { { .parent = &virt_12m_ck, .rates = osc_sys_12m_rates }, { .parent = &virt_13m_ck, .rates = osc_sys_13m_rates }, { .parent = &virt_16_8m_ck, .rates = osc_sys_16_8m_rates },@@ -162,13 +162,13 @@ static struct clk osc_sys_ck = { .recalc = &omap2_clksel_recalc, }; -static const struct clksel_rate div2_rates[] = { +static struct clksel_rate div2_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_3XXX }, { .div =2 , .val =2 , .flags =RATE_IN_3XXX }, { .div =0 } }; -static const struct clksel sys_clksel[] = { +static struct clksel sys_clksel[] = { { .parent = &osc_sys_ck, .rates = div2_rates }, { .parent =NULL } };@@ -212,7 +212,7 @@ static struct clk sys_clkout1 = {/* CM CLOCKS */ -static const struct clksel_rate div16_dpll_rates[] = { +static struct clksel_rate div16_dpll_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_3XXX }, { .div =2 , .val =2 , .flags =RATE_IN_3XXX }, { .div =3 , .val =3 , .flags =RATE_IN_3XXX },@@ -232,7 +232,7 @@ static const struct clksel_rate div16_dpll_rates[] = { { .div = 0 } }; -static const struct clksel_rate dpll4_rates[] = { +static struct clksel_rate dpll4_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_3XXX }, { .div =2 , .val =2 , .flags =RATE_IN_3XXX }, { .div =3 , .val =3 , .flags =RATE_IN_3XXX },@@ -318,7 +318,7 @@ static struct clk dpll1_x2_ck = { };/* On DPLL1, unlike other DPLLs, the divider is downstream from CLKOUTX2 */ -static const struct clksel div16_dpll1_x2m2_clksel[] = { +static struct clksel div16_dpll1_x2m2_clksel[] = { { .parent = &dpll1_x2_ck, .rates = div16_dpll_rates }, { .parent =NULL } };@@ -378,7 +378,7 @@ static struct clk dpll2_ck = { .recalc = &omap3_dpll_recalc, }; -static const struct clksel div16_dpll2_m2x2_clksel[] = { +static struct clksel div16_dpll2_m2x2_clksel[] = { { .parent = &dpll2_ck, .rates = div16_dpll_rates }, { .parent =NULL } };@@ -449,7 +449,7 @@ static struct clk dpll3_x2_ck = { .recalc = &omap3_clkoutx2_recalc, }; -static const struct clksel_rate div31_dpll3_rates[] = { +static struct clksel_rate div31_dpll3_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_3XXX }, { .div =2 , .val =2 , .flags =RATE_IN_3XXX }, { .div =3 , .val =3 , .flags =RATE_IN_3430ES2PLUS_36XX },@@ -484,7 +484,7 @@ static const struct clksel_rate div31_dpll3_rates[] = { { .div = 0 }, }; -static const struct clksel div31_dpll3m2_clksel[] = { +static struct clksel div31_dpll3m2_clksel[] = { { .parent = &dpll3_ck, .rates = div31_dpll3_rates }, { .parent =NULL } };@@ -520,7 +520,7 @@ static struct clk dpll3_m2x2_ck = { };/* The PWRDN bit is apparently only available on 3430ES2 and above */ -static const struct clksel div16_dpll3_clksel[] = { +static struct clksel div16_dpll3_clksel[] = { { .parent = &dpll3_ck, .rates = div16_dpll_rates }, { .parent =NULL } };@@ -635,7 +635,7 @@ static struct clk dpll4_x2_ck = { .recalc = &omap3_clkoutx2_recalc, }; -static const struct clksel dpll4_clksel[] = { +static struct clksel dpll4_clksel[] = { { .parent = &dpll4_ck, .rates = dpll4_rates }, { .parent =NULL } };@@ -680,23 +680,23 @@ static struct clk omap_192m_alwon_fck = { .recalc = &followparent_recalc, }; -static const struct clksel_rate omap_96m_alwon_fck_rates[] = { +static struct clksel_rate omap_96m_alwon_fck_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_36XX }, { .div =2 , .val =2 , .flags =RATE_IN_36XX }, { .div =0 } }; -static const struct clksel omap_96m_alwon_fck_clksel[] = { +static struct clksel omap_96m_alwon_fck_clksel[] = { { .parent = &omap_192m_alwon_fck, .rates = omap_96m_alwon_fck_rates }, { .parent =NULL } }; -static const struct clksel_rate omap_96m_dpll_rates[] = { +static struct clksel_rate omap_96m_dpll_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_3XXX }, { .div =0 } }; -static const struct clksel_rate omap_96m_sys_rates[] = { +static struct clksel_rate omap_96m_sys_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_3XXX }, { .div =0 } };@@ -726,7 +726,7 @@ static struct clk cm_96m_fck = { .recalc = &followparent_recalc, }; -static const struct clksel omap_96m_fck_clksel[] = { +static struct clksel omap_96m_fck_clksel[] = { { .parent = &cm_96m_fck, .rates = omap_96m_dpll_rates }, { .parent = &sys_ck, .rates = omap_96m_sys_rates }, { .parent =NULL }@@ -768,17 +768,17 @@ static struct clk dpll4_m3x2_ck = { .recalc = &omap3_clkoutx2_recalc, }; -static const struct clksel_rate omap_54m_d4m3x2_rates[] = { +static struct clksel_rate omap_54m_d4m3x2_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_3XXX }, { .div =0 } }; -static const struct clksel_rate omap_54m_alt_rates[] = { +static struct clksel_rate omap_54m_alt_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_3XXX }, { .div =0 } }; -static const struct clksel omap_54m_clksel[] = { +static struct clksel omap_54m_clksel[] = { { .parent = &dpll4_m3x2_ck, .rates = omap_54m_d4m3x2_rates }, { .parent = &sys_altclk, .rates = omap_54m_alt_rates }, { .parent =NULL }@@ -794,17 +794,17 @@ static struct clk omap_54m_fck = { .recalc = &omap2_clksel_recalc, }; -static const struct clksel_rate omap_48m_cm96m_rates[] = { +static struct clksel_rate omap_48m_cm96m_rates[] = { { .div =2 , .val =0 , .flags =RATE_IN_3XXX }, { .div =0 } }; -static const struct clksel_rate omap_48m_alt_rates[] = { +static struct clksel_rate omap_48m_alt_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_3XXX }, { .div =0 } }; -static const struct clksel omap_48m_clksel[] = { +static struct clksel omap_48m_clksel[] = { { .parent = &cm_96m_fck, .rates = omap_48m_cm96m_rates }, { .parent = &sys_altclk, .rates = omap_48m_alt_rates }, { .parent =NULL }@@ -953,7 +953,7 @@ static struct clk dpll5_ck = { .recalc = &omap3_dpll_recalc, }; -static const struct clksel div16_dpll5_clksel[] = { +static struct clksel div16_dpll5_clksel[] = { { .parent = &dpll5_ck, .rates = div16_dpll_rates }, { .parent =NULL } };@@ -972,27 +972,27 @@ static struct clk dpll5_m2_ck = {/* CM EXTERNAL CLOCK OUTPUTS */ -static const struct clksel_rate clkout2_src_core_rates[] = { +static struct clksel_rate clkout2_src_core_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_3XXX }, { .div =0 } }; -static const struct clksel_rate clkout2_src_sys_rates[] = { +static struct clksel_rate clkout2_src_sys_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_3XXX }, { .div =0 } }; -static const struct clksel_rate clkout2_src_96m_rates[] = { +static struct clksel_rate clkout2_src_96m_rates[] = { { .div =1 , .val =2 , .flags =RATE_IN_3XXX }, { .div =0 } }; -static const struct clksel_rate clkout2_src_54m_rates[] = { +static struct clksel_rate clkout2_src_54m_rates[] = { { .div =1 , .val =3 , .flags =RATE_IN_3XXX }, { .div =0 } }; -static const struct clksel clkout2_src_clksel[] = { +static struct clksel clkout2_src_clksel[] = { { .parent = &core_ck, .rates = clkout2_src_core_rates }, { .parent = &sys_ck, .rates = clkout2_src_sys_rates }, { .parent = &cm_96m_fck, .rates = clkout2_src_96m_rates },@@ -1013,7 +1013,7 @@ static struct clk clkout2_src_ck = { .recalc = &omap2_clksel_recalc, }; -static const struct clksel_rate sys_clkout2_rates[] = { +static struct clksel_rate sys_clkout2_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_3XXX }, { .div =2 , .val =1 , .flags =RATE_IN_3XXX }, { .div =4 , .val =2 , .flags =RATE_IN_3XXX },@@ -1022,7 +1022,7 @@ static const struct clksel_rate sys_clkout2_rates[] = { { .div = 0 }, }; -static const struct clksel sys_clkout2_clksel[] = { +static struct clksel sys_clkout2_clksel[] = { { .parent = &clkout2_src_ck, .rates = sys_clkout2_rates }, { .parent =NULL }, };@@ -1050,14 +1050,14 @@ static struct clk corex2_fck = {/* DPLL power domain clock controls */ -static const struct clksel_rate div4_rates[] = { +static struct clksel_rate div4_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_3XXX }, { .div =2 , .val =2 , .flags =RATE_IN_3XXX }, { .div =4 , .val =4 , .flags =RATE_IN_3XXX }, { .div =0 } }; -static const struct clksel div4_core_clksel[] = { +static struct clksel div4_core_clksel[] = { { .parent = &core_ck, .rates = div4_rates }, { .parent =NULL } };@@ -1086,13 +1086,13 @@ static struct clk mpu_ck = { };/* arm_fck is divided by two when DPLL1 locked; otherwise, passthrough mpu_ck */ -static const struct clksel_rate arm_fck_rates[] = { +static struct clksel_rate arm_fck_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_3XXX }, { .div =2 , .val =1 , .flags =RATE_IN_3XXX }, { .div =0 }, }; -static const struct clksel arm_fck_clksel[] = { +static struct clksel arm_fck_clksel[] = { { .parent = &mpu_ck, .rates = arm_fck_rates }, { .parent =NULL } };@@ -1145,7 +1145,7 @@ static struct clk iva2_ck = {/* Common interface clocks */ -static const struct clksel div2_core_clksel[] = { +static struct clksel div2_core_clksel[] = { { .parent = &core_ck, .rates = div2_rates }, { .parent =NULL } };@@ -1162,7 +1162,7 @@ static struct clk l3_ick = { .recalc = &omap2_clksel_recalc, }; -static const struct clksel div2_l3_clksel[] = { +static struct clksel div2_l3_clksel[] = { { .parent = &l3_ick, .rates = div2_rates }, { .parent =NULL } };@@ -1180,7 +1180,7 @@ static struct clk l4_ick = { }; -static const struct clksel div2_l4_clksel[] = { +static struct clksel div2_l4_clksel[] = { { .parent = &l4_ick, .rates = div2_rates }, { .parent =NULL } };@@ -1200,7 +1200,7 @@ static struct clk rm_ick = {/* GFX clocks are in 3430ES1 only. 3430ES2 and later uses the SGX instead */ -static const struct clksel gfx_l3_clksel[] = { +static struct clksel gfx_l3_clksel[] = { { .parent = &l3_ick, .rates = gfx_l3_rates }, { .parent =NULL } };@@ -1257,7 +1257,7 @@ static struct clk gfx_cg2_ck = {/* SGX power domain - 3430ES2 only */ -static const struct clksel_rate sgx_core_rates[] = { +static struct clksel_rate sgx_core_rates[] = { { .div =2 , .val =5 , .flags =RATE_IN_36XX }, { .div =3 , .val =0 , .flags =RATE_IN_3XXX }, { .div =4 , .val =1 , .flags =RATE_IN_3XXX },@@ -1265,23 +1265,23 @@ static const struct clksel_rate sgx_core_rates[] = { { .div = 0 }, }; -static const struct clksel_rate sgx_192m_rates[] = { +static struct clksel_rate sgx_192m_rates[] = { { .div =1 , .val =4 , .flags =RATE_IN_36XX }, { .div =0 }, }; -static const struct clksel_rate sgx_corex2_rates[] = { +static struct clksel_rate sgx_corex2_rates[] = { { .div =3 , .val =6 , .flags =RATE_IN_36XX }, { .div =5 , .val =7 , .flags =RATE_IN_36XX }, { .div =0 }, }; -static const struct clksel_rate sgx_96m_rates[] = { +static struct clksel_rate sgx_96m_rates[] = { { .div =1 , .val =3 , .flags =RATE_IN_3XXX }, { .div =0 }, }; -static const struct clksel sgx_clksel[] = { +static struct clksel sgx_clksel[] = { { .parent = &core_ck, .rates = sgx_core_rates }, { .parent = &cm_96m_fck, .rates = sgx_96m_rates }, { .parent = &omap_192m_alwon_fck, .rates = sgx_192m_rates },@@ -1356,7 +1356,7 @@ static struct clk mad2d_ick = { .recalc = &followparent_recalc, }; -static const struct clksel omap343x_gpt_clksel[] = { +static struct clksel omap343x_gpt_clksel[] = { { .parent = &omap_32k_fck, .rates = gpt_32k_rates }, { .parent = &sys_ck, .rates = gpt_sys_rates }, { .parent =NULL }@@ -1501,17 +1501,17 @@ static struct clk i2c1_fck = {* MCBSP 1 & 5 get their 96MHz clock from core_96m_fck; * MCBSP 2, 3, 4 get their 96MHz clock from per_96m_fck. */ -static const struct clksel_rate common_mcbsp_96m_rates[] = { +static struct clksel_rate common_mcbsp_96m_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_3XXX }, { .div =0 } }; -static const struct clksel_rate common_mcbsp_mcbsp_rates[] = { +static struct clksel_rate common_mcbsp_mcbsp_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_3XXX }, { .div =0 } }; -static const struct clksel mcbsp_15_clksel[] = { +static struct clksel mcbsp_15_clksel[] = { { .parent = &core_96m_fck, .rates = common_mcbsp_96m_rates }, { .parent = &mcbsp_clks, .rates = common_mcbsp_mcbsp_rates }, { .parent =NULL }@@ -1643,7 +1643,7 @@ static struct clk hdq_fck = {/* DPLL3-derived clock */ -static const struct clksel_rate ssi_ssr_corex2_rates[] = { +static struct clksel_rate ssi_ssr_corex2_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_3XXX }, { .div =2 , .val =2 , .flags =RATE_IN_3XXX }, { .div =3 , .val =3 , .flags =RATE_IN_3XXX },@@ -1653,7 +1653,7 @@ static const struct clksel_rate ssi_ssr_corex2_rates[] = { { .div = 0 } }; -static const struct clksel ssi_ssr_clksel[] = { +static struct clksel ssi_ssr_clksel[] = { { .parent = &corex2_fck, .rates = ssi_ssr_corex2_rates }, { .parent =NULL } };@@ -2078,7 +2078,7 @@ static struct clk ssi_ick_3430es2 = {/* REVISIT: Technically the TRM claims that this is CORE_CLK based, * but l4_ick makes more sense to me */ -static const struct clksel usb_l4_clksel[] = { +static struct clksel usb_l4_clksel[] = { { .parent = &l4_ick, .rates = div2_rates }, { .parent =NULL }, };@@ -2282,7 +2282,7 @@ static struct clk usbhost_ick = {/* WKUP */ -static const struct clksel_rate usim_96m_rates[] = { +static struct clksel_rate usim_96m_rates[] = { { .div =2 , .val =3 , .flags =RATE_IN_3XXX }, { .div =4 , .val =4 , .flags =RATE_IN_3XXX }, { .div =8 , .val =5 , .flags =RATE_IN_3XXX },@@ -2290,7 +2290,7 @@ static const struct clksel_rate usim_96m_rates[] = { { .div = 0 }, }; -static const struct clksel_rate usim_120m_rates[] = { +static struct clksel_rate usim_120m_rates[] = { { .div =4 , .val =7 , .flags =RATE_IN_3XXX }, { .div =8 , .val =8 , .flags =RATE_IN_3XXX }, { .div =16 , .val =9 , .flags =RATE_IN_3XXX },@@ -2298,7 +2298,7 @@ static const struct clksel_rate usim_120m_rates[] = { { .div = 0 }, }; -static const struct clksel usim_clksel[] = { +static struct clksel usim_clksel[] = { { .parent = &omap_96m_fck, .rates = usim_96m_rates }, { .parent = &dpll5_m2_ck, .rates = usim_120m_rates }, { .parent = &sys_ck, .rates = div2_rates },@@ -2851,7 +2851,7 @@ static struct clk mcbsp4_ick = { .recalc = &followparent_recalc, }; -static const struct clksel mcbsp_234_clksel[] = { +static struct clksel mcbsp_234_clksel[] = { { .parent = &per_96m_fck, .rates = common_mcbsp_96m_rates }, { .parent = &mcbsp_clks, .rates = common_mcbsp_mcbsp_rates }, { .parent =NULL }@@ -2900,27 +2900,27 @@ static struct clk mcbsp4_fck = {/* More information: ARM Cortex-A8 Technical Reference Manual, sect 10.1 */ -static const struct clksel_rate emu_src_sys_rates[] = { +static struct clksel_rate emu_src_sys_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_3XXX }, { .div =0 }, }; -static const struct clksel_rate emu_src_core_rates[] = { +static struct clksel_rate emu_src_core_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_3XXX }, { .div =0 }, }; -static const struct clksel_rate emu_src_per_rates[] = { +static struct clksel_rate emu_src_per_rates[] = { { .div =1 , .val =2 , .flags =RATE_IN_3XXX }, { .div =0 }, }; -static const struct clksel_rate emu_src_mpu_rates[] = { +static struct clksel_rate emu_src_mpu_rates[] = { { .div =1 , .val =3 , .flags =RATE_IN_3XXX }, { .div =0 }, }; -static const struct clksel emu_src_clksel[] = { +static struct clksel emu_src_clksel[] = { { .parent = &sys_ck, .rates = emu_src_sys_rates }, { .parent = &emu_core_alwon_ck, .rates = emu_src_core_rates }, { .parent = &emu_per_alwon_ck, .rates = emu_src_per_rates },@@ -2944,7 +2944,7 @@ static struct clk emu_src_ck = { .recalc = &omap2_clksel_recalc, }; -static const struct clksel_rate pclk_emu_rates[] = { +static struct clksel_rate pclk_emu_rates[] = { { .div =2 , .val =2 , .flags =RATE_IN_3XXX }, { .div =3 , .val =3 , .flags =RATE_IN_3XXX }, { .div =4 , .val =4 , .flags =RATE_IN_3XXX },@@ -2952,7 +2952,7 @@ static const struct clksel_rate pclk_emu_rates[] = { { .div = 0 }, }; -static const struct clksel pclk_emu_clksel[] = { +static struct clksel pclk_emu_clksel[] = { { .parent = &emu_src_ck, .rates = pclk_emu_rates }, { .parent =NULL }, };@@ -2968,14 +2968,14 @@ static struct clk pclk_fck = { .recalc = &omap2_clksel_recalc, }; -static const struct clksel_rate pclkx2_emu_rates[] = { +static struct clksel_rate pclkx2_emu_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_3XXX }, { .div =2 , .val =2 , .flags =RATE_IN_3XXX }, { .div =3 , .val =3 , .flags =RATE_IN_3XXX }, { .div =0 }, }; -static const struct clksel pclkx2_emu_clksel[] = { +static struct clksel pclkx2_emu_clksel[] = { { .parent = &emu_src_ck, .rates = pclkx2_emu_rates }, { .parent =NULL }, };@@ -2991,7 +2991,7 @@ static struct clk pclkx2_fck = { .recalc = &omap2_clksel_recalc, }; -static const struct clksel atclk_emu_clksel[] = { +static struct clksel atclk_emu_clksel[] = { { .parent = &emu_src_ck, .rates = div2_rates }, { .parent =NULL }, };@@ -3018,14 +3018,14 @@ static struct clk traceclk_src_fck = { .recalc = &omap2_clksel_recalc, }; -static const struct clksel_rate traceclk_rates[] = { +static struct clksel_rate traceclk_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_3XXX }, { .div =2 , .val =2 , .flags =RATE_IN_3XXX }, { .div =4 , .val =4 , .flags =RATE_IN_3XXX }, { .div =0 }, }; -static const struct clksel traceclk_clksel[] = { +static struct clksel traceclk_clksel[] = { { .parent = &traceclk_src_fck, .rates = traceclk_rates }, { .parent =NULL }, };arch/arm/mach-omap2/clock44xx_data.c +68
-68@@ -127,47 +127,47 @@ static struct clk virt_38400000_ck = { .rate = 38400000, }; -static const struct clksel_rate div_1_0_rates[] = { +static struct clksel_rate div_1_0_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_4430 }, { .div =0 }, }; -static const struct clksel_rate div_1_1_rates[] = { +static struct clksel_rate div_1_1_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_4430 }, { .div =0 }, }; -static const struct clksel_rate div_1_2_rates[] = { +static struct clksel_rate div_1_2_rates[] = { { .div =1 , .val =2 , .flags =RATE_IN_4430 }, { .div =0 }, }; -static const struct clksel_rate div_1_3_rates[] = { +static struct clksel_rate div_1_3_rates[] = { { .div =1 , .val =3 , .flags =RATE_IN_4430 }, { .div =0 }, }; -static const struct clksel_rate div_1_4_rates[] = { +static struct clksel_rate div_1_4_rates[] = { { .div =1 , .val =4 , .flags =RATE_IN_4430 }, { .div =0 }, }; -static const struct clksel_rate div_1_5_rates[] = { +static struct clksel_rate div_1_5_rates[] = { { .div =1 , .val =5 , .flags =RATE_IN_4430 }, { .div =0 }, }; -static const struct clksel_rate div_1_6_rates[] = { +static struct clksel_rate div_1_6_rates[] = { { .div =1 , .val =6 , .flags =RATE_IN_4430 }, { .div =0 }, }; -static const struct clksel_rate div_1_7_rates[] = { +static struct clksel_rate div_1_7_rates[] = { { .div =1 , .val =7 , .flags =RATE_IN_4430 }, { .div =0 }, }; -static const struct clksel sys_clkin_sel[] = { +static struct clksel sys_clkin_sel[] = { { .parent = &virt_12000000_ck, .rates = div_1_1_rates }, { .parent = &virt_13000000_ck, .rates = div_1_2_rates }, { .parent = &virt_16800000_ck, .rates = div_1_3_rates },@@ -221,7 +221,7 @@ static struct clk xclk60motg_ck = {/* Module clocks and DPLL outputs */ -static const struct clksel abe_dpll_bypass_clk_mux_sel[] = { +static struct clksel abe_dpll_bypass_clk_mux_sel[] = { { .parent = &sys_clkin_ck, .rates = div_1_0_rates }, { .parent = &sys_32k_ck, .rates = div_1_1_rates }, { .parent =NULL },@@ -283,7 +283,7 @@ static struct clk dpll_abe_x2_ck = { .recalc = &omap3_clkoutx2_recalc, }; -static const struct clksel_rate div31_1to31_rates[] = { +static struct clksel_rate div31_1to31_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_4430 }, { .div =2 , .val =2 , .flags =RATE_IN_4430 }, { .div =3 , .val =3 , .flags =RATE_IN_4430 },@@ -318,7 +318,7 @@ static const struct clksel_rate div31_1to31_rates[] = { { .div = 0 }, }; -static const struct clksel dpll_abe_m2x2_div[] = { +static struct clksel dpll_abe_m2x2_div[] = { { .parent = &dpll_abe_x2_ck, .rates = div31_1to31_rates }, { .parent =NULL }, };@@ -343,14 +343,14 @@ static struct clk abe_24m_fclk = { .recalc = &omap_fixed_divisor_recalc, }; -static const struct clksel_rate div3_1to4_rates[] = { +static struct clksel_rate div3_1to4_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_4430 }, { .div =2 , .val =1 , .flags =RATE_IN_4430 }, { .div =4 , .val =2 , .flags =RATE_IN_4430 }, { .div =0 }, }; -static const struct clksel abe_clk_div[] = { +static struct clksel abe_clk_div[] = { { .parent = &dpll_abe_m2x2_ck, .rates = div3_1to4_rates }, { .parent =NULL }, };@@ -367,13 +367,13 @@ static struct clk abe_clk = { .set_rate = &omap2_clksel_set_rate, }; -static const struct clksel_rate div2_1to2_rates[] = { +static struct clksel_rate div2_1to2_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_4430 }, { .div =2 , .val =1 , .flags =RATE_IN_4430 }, { .div =0 }, }; -static const struct clksel aess_fclk_div[] = { +static struct clksel aess_fclk_div[] = { { .parent = &abe_clk, .rates = div2_1to2_rates }, { .parent =NULL }, };@@ -402,7 +402,7 @@ static struct clk dpll_abe_m3x2_ck = { .set_rate = &omap2_clksel_set_rate, }; -static const struct clksel core_hsd_byp_clk_mux_sel[] = { +static struct clksel core_hsd_byp_clk_mux_sel[] = { { .parent = &sys_clkin_ck, .rates = div_1_0_rates }, { .parent = &dpll_abe_m3x2_ck, .rates = div_1_1_rates }, { .parent =NULL },@@ -455,7 +455,7 @@ static struct clk dpll_core_x2_ck = { .recalc = &omap3_clkoutx2_recalc, }; -static const struct clksel dpll_core_m6x2_div[] = { +static struct clksel dpll_core_m6x2_div[] = { { .parent = &dpll_core_x2_ck, .rates = div31_1to31_rates }, { .parent =NULL }, };@@ -472,7 +472,7 @@ static struct clk dpll_core_m6x2_ck = { .set_rate = &omap2_clksel_set_rate, }; -static const struct clksel dbgclk_mux_sel[] = { +static struct clksel dbgclk_mux_sel[] = { { .parent = &sys_clkin_ck, .rates = div_1_0_rates }, { .parent = &dpll_core_m6x2_ck, .rates = div_1_1_rates }, { .parent =NULL },@@ -485,7 +485,7 @@ static struct clk dbgclk_mux_ck = { .recalc = &followparent_recalc, }; -static const struct clksel dpll_core_m2_div[] = { +static struct clksel dpll_core_m2_div[] = { { .parent = &dpll_core_ck, .rates = div31_1to31_rates }, { .parent =NULL }, };@@ -522,7 +522,7 @@ static struct clk dpll_core_m5x2_ck = { .set_rate = &omap2_clksel_set_rate, }; -static const struct clksel div_core_div[] = { +static struct clksel div_core_div[] = { { .parent = &dpll_core_m5x2_ck, .rates = div2_1to2_rates }, { .parent =NULL }, };@@ -539,7 +539,7 @@ static struct clk div_core_ck = { .set_rate = &omap2_clksel_set_rate, }; -static const struct clksel_rate div4_1to8_rates[] = { +static struct clksel_rate div4_1to8_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_4430 }, { .div =2 , .val =1 , .flags =RATE_IN_4430 }, { .div =4 , .val =2 , .flags =RATE_IN_4430 },@@ -547,7 +547,7 @@ static const struct clksel_rate div4_1to8_rates[] = { { .div = 0 }, }; -static const struct clksel div_iva_hs_clk_div[] = { +static struct clksel div_iva_hs_clk_div[] = { { .parent = &dpll_core_m5x2_ck, .rates = div4_1to8_rates }, { .parent =NULL }, };@@ -596,7 +596,7 @@ static struct clk dll_clk_div_ck = { .recalc = &omap_fixed_divisor_recalc, }; -static const struct clksel dpll_abe_m2_div[] = { +static struct clksel dpll_abe_m2_div[] = { { .parent = &dpll_abe_ck, .rates = div31_1to31_rates }, { .parent =NULL }, };@@ -639,7 +639,7 @@ static struct clk dpll_core_m7x2_ck = { .set_rate = &omap2_clksel_set_rate, }; -static const struct clksel iva_hsd_byp_clk_mux_sel[] = { +static struct clksel iva_hsd_byp_clk_mux_sel[] = { { .parent = &sys_clkin_ck, .rates = div_1_0_rates }, { .parent = &div_iva_hs_clk, .rates = div_1_1_rates }, { .parent =NULL },@@ -694,7 +694,7 @@ static struct clk dpll_iva_x2_ck = { .recalc = &omap3_clkoutx2_recalc, }; -static const struct clksel dpll_iva_m4x2_div[] = { +static struct clksel dpll_iva_m4x2_div[] = { { .parent = &dpll_iva_x2_ck, .rates = div31_1to31_rates }, { .parent =NULL }, };@@ -754,7 +754,7 @@ static struct clk dpll_mpu_ck = { .set_rate = &omap3_noncore_dpll_set_rate, }; -static const struct clksel dpll_mpu_m2_div[] = { +static struct clksel dpll_mpu_m2_div[] = { { .parent = &dpll_mpu_ck, .rates = div31_1to31_rates }, { .parent =NULL }, };@@ -779,7 +779,7 @@ static struct clk per_hs_clk_div_ck = { .recalc = &omap_fixed_divisor_recalc, }; -static const struct clksel per_hsd_byp_clk_mux_sel[] = { +static struct clksel per_hsd_byp_clk_mux_sel[] = { { .parent = &sys_clkin_ck, .rates = div_1_0_rates }, { .parent = &per_hs_clk_div_ck, .rates = div_1_1_rates }, { .parent =NULL },@@ -827,7 +827,7 @@ static struct clk dpll_per_ck = { .set_rate = &omap3_noncore_dpll_set_rate, }; -static const struct clksel dpll_per_m2_div[] = { +static struct clksel dpll_per_m2_div[] = { { .parent = &dpll_per_ck, .rates = div31_1to31_rates }, { .parent =NULL }, };@@ -851,7 +851,7 @@ static struct clk dpll_per_x2_ck = { .recalc = &omap3_clkoutx2_recalc, }; -static const struct clksel dpll_per_m2x2_div[] = { +static struct clksel dpll_per_m2x2_div[] = { { .parent = &dpll_per_x2_ck, .rates = div31_1to31_rates }, { .parent =NULL }, };@@ -969,7 +969,7 @@ static struct clk dpll_unipro_x2_ck = { .recalc = &omap3_clkoutx2_recalc, }; -static const struct clksel dpll_unipro_m2x2_div[] = { +static struct clksel dpll_unipro_m2x2_div[] = { { .parent = &dpll_unipro_x2_ck, .rates = div31_1to31_rates }, { .parent =NULL }, };@@ -1033,7 +1033,7 @@ static struct clk dpll_usb_clkdcoldo_ck = { .recalc = &followparent_recalc, }; -static const struct clksel dpll_usb_m2_div[] = { +static struct clksel dpll_usb_m2_div[] = { { .parent = &dpll_usb_ck, .rates = div31_1to31_rates }, { .parent =NULL }, };@@ -1050,7 +1050,7 @@ static struct clk dpll_usb_m2_ck = { .set_rate = &omap2_clksel_set_rate, }; -static const struct clksel ducati_clk_mux_sel[] = { +static struct clksel ducati_clk_mux_sel[] = { { .parent = &div_core_ck, .rates = div_1_0_rates }, { .parent = &dpll_per_m6x2_ck, .rates = div_1_1_rates }, { .parent =NULL },@@ -1091,13 +1091,13 @@ static struct clk func_24mc_fclk = { .recalc = &omap_fixed_divisor_recalc, }; -static const struct clksel_rate div2_4to8_rates[] = { +static struct clksel_rate div2_4to8_rates[] = { { .div =4 , .val =0 , .flags =RATE_IN_4430 }, { .div =8 , .val =1 , .flags =RATE_IN_4430 }, { .div =0 }, }; -static const struct clksel func_48m_fclk_div[] = { +static struct clksel func_48m_fclk_div[] = { { .parent = &dpll_per_m2x2_ck, .rates = div2_4to8_rates }, { .parent =NULL }, };@@ -1122,13 +1122,13 @@ static struct clk func_48mc_fclk = { .recalc = &omap_fixed_divisor_recalc, }; -static const struct clksel_rate div2_2to4_rates[] = { +static struct clksel_rate div2_2to4_rates[] = { { .div =2 , .val =0 , .flags =RATE_IN_4430 }, { .div =4 , .val =1 , .flags =RATE_IN_4430 }, { .div =0 }, }; -static const struct clksel func_64m_fclk_div[] = { +static struct clksel func_64m_fclk_div[] = { { .parent = &dpll_per_m4x2_ck, .rates = div2_2to4_rates }, { .parent =NULL }, };@@ -1145,7 +1145,7 @@ static struct clk func_64m_fclk = { .set_rate = &omap2_clksel_set_rate, }; -static const struct clksel func_96m_fclk_div[] = { +static struct clksel func_96m_fclk_div[] = { { .parent = &dpll_per_m2x2_ck, .rates = div2_2to4_rates }, { .parent =NULL }, };@@ -1162,7 +1162,7 @@ static struct clk func_96m_fclk = { .set_rate = &omap2_clksel_set_rate, }; -static const struct clksel hsmmc6_fclk_sel[] = { +static struct clksel hsmmc6_fclk_sel[] = { { .parent = &func_64m_fclk, .rates = div_1_0_rates }, { .parent = &func_96m_fclk, .rates = div_1_1_rates }, { .parent =NULL },@@ -1175,13 +1175,13 @@ static struct clk hsmmc6_fclk = { .recalc = &followparent_recalc, }; -static const struct clksel_rate div2_1to8_rates[] = { +static struct clksel_rate div2_1to8_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_4430 }, { .div =8 , .val =1 , .flags =RATE_IN_4430 }, { .div =0 }, }; -static const struct clksel init_60m_fclk_div[] = { +static struct clksel init_60m_fclk_div[] = { { .parent = &dpll_usb_m2_ck, .rates = div2_1to8_rates }, { .parent =NULL }, };@@ -1198,7 +1198,7 @@ static struct clk init_60m_fclk = { .set_rate = &omap2_clksel_set_rate, }; -static const struct clksel l3_div_div[] = { +static struct clksel l3_div_div[] = { { .parent = &div_core_ck, .rates = div2_1to2_rates }, { .parent =NULL }, };@@ -1215,7 +1215,7 @@ static struct clk l3_div_ck = { .set_rate = &omap2_clksel_set_rate, }; -static const struct clksel l4_div_div[] = { +static struct clksel l4_div_div[] = { { .parent = &l3_div_ck, .rates = div2_1to2_rates }, { .parent =NULL }, };@@ -1240,7 +1240,7 @@ static struct clk lp_clk_div_ck = { .recalc = &omap_fixed_divisor_recalc, }; -static const struct clksel l4_wkup_clk_mux_sel[] = { +static struct clksel l4_wkup_clk_mux_sel[] = { { .parent = &sys_clkin_ck, .rates = div_1_0_rates }, { .parent = &lp_clk_div_ck, .rates = div_1_1_rates }, { .parent =NULL },@@ -1257,7 +1257,7 @@ static struct clk l4_wkup_clk_mux_ck = { .recalc = &omap2_clksel_recalc, }; -static const struct clksel per_abe_nc_fclk_div[] = { +static struct clksel per_abe_nc_fclk_div[] = { { .parent = &dpll_abe_m2_ck, .rates = div2_1to2_rates }, { .parent =NULL }, };@@ -1274,7 +1274,7 @@ static struct clk per_abe_nc_fclk = { .set_rate = &omap2_clksel_set_rate, }; -static const struct clksel mcasp2_fclk_sel[] = { +static struct clksel mcasp2_fclk_sel[] = { { .parent = &func_96m_fclk, .rates = div_1_0_rates }, { .parent = &per_abe_nc_fclk, .rates = div_1_1_rates }, { .parent =NULL },@@ -1309,7 +1309,7 @@ static struct clk per_abe_24m_fclk = { .recalc = &omap_fixed_divisor_recalc, }; -static const struct clksel pmd_stm_clock_mux_sel[] = { +static struct clksel pmd_stm_clock_mux_sel[] = { { .parent = &sys_clkin_ck, .rates = div_1_0_rates }, { .parent = &dpll_core_m6x2_ck, .rates = div_1_1_rates }, { .parent = &tie_low_clock_ck, .rates = div_1_2_rates },@@ -1330,7 +1330,7 @@ static struct clk pmd_trace_clk_mux_ck = { .recalc = &followparent_recalc, }; -static const struct clksel syc_clk_div_div[] = { +static struct clksel syc_clk_div_div[] = { { .parent = &sys_clkin_ck, .rates = div2_1to2_rates }, { .parent =NULL }, };@@ -1399,7 +1399,7 @@ static struct clk des3des_fck = { .recalc = &followparent_recalc, }; -static const struct clksel dmic_sync_mux_sel[] = { +static struct clksel dmic_sync_mux_sel[] = { { .parent = &abe_24m_fclk, .rates = div_1_0_rates }, { .parent = &syc_clk_div_ck, .rates = div_1_1_rates }, { .parent = &func_24m_clk, .rates = div_1_2_rates },@@ -1417,7 +1417,7 @@ static struct clk dmic_sync_mux_ck = { .recalc = &omap2_clksel_recalc, }; -static const struct clksel func_dmic_abe_gfclk_sel[] = { +static struct clksel func_dmic_abe_gfclk_sel[] = { { .parent = &dmic_sync_mux_ck, .rates = div_1_0_rates }, { .parent = &pad_clks_ck, .rates = div_1_1_rates }, { .parent = &slimbus_clk, .rates = div_1_2_rates },@@ -1531,7 +1531,7 @@ static struct clk emif2_fck = { .recalc = &followparent_recalc, }; -static const struct clksel fdif_fclk_div[] = { +static struct clksel fdif_fclk_div[] = { { .parent = &dpll_per_m4x2_ck, .rates = div3_1to4_rates }, { .parent =NULL }, };@@ -1692,7 +1692,7 @@ static struct clk gpmc_ick = { .recalc = &followparent_recalc, }; -static const struct clksel sgx_clk_mux_sel[] = { +static struct clksel sgx_clk_mux_sel[] = { { .parent = &dpll_core_m7x2_ck, .rates = div_1_0_rates }, { .parent = &dpll_per_m7x2_ck, .rates = div_1_1_rates }, { .parent =NULL },@@ -1723,7 +1723,7 @@ static struct clk hdq1w_fck = { .recalc = &followparent_recalc, }; -static const struct clksel hsi_fclk_div[] = { +static struct clksel hsi_fclk_div[] = { { .parent = &dpll_per_m2x2_ck, .rates = div3_1to4_rates }, { .parent =NULL }, };@@ -1867,7 +1867,7 @@ static struct clk mcasp_sync_mux_ck = { .recalc = &omap2_clksel_recalc, }; -static const struct clksel func_mcasp_abe_gfclk_sel[] = { +static struct clksel func_mcasp_abe_gfclk_sel[] = { { .parent = &mcasp_sync_mux_ck, .rates = div_1_0_rates }, { .parent = &pad_clks_ck, .rates = div_1_1_rates }, { .parent = &slimbus_clk, .rates = div_1_2_rates },@@ -1900,7 +1900,7 @@ static struct clk mcbsp1_sync_mux_ck = { .recalc = &omap2_clksel_recalc, }; -static const struct clksel func_mcbsp1_gfclk_sel[] = { +static struct clksel func_mcbsp1_gfclk_sel[] = { { .parent = &mcbsp1_sync_mux_ck, .rates = div_1_0_rates }, { .parent = &pad_clks_ck, .rates = div_1_1_rates }, { .parent = &slimbus_clk, .rates = div_1_2_rates },@@ -1933,7 +1933,7 @@ static struct clk mcbsp2_sync_mux_ck = { .recalc = &omap2_clksel_recalc, }; -static const struct clksel func_mcbsp2_gfclk_sel[] = { +static struct clksel func_mcbsp2_gfclk_sel[] = { { .parent = &mcbsp2_sync_mux_ck, .rates = div_1_0_rates }, { .parent = &pad_clks_ck, .rates = div_1_1_rates }, { .parent = &slimbus_clk, .rates = div_1_2_rates },@@ -1966,7 +1966,7 @@ static struct clk mcbsp3_sync_mux_ck = { .recalc = &omap2_clksel_recalc, }; -static const struct clksel func_mcbsp3_gfclk_sel[] = { +static struct clksel func_mcbsp3_gfclk_sel[] = { { .parent = &mcbsp3_sync_mux_ck, .rates = div_1_0_rates }, { .parent = &pad_clks_ck, .rates = div_1_1_rates }, { .parent = &slimbus_clk, .rates = div_1_2_rates },@@ -1999,7 +1999,7 @@ static struct clk mcbsp4_sync_mux_ck = { .recalc = &omap2_clksel_recalc, }; -static const struct clksel per_mcbsp4_gfclk_sel[] = { +static struct clksel per_mcbsp4_gfclk_sel[] = { { .parent = &mcbsp4_sync_mux_ck, .rates = div_1_0_rates }, { .parent = &pad_clks_ck, .rates = div_1_1_rates }, { .parent =NULL },@@ -2401,7 +2401,7 @@ static struct clk timer4_fck = { .clkdm_name = "l4_per_clkdm", }; -static const struct clksel timer5_sync_mux_sel[] = { +static struct clksel timer5_sync_mux_sel[] = { { .parent = &syc_clk_div_ck, .rates = div_1_0_rates }, { .parent = &sys_32k_ck, .rates = div_1_1_rates }, { .parent =NULL },@@ -2532,7 +2532,7 @@ static struct clk usb_host_fs_fck = { .recalc = &followparent_recalc, }; -static const struct clksel utmi_p1_gfclk_sel[] = { +static struct clksel utmi_p1_gfclk_sel[] = { { .parent = &init_60m_fclk, .rates = div_1_0_rates }, { .parent = &xclk60mhsp1_ck, .rates = div_1_1_rates }, { .parent =NULL },@@ -2559,7 +2559,7 @@ static struct clk usb_host_hs_utmi_p1_clk = { .recalc = &followparent_recalc, }; -static const struct clksel utmi_p2_gfclk_sel[] = { +static struct clksel utmi_p2_gfclk_sel[] = { { .parent = &init_60m_fclk, .rates = div_1_0_rates }, { .parent = &xclk60mhsp2_ck, .rates = div_1_1_rates }, { .parent =NULL },@@ -2656,7 +2656,7 @@ static struct clk usb_host_hs_fck = { .recalc = &followparent_recalc, }; -static const struct clksel otg_60m_gfclk_sel[] = { +static struct clksel otg_60m_gfclk_sel[] = { { .parent = &utmi_phy_clkout_ck, .rates = div_1_0_rates }, { .parent = &xclk60motg_ck, .rates = div_1_1_rates }, { .parent =NULL },@@ -2743,13 +2743,13 @@ static struct clk usb_tll_hs_ick = { .recalc = &followparent_recalc, }; -static const struct clksel_rate div2_14to18_rates[] = { +static struct clksel_rate div2_14to18_rates[] = { { .div =14 , .val =0 , .flags =RATE_IN_4430 }, { .div =18 , .val =1 , .flags =RATE_IN_4430 }, { .div =0 }, }; -static const struct clksel usim_fclk_div[] = { +static struct clksel usim_fclk_div[] = { { .parent = &dpll_per_m4x2_ck, .rates = div2_14to18_rates }, { .parent =NULL }, };@@ -2807,7 +2807,7 @@ static struct clk wd_timer3_fck = { };/* Remaining optional clocks */ -static const struct clksel stm_clk_div_div[] = { +static struct clksel stm_clk_div_div[] = { { .parent = &pmd_stm_clock_mux_ck, .rates = div3_1to4_rates }, { .parent =NULL }, };@@ -2824,7 +2824,7 @@ static struct clk stm_clk_div_ck = { .set_rate = &omap2_clksel_set_rate, }; -static const struct clksel trace_clk_div_div[] = { +static struct clksel trace_clk_div_div[] = { { .parent = &pmd_trace_clk_mux_ck, .rates = div3_1to4_rates }, { .parent =NULL }, };@@ -2843,7 +2843,7 @@ static struct clk trace_clk_div_ck = {/* SCRM aux clk nodes */ -static const struct clksel auxclk_sel[] = { +static struct clksel auxclk_sel[] = { { .parent = &sys_clkin_ck, .rates = div_1_0_rates }, { .parent = &dpll_core_m3x2_ck, .rates = div_1_1_rates }, { .parent = &dpll_per_m3x2_ck, .rates = div_1_2_rates },@@ -2927,7 +2927,7 @@ static struct clk auxclk5_ck = { .enable_bit = OMAP4_ENABLE_SHIFT, }; -static const struct clksel auxclkreq_sel[] = { +static struct clksel auxclkreq_sel[] = { { .parent = &auxclk0_ck, .rates = div_1_0_rates }, { .parent = &auxclk1_ck, .rates = div_1_1_rates }, { .parent = &auxclk2_ck, .rates = div_1_2_rates },arch/arm/plat-omap/clock.c +41
-7@@ -308,6 +308,16 @@ void clk_enable_init_clocks(void) } } +static struct clk *_omap_clk_get_by_name (const char *name) +{ +struct clk *c; + +list_for_each_entry (c, &clocks, node) +if (!strcmp (c->name, name)) +return c; +return NULL ; +} +/** * omap_clk_get_by_name - locate OMAP struct clk by its name * @name: name of the struct clk to locate @@ -318,21 +328,45 @@ void clk_enable_init_clocks(void)*/ struct clk *omap_clk_get_by_name (const char *name) { -struct clk *c;struct clk *ret =NULL ;mutex_lock (&clocks_mutex); + ret =_omap_clk_get_by_name (name); +mutex_unlock (&clocks_mutex); + +return ret; +} + +static inline void omap_init_dpll_data_clk_pts (struct dpll_data *dd) +{ +if (!dd->clk_ref && dd->clk_ref_name) + dd->clk_ref =_omap_clk_get_by_name (dd->clk_ref_name); +if (!dd->clk_bypass && dd->clk_bypass_name) + dd->clk_bypass =_omap_clk_get_by_name (dd->clk_bypass_name); +} + +static inline void omap_init_clksel_clk_pts (struct clksel *clks) +{ +if (!clks->parent && clks->parent_name) + clks->parent =_omap_clk_get_by_name (clks->parent_name); +} + +void omap_init_clk_pts (void ) +{ +struct clk *c; + +mutex_lock (&clocks_mutex);list_for_each_entry (c, &clocks, node) { -if (!strcmp (c->name, name)) { - ret = c; -break ; - } +if (!c->parent && c->parent_name) + c->parent =_omap_clk_get_by_name (c->parent_name); +if (c->dpll_data) +omap_init_dpll_data_clk_pts (c->dpll_data); +if (c->clksel) +omap_init_clksel_clk_pts (c->clksel); }mutex_unlock (&clocks_mutex); - -return ret; }/* arch/arm/plat-omap/include/plat/clock.h +9
-2@@ -85,6 +85,7 @@ struct clksel_rate {/** * struct clksel - available parent clocks, and a pointer to their divisors * @parent: struct clk * to a possible parent clock +* @parent_name: Name of the possible parent clock * @rates: available divisors for this parent clock * * A struct clksel is always associated with one or more struct clks @@ -92,6 +93,7 @@ struct clksel_rate {*/ struct clksel {struct clk *parent; +const char *parent_name;const struct clksel_rate *rates; };@@ -101,7 +103,9 @@ struct clksel {* @mult_mask: mask of the DPLL M bitfield in @mult_div1_reg * @div1_mask: mask of the DPLL N bitfield in @mult_div1_reg * @clk_bypass: struct clk pointer to the clock's bypass clock input +* @clk_bypass_name: Name of the clock's bypass clock input * @clk_ref: struct clk pointer to the clock's reference clock input +* @clk_ref_name: Name of the clock's reference clock input * @control_reg: register containing the DPLL mode bitfield * @enable_mask: mask of the DPLL mode bitfield in @control_reg * @rate_tolerance: maximum variance allowed from target rate (in Hz) @@ -143,7 +147,9 @@ struct dpll_data {u32 mult_mask;u32 div1_mask;struct clk *clk_bypass; +const char *clk_bypass_name;struct clk *clk_ref; +const char *clk_ref_name;void __iomem *control_reg;u32 enable_mask;unsigned int rate_tolerance;@@ -230,6 +236,7 @@ struct clk {const struct clkops *ops;const char *name;struct clk *parent; +const char *parent_name;struct list_head children;struct list_head sibling;/* node for children */ unsigned long rate;@@ -245,7 +252,7 @@ struct clk {#ifdef CONFIG_ARCH_OMAP2PLUS void __iomem *clksel_reg;u32 clksel_mask; -const struct clksel *clksel; +struct clksel *clksel;struct dpll_data *dpll_data;const char *clkdm_name;struct clockdomain *clkdm;@@ -292,7 +299,7 @@ extern void clk_init_cpufreq_table(struct cpufreq_frequency_table **table);extern void clk_exit_cpufreq_table (struct cpufreq_frequency_table **table);#endif extern struct clk *omap_clk_get_by_name (const char *name); - +extern void omap_init_clk_pts (void );extern const struct clkops clkops_null;extern struct clk dummy_ck;
RE: [RFC 1/3] OMAP: clocks: Use clk names instead of clk pointers
Hi Kevin,
Quoted 6 lines
-----Original Message-----
From: Kevin Hilman [mailto:[email protected]]
Sent: Tuesday, January 25, 2011 3:38 AM
To: Rajendra Nayak
Cc: [email protected]; [email protected]
Subject: Re: [RFC 1/3] OMAP: clocks: Use clk names instead of clk
pointers
Quoted 19 lines
Quoted 16 lines · Rajendra Nayak
There are various instances of clk pointers being embedded within structures in the clock framework to refer to clk parents, reference clocks, bypass clocks etc.
The right way to reference these is by their name and not by embedding direct pointers to these clks.Hence make provision to be able to provide clock names to refer to parents and bypass/ref clks and populate the clk pointers at runtime.
This requires the const qualifier to be dropped for struct clksel within struct clk and hence needs clksel struct definitions to be changed in all clock*_data.c files.
Quoted 7 lines
Quoted 1 line
Signed-off-by Rajendra Nayak <[email protected]>I think the changelog needs a little more description about when the names are used instead of the pointers. It looks like the names are only used at init time to select the right pointers, but the rest of the framework continues to use pointers as before, right? This isnt' very clear from the changelog.
Right, the basic idea was to prevent the binding of clk pointers at compile time and instead do it at runtime. The rest of the code which uses pointers would still go ahead and use them.
This is similar to what happens in other frameworks like hwmod (which has the main_clk name populated and runtime maps to the relevant clk pointer) or clock framework itself (to identify the clockdomains associated with the clks)
Also the patch leaves all the existing clk pointer associations at compile time as is and only uses this reference by name for a few nodes that get added in the later patches in the series.
If the approach seems ok, then a patch to replace all the existing pointer based referencing with the name based referencing can also be pushed.
Regards,
Rajendra
Quoted 8 lines
Kevin
Quoted 4 lines
--- arch/arm/mach-omap2/clock2420_data.c | 86 +++++++++--------- arch/arm/mach-omap2/clock2430_data.c | 88 ++++++++++---------- arch/arm/mach-omap2/clock3xxx_data.c | 144
+++++++++++++++---------------
Quoted 1 line
Quoted 1 line
arch/arm/mach-omap2/clock44xx_data.c | 136
+++++++++++++++---------------
Quoted 5 lines
Review
Quoted 5 lines
arch/arm/plat-omap/clock.c | 48 +++++++++-- arch/arm/plat-omap/include/plat/clock.h | 11 ++- 6 files changed, 277 insertions(+), 236 deletions(-)(quoted diff) +0
-0
b/arch/arm/mach-omap2/clock2420_data.c
Quoted 82 lines
Quoted 82 lines
index 0a992bc..5662e51 100644
arch/arm/mach-omap2/clock2420_data.c +11
-11@@ -161,17 +161,17 @@ static struct clk apll54_ck = {/* func_54m_ck */ -static const struct clksel_rate func_54m_apll54_rates[] = { +static struct clksel_rate func_54m_apll54_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_24XX }, { .div =0 }, }; -static const struct clksel_rate func_54m_alt_rates[] = { +static struct clksel_rate func_54m_alt_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =0 }, }; -static const struct clksel func_54m_clksel[] = { +static struct clksel func_54m_clksel[] = { { .parent = &apll54_ck, .rates = func_54m_apll54_rates, }, { .parent = &alt_ck, .rates = func_54m_alt_rates, }, { .parent =NULL },@@ -207,17 +207,17 @@ static struct clk func_96m_ck = {/* func_48m_ck */ -static const struct clksel_rate func_48m_apll96_rates[] = { +static struct clksel_rate func_48m_apll96_rates[] = { { .div =2 , .val =0 , .flags =RATE_IN_24XX }, { .div =0 }, }; -static const struct clksel_rate func_48m_alt_rates[] = { +static struct clksel_rate func_48m_alt_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =0 }, }; -static const struct clksel func_48m_clksel[] = { +static struct clksel func_48m_clksel[] = { { .parent = &apll96_ck, .rates = func_48m_apll96_rates }, { .parent = &alt_ck, .rates = func_48m_alt_rates }, { .parent =NULL }@@ -262,27 +262,27 @@ static struct clk wdt1_osc_ck = {* harmless since access to those clocks are gated by the struct clk * flags fields, which mark them as 2420-only. */ -static const struct clksel_rate common_clkout_src_core_rates[] = { +static struct clksel_rate common_clkout_src_core_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel_rate common_clkout_src_sys_rates[] = { +static struct clksel_rate common_clkout_src_sys_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel_rate common_clkout_src_96m_rates[] = { +static struct clksel_rate common_clkout_src_96m_rates[] = { { .div =1 , .val =2 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel_rate common_clkout_src_54m_rates[] = { +static struct clksel_rate common_clkout_src_54m_rates[] = { { .div =1 , .val =3 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel common_clkout_src_clksel[] = { +static struct clksel common_clkout_src_clksel[] = { { .parent = &core_ck, .rates = common_clkout_src_core_rates }, { .parent = &sys_ck, .rates = common_clkout_src_sys_rates }, { .parent = &func_96m_ck, .rates = common_clkout_src_96m_rates },@@ -306,7 +306,7 @@ static struct clk sys_clkout_src = { .set_rate = &omap2_clksel_set_rate };
Quoted 6 lines
arch/arm/mach-omap2/clock2420_data.c static const struct clksel_rate
Quoted 6 lines
arch/arm/mach-omap2/clock2420_data.c +1
-1-static const struct clksel_rate common_clkout_rates[] = { +static struct clksel_rate common_clkout_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_24XX }, { .div =2 , .val =1 , .flags =RATE_IN_24XX }, { .div =4 , .val =2 , .flags =RATE_IN_24XX },@@ -315,7 +315,7 @@ static const struct clksel_rate
common_clkout_rates[] = {
Quoted 12 lines
Quoted 12 lines
arch/arm/mach-omap2/clock2420_data.c +1
-1{ .div = 0 }, }; -static const struct clksel sys_clkout_clksel[] = { +static struct clksel sys_clkout_clksel[] = { { .parent = &sys_clkout_src, .rates = common_clkout_rates }, { .parent =NULL } };@@ -350,7 +350,7 @@ static struct clk sys_clkout2_src = { .set_rate = &omap2_clksel_set_rate };
Quoted 15 lines
arch/arm/mach-omap2/clock2420_data.c static const struct clksel_rate mpu_core_rates[] =
Quoted 15 lines
arch/arm/mach-omap2/clock2420_data.c +2
-2-static const struct clksel sys_clkout2_clksel[] = { +static struct clksel sys_clkout2_clksel[] = { { .parent = &sys_clkout2_src, .rates = common_clkout_rates }, { .parent =NULL } };@@ -390,7 +390,7 @@ static struct clk emul_ck = {* - Base divider comes from: CM_CLKSEL_MPU * */ -static const struct clksel_rate mpu_core_rates[] = { +static struct clksel_rate mpu_core_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =2 , .val =2 , .flags =RATE_IN_24XX }, { .div =4 , .val =4 , .flags =RATE_IN_242X },@@ -399,7 +399,7 @@ static const struct clksel_rate mpu_core_rates[] =
{
Quoted 18 lines
arch/arm/mach-omap2/clock2420_data.c static const struct clksel_rate
Quoted 18 lines
arch/arm/mach-omap2/clock2420_data.c +2
-2{ .div = 0 }, }; -static const struct clksel mpu_clksel[] = { +static struct clksel mpu_clksel[] = { { .parent = &core_ck, .rates = mpu_core_rates }, { .parent =NULL } };@@ -426,7 +426,7 @@ static struct clk mpu_ck = { /* Control cpu */* controls. The other branch gets further divided by 2 then possibly * routed into a synchronizer and out of clocks abc. */ -static const struct clksel_rate dsp_fck_core_rates[] = { +static struct clksel_rate dsp_fck_core_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =2 , .val =2 , .flags =RATE_IN_24XX }, { .div =3 , .val =3 , .flags =RATE_IN_24XX },@@ -437,7 +437,7 @@ static const struct clksel_rate
dsp_fck_core_rates[] = {
Quoted 19 lines
Quoted 19 lines
arch/arm/mach-omap2/clock2420_data.c +2
-2{ .div = 0 }, }; -static const struct clksel dsp_fck_clksel[] = { +static struct clksel dsp_fck_clksel[] = { { .parent = &core_ck, .rates = dsp_fck_core_rates }, { .parent =NULL } };@@ -456,13 +456,13 @@ static struct clk dsp_fck = { };/* DSP interface clock */ -static const struct clksel_rate dsp_irate_ick_rates[] = { +static struct clksel_rate dsp_irate_ick_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =2 , .val =2 , .flags =RATE_IN_24XX }, { .div =0 }, };
Quoted 7 lines
arch/arm/mach-omap2/clock2420_data.c static struct clk iva1_mpu_int_ifck = { · line 536
Quoted 7 lines
arch/arm/mach-omap2/clock2420_data.c +1
-1-static const struct clksel dsp_irate_ick_clksel[] = { +static struct clksel dsp_irate_ick_clksel[] = { { .parent = &dsp_fck, .rates = dsp_irate_ick_rates }, { .parent =NULL } };@@ -536,7 +536,7 @@ static struct clk iva1_mpu_int_ifck = {* may very well need notification when the clock changes. Currently
for low
Quoted 8 lines
arch/arm/mach-omap2/clock2420_data.c static const struct clksel_rate
Quoted 8 lines
arch/arm/mach-omap2/clock2420_data.c +1
-1* operating points, these are taken care of in sleep.S. */ -static const struct clksel_rate core_l3_core_rates[] = { +static struct clksel_rate core_l3_core_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =2 , .val =2 , .flags =RATE_IN_242X }, { .div =4 , .val =4 , .flags =RATE_IN_24XX },@@ -547,7 +547,7 @@ static const struct clksel_rate
core_l3_core_rates[] = {
Quoted 9 lines
arch/arm/mach-omap2/clock2420_data.c static struct clk core_l3_ck = { /* Used
Quoted 9 lines
arch/arm/mach-omap2/clock2420_data.c +1
-1{ .div = 0 } }; -static const struct clksel core_l3_clksel[] = { +static struct clksel core_l3_clksel[] = { { .parent = &core_ck, .rates = core_l3_core_rates }, { .parent =NULL } };@@ -564,14 +564,14 @@ static struct clk core_l3_ck = { /* Used
for ick and fck, interconnect */
Quoted 11 lines
Quoted 11 lines
arch/arm/mach-omap2/clock2420_data.c +1
-1};/* usb_l4_ick */ -static const struct clksel_rate usb_l4_ick_core_l3_rates[] = { +static struct clksel_rate usb_l4_ick_core_l3_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =2 , .val =2 , .flags =RATE_IN_24XX }, { .div =4 , .val =4 , .flags =RATE_IN_24XX }, { .div =0 } };
Quoted 6 lines
arch/arm/mach-omap2/clock2420_data.c static struct clk usb_l4_ick = { /* FS-USB
Quoted 6 lines
arch/arm/mach-omap2/clock2420_data.c +1
-1-static const struct clksel usb_l4_ick_clksel[] = { +static struct clksel usb_l4_ick_clksel[] = { { .parent = &core_l3_ck, .rates = usb_l4_ick_core_l3_rates }, { .parent =NULL }, };@@ -597,13 +597,13 @@ static struct clk usb_l4_ick = { /* FS-USB
interface clock */
Quoted 1 line
arch/arm/mach-omap2/clock2420_data.c static struct clk usb_l4_ick = { /* FS-USB · line 597
Quoted 1 line
arch/arm/mach-omap2/clock2420_data.c +0
-0* functional clocks. Fixed APLL functional source clocks are
managed in
Quoted 9 lines
Quoted 9 lines
arch/arm/mach-omap2/clock2420_data.c +1
-1* this domain. */ -static const struct clksel_rate l4_core_l3_rates[] = { +static struct clksel_rate l4_core_l3_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =2 , .val =2 , .flags =RATE_IN_24XX }, { .div =0 } };
Quoted 6 lines
arch/arm/mach-omap2/clock2420_data.c static struct clk l4_ck = { /* used
Quoted 6 lines
arch/arm/mach-omap2/clock2420_data.c +1
-1-static const struct clksel l4_clksel[] = { +static struct clksel l4_clksel[] = { { .parent = &core_l3_ck, .rates = l4_core_l3_rates }, { .parent =NULL } };@@ -627,7 +627,7 @@ static struct clk l4_ck = { /* used
both as an ick and fck */
Quoted 9 lines
arch/arm/mach-omap2/clock2420_data.c static const struct clksel_rate
Quoted 9 lines
arch/arm/mach-omap2/clock2420_data.c +1
-1* * ssr = core/1/2/3/4/5, sst = 1/2 ssr. */ -static const struct clksel_rate ssi_ssr_sst_fck_core_rates[] = { +static struct clksel_rate ssi_ssr_sst_fck_core_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =2 , .val =2 , .flags =RATE_IN_24XX }, { .div =3 , .val =3 , .flags =RATE_IN_24XX },@@ -637,7 +637,7 @@ static const struct clksel_rate
ssi_ssr_sst_fck_core_rates[] = {
Quoted 27 lines
Quoted 27 lines
arch/arm/mach-omap2/clock2420_data.c +3
-3{ .div = 0 } }; -static const struct clksel ssi_ssr_sst_fck_clksel[] = { +static struct clksel ssi_ssr_sst_fck_clksel[] = { { .parent = &core_ck, .rates = ssi_ssr_sst_fck_core_rates }, { .parent =NULL } };@@ -683,7 +683,7 @@ static struct clk ssi_l4_ick = {*/ /* This clksel struct is shared between gfx_3d_fck and gfx_2d_fck */ -static const struct clksel gfx_fck_clksel[] = { +static struct clksel gfx_fck_clksel[] = { { .parent = &core_l3_ck, .rates = gfx_l3_rates }, { .parent =NULL }, };@@ -736,12 +736,12 @@ static struct clk gfx_ick = {*/ /* XXX Add RATE_NOT_VALIDATED */ -static const struct clksel_rate dss1_fck_sys_rates[] = { +static struct clksel_rate dss1_fck_sys_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_24XX }, { .div =0 } };
Quoted 6 lines
arch/arm/mach-omap2/clock2420_data.c static const struct clksel_rate
Quoted 6 lines
arch/arm/mach-omap2/clock2420_data.c +1
-1-static const struct clksel_rate dss1_fck_core_rates[] = { +static struct clksel_rate dss1_fck_core_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =2 , .val =2 , .flags =RATE_IN_24XX }, { .div =3 , .val =3 , .flags =RATE_IN_24XX },@@ -755,7 +755,7 @@ static const struct clksel_rate
dss1_fck_core_rates[] = {
Quoted 24 lines
Quoted 24 lines
arch/arm/mach-omap2/clock2420_data.c +3
-3{ .div = 0 } }; -static const struct clksel dss1_fck_clksel[] = { +static struct clksel dss1_fck_clksel[] = { { .parent = &sys_ck, .rates = dss1_fck_sys_rates }, { .parent = &core_ck, .rates = dss1_fck_core_rates }, { .parent =NULL },@@ -785,17 +785,17 @@ static struct clk dss1_fck = { .recalc = &omap2_clksel_recalc, }; -static const struct clksel_rate dss2_fck_sys_rates[] = { +static struct clksel_rate dss2_fck_sys_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel_rate dss2_fck_48m_rates[] = { +static struct clksel_rate dss2_fck_48m_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =0 } };
Quoted 6 lines
arch/arm/mach-omap2/clock2420_data.c static struct clk dss_54m_fck = { /* Alt clk
Quoted 6 lines
arch/arm/mach-omap2/clock2420_data.c +1
-1-static const struct clksel dss2_fck_clksel[] = { +static struct clksel dss2_fck_clksel[] = { { .parent = &sys_ck, .rates = dss2_fck_sys_rates }, { .parent = &func_48m_ck, .rates = dss2_fck_48m_rates }, { .parent =NULL }@@ -831,12 +831,12 @@ static struct clk dss_54m_fck = { /* Alt clk
used in power management */
Quoted 1 line
arch/arm/mach-omap2/clock2420_data.c static struct clk dss_54m_fck = { /* Alt clk · line 831
Quoted 1 line
arch/arm/mach-omap2/clock2420_data.c +0
-0* here will likely have an L4 interface parent, and may have
multiple
Quoted 44 lines
Quoted 44 lines
arch/arm/mach-omap2/clock2420_data.c +6
-6* functional clock parents. */ -static const struct clksel_rate gpt_alt_rates[] = { +static struct clksel_rate gpt_alt_rates[] = { { .div =1 , .val =2 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel omap24xx_gpt_clksel[] = { +static struct clksel omap24xx_gpt_clksel[] = { { .parent = &func_32k_ck, .rates = gpt_32k_rates }, { .parent = &sys_ck, .rates = gpt_sys_rates }, { .parent = &alt_ck, .rates = gpt_alt_rates },@@ -1142,17 +1142,17 @@ static struct clk mcbsp1_ick = { .recalc = &followparent_recalc, }; -static const struct clksel_rate common_mcbsp_96m_rates[] = { +static struct clksel_rate common_mcbsp_96m_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel_rate common_mcbsp_mcbsp_rates[] = { +static struct clksel_rate common_mcbsp_mcbsp_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel mcbsp_fck_clksel[] = { +static struct clksel mcbsp_fck_clksel[] = { { .parent = &func_96m_ck, .rates = common_mcbsp_96m_rates }, { .parent = &mcbsp_clks, .rates = common_mcbsp_mcbsp_rates }, { .parent =NULL }@@ -1618,12 +1618,12 @@ static struct clk vlynq_ick = { .recalc = &followparent_recalc, }; -static const struct clksel_rate vlynq_fck_96m_rates[] = { +static struct clksel_rate vlynq_fck_96m_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_242X }, { .div =0 } };
Quoted 6 lines
arch/arm/mach-omap2/clock2420_data.c static const struct clksel_rate
Quoted 6 lines
arch/arm/mach-omap2/clock2420_data.c +1
-1-static const struct clksel_rate vlynq_fck_core_rates[] = { +static struct clksel_rate vlynq_fck_core_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_242X }, { .div =2 , .val =2 , .flags =RATE_IN_242X }, { .div =3 , .val =3 , .flags =RATE_IN_242X },@@ -1637,7 +1637,7 @@ static const struct clksel_rate
vlynq_fck_core_rates[] = {
Quoted 9 lines
Review
Quoted 9 lines
arch/arm/mach-omap2/clock2420_data.c +1
-1{ .div = 0 } }; -static const struct clksel vlynq_fck_clksel[] = { +static struct clksel vlynq_fck_clksel[] = { { .parent = &func_96m_ck, .rates = vlynq_fck_96m_rates }, { .parent = &core_ck, .rates = vlynq_fck_core_rates }, { .parent =NULL }(quoted diff) +0
-0
b/arch/arm/mach-omap2/clock2430_data.c
Quoted 103 lines
Quoted 103 lines
index c047dcd..6f08a57 100644
arch/arm/mach-omap2/clock2430_data.c +14
-14@@ -161,17 +161,17 @@ static struct clk apll54_ck = {/* func_54m_ck */ -static const struct clksel_rate func_54m_apll54_rates[] = { +static struct clksel_rate func_54m_apll54_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_24XX }, { .div =0 }, }; -static const struct clksel_rate func_54m_alt_rates[] = { +static struct clksel_rate func_54m_alt_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =0 }, }; -static const struct clksel func_54m_clksel[] = { +static struct clksel func_54m_clksel[] = { { .parent = &apll54_ck, .rates = func_54m_apll54_rates, }, { .parent = &alt_ck, .rates = func_54m_alt_rates, }, { .parent =NULL },@@ -198,17 +198,17 @@ static struct clk core_ck = { };/* func_96m_ck */ -static const struct clksel_rate func_96m_apll96_rates[] = { +static struct clksel_rate func_96m_apll96_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_24XX }, { .div =0 }, }; -static const struct clksel_rate func_96m_alt_rates[] = { +static struct clksel_rate func_96m_alt_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_243X }, { .div =0 }, }; -static const struct clksel func_96m_clksel[] = { +static struct clksel func_96m_clksel[] = { { .parent = &apll96_ck, .rates = func_96m_apll96_rates }, { .parent = &alt_ck, .rates = func_96m_alt_rates }, { .parent =NULL }@@ -228,17 +228,17 @@ static struct clk func_96m_ck = {/* func_48m_ck */ -static const struct clksel_rate func_48m_apll96_rates[] = { +static struct clksel_rate func_48m_apll96_rates[] = { { .div =2 , .val =0 , .flags =RATE_IN_24XX }, { .div =0 }, }; -static const struct clksel_rate func_48m_alt_rates[] = { +static struct clksel_rate func_48m_alt_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =0 }, }; -static const struct clksel func_48m_clksel[] = { +static struct clksel func_48m_clksel[] = { { .parent = &apll96_ck, .rates = func_48m_apll96_rates }, { .parent = &alt_ck, .rates = func_48m_alt_rates }, { .parent =NULL }@@ -283,27 +283,27 @@ static struct clk wdt1_osc_ck = {* harmless since access to those clocks are gated by the struct clk * flags fields, which mark them as 2420-only. */ -static const struct clksel_rate common_clkout_src_core_rates[] = { +static struct clksel_rate common_clkout_src_core_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel_rate common_clkout_src_sys_rates[] = { +static struct clksel_rate common_clkout_src_sys_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel_rate common_clkout_src_96m_rates[] = { +static struct clksel_rate common_clkout_src_96m_rates[] = { { .div =1 , .val =2 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel_rate common_clkout_src_54m_rates[] = { +static struct clksel_rate common_clkout_src_54m_rates[] = { { .div =1 , .val =3 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel common_clkout_src_clksel[] = { +static struct clksel common_clkout_src_clksel[] = { { .parent = &core_ck, .rates = common_clkout_src_core_rates }, { .parent = &sys_ck, .rates = common_clkout_src_sys_rates }, { .parent = &func_96m_ck, .rates = common_clkout_src_96m_rates },@@ -327,7 +327,7 @@ static struct clk sys_clkout_src = { .set_rate = &omap2_clksel_set_rate };
Quoted 6 lines
arch/arm/mach-omap2/clock2430_data.c static const struct clksel_rate
Quoted 6 lines
arch/arm/mach-omap2/clock2430_data.c +1
-1-static const struct clksel_rate common_clkout_rates[] = { +static struct clksel_rate common_clkout_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_24XX }, { .div =2 , .val =1 , .flags =RATE_IN_24XX }, { .div =4 , .val =2 , .flags =RATE_IN_24XX },@@ -336,7 +336,7 @@ static const struct clksel_rate
common_clkout_rates[] = {
Quoted 19 lines
Quoted 19 lines
arch/arm/mach-omap2/clock2430_data.c +2
-2{ .div = 0 }, }; -static const struct clksel sys_clkout_clksel[] = { +static struct clksel sys_clkout_clksel[] = { { .parent = &sys_clkout_src, .rates = common_clkout_rates }, { .parent =NULL } };@@ -375,13 +375,13 @@ static struct clk emul_ck = {* - Base divider comes from: CM_CLKSEL_MPU * */ -static const struct clksel_rate mpu_core_rates[] = { +static struct clksel_rate mpu_core_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =2 , .val =2 , .flags =RATE_IN_24XX }, { .div =0 }, };
Quoted 15 lines
arch/arm/mach-omap2/clock2430_data.c static const struct clksel_rate
Quoted 15 lines
arch/arm/mach-omap2/clock2430_data.c +2
-2-static const struct clksel mpu_clksel[] = { +static struct clksel mpu_clksel[] = { { .parent = &core_ck, .rates = mpu_core_rates }, { .parent =NULL } };@@ -408,7 +408,7 @@ static struct clk mpu_ck = { /* Control cpu */* controls. The other branch gets further divided by 2 then possibly * routed into a synchronizer and out of clocks abc. */ -static const struct clksel_rate dsp_fck_core_rates[] = { +static struct clksel_rate dsp_fck_core_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =2 , .val =2 , .flags =RATE_IN_24XX }, { .div =3 , .val =3 , .flags =RATE_IN_24XX },@@ -416,7 +416,7 @@ static const struct clksel_rate
dsp_fck_core_rates[] = {
Quoted 20 lines
Quoted 20 lines
arch/arm/mach-omap2/clock2430_data.c +2
-2{ .div = 0 }, }; -static const struct clksel dsp_fck_clksel[] = { +static struct clksel dsp_fck_clksel[] = { { .parent = &core_ck, .rates = dsp_fck_core_rates }, { .parent =NULL } };@@ -435,14 +435,14 @@ static struct clk dsp_fck = { };/* DSP interface clock */ -static const struct clksel_rate dsp_irate_ick_rates[] = { +static struct clksel_rate dsp_irate_ick_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =2 , .val =2 , .flags =RATE_IN_24XX }, { .div =3 , .val =3 , .flags =RATE_IN_243X }, { .div =0 }, };
Quoted 7 lines
arch/arm/mach-omap2/clock2430_data.c static struct clk iva2_1_ick = { · line 486
Quoted 7 lines
arch/arm/mach-omap2/clock2430_data.c +1
-1-static const struct clksel dsp_irate_ick_clksel[] = { +static struct clksel dsp_irate_ick_clksel[] = { { .parent = &dsp_fck, .rates = dsp_irate_ick_rates }, { .parent =NULL } };@@ -486,14 +486,14 @@ static struct clk iva2_1_ick = {* may very well need notification when the clock changes. Currently
for low
Quoted 10 lines
Quoted 10 lines
arch/arm/mach-omap2/clock2430_data.c +1
-1* operating points, these are taken care of in sleep.S. */ -static const struct clksel_rate core_l3_core_rates[] = { +static struct clksel_rate core_l3_core_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =4 , .val =4 , .flags =RATE_IN_24XX }, { .div =6 , .val =6 , .flags =RATE_IN_24XX }, { .div =0 } };
Quoted 6 lines
arch/arm/mach-omap2/clock2430_data.c static struct clk core_l3_ck = { /* Used
Quoted 6 lines
arch/arm/mach-omap2/clock2430_data.c +1
-1-static const struct clksel core_l3_clksel[] = { +static struct clksel core_l3_clksel[] = { { .parent = &core_ck, .rates = core_l3_core_rates }, { .parent =NULL } };@@ -510,14 +510,14 @@ static struct clk core_l3_ck = { /* Used
for ick and fck, interconnect */
Quoted 11 lines
Quoted 11 lines
arch/arm/mach-omap2/clock2430_data.c +1
-1};/* usb_l4_ick */ -static const struct clksel_rate usb_l4_ick_core_l3_rates[] = { +static struct clksel_rate usb_l4_ick_core_l3_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =2 , .val =2 , .flags =RATE_IN_24XX }, { .div =4 , .val =4 , .flags =RATE_IN_24XX }, { .div =0 } };
Quoted 6 lines
arch/arm/mach-omap2/clock2430_data.c static struct clk usb_l4_ick = { /* FS-USB
Quoted 6 lines
arch/arm/mach-omap2/clock2430_data.c +1
-1-static const struct clksel usb_l4_ick_clksel[] = { +static struct clksel usb_l4_ick_clksel[] = { { .parent = &core_l3_ck, .rates = usb_l4_ick_core_l3_rates }, { .parent =NULL }, };@@ -543,13 +543,13 @@ static struct clk usb_l4_ick = { /* FS-USB
interface clock */
Quoted 1 line
arch/arm/mach-omap2/clock2430_data.c static struct clk usb_l4_ick = { /* FS-USB · line 543
Quoted 1 line
arch/arm/mach-omap2/clock2430_data.c +0
-0* functional clocks. Fixed APLL functional source clocks are
managed in
Quoted 9 lines
Quoted 9 lines
arch/arm/mach-omap2/clock2430_data.c +1
-1* this domain. */ -static const struct clksel_rate l4_core_l3_rates[] = { +static struct clksel_rate l4_core_l3_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =2 , .val =2 , .flags =RATE_IN_24XX }, { .div =0 } };
Quoted 6 lines
arch/arm/mach-omap2/clock2430_data.c static struct clk l4_ck = { /* used
Quoted 6 lines
arch/arm/mach-omap2/clock2430_data.c +1
-1-static const struct clksel l4_clksel[] = { +static struct clksel l4_clksel[] = { { .parent = &core_l3_ck, .rates = l4_core_l3_rates }, { .parent =NULL } };@@ -573,7 +573,7 @@ static struct clk l4_ck = { /* used
both as an ick and fck */
Quoted 9 lines
arch/arm/mach-omap2/clock2430_data.c static const struct clksel_rate
Quoted 9 lines
arch/arm/mach-omap2/clock2430_data.c +1
-1* * ssr = core/1/2/3/4/5, sst = 1/2 ssr. */ -static const struct clksel_rate ssi_ssr_sst_fck_core_rates[] = { +static struct clksel_rate ssi_ssr_sst_fck_core_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =2 , .val =2 , .flags =RATE_IN_24XX }, { .div =3 , .val =3 , .flags =RATE_IN_24XX },@@ -582,7 +582,7 @@ static const struct clksel_rate
ssi_ssr_sst_fck_core_rates[] = {
Quoted 11 lines
Quoted 11 lines
arch/arm/mach-omap2/clock2430_data.c +1
-1{ .div = 0 } }; -static const struct clksel ssi_ssr_sst_fck_clksel[] = { +static struct clksel ssi_ssr_sst_fck_clksel[] = { { .parent = &core_ck, .rates = ssi_ssr_sst_fck_core_rates }, { .parent =NULL } };@@ -628,7 +628,7 @@ static struct clk ssi_l4_ick = {*/
Quoted 16 lines
arch/arm/mach-omap2/clock2430_data.c static const struct clksel_rate
Quoted 16 lines
arch/arm/mach-omap2/clock2430_data.c +2
-2/* This clksel struct is shared between gfx_3d_fck and gfx_2d_fck */ -static const struct clksel gfx_fck_clksel[] = { +static struct clksel gfx_fck_clksel[] = { { .parent = &core_l3_ck, .rates = gfx_l3_rates }, { .parent =NULL }, };@@ -678,7 +678,7 @@ static struct clk gfx_ick = {* MDM_ICLK * These clocks are usable in chassis mode only. */ -static const struct clksel_rate mdm_ick_core_rates[] = { +static struct clksel_rate mdm_ick_core_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_243X }, { .div =4 , .val =4 , .flags =RATE_IN_243X }, { .div =6 , .val =6 , .flags =RATE_IN_243X },@@ -686,7 +686,7 @@ static const struct clksel_rate
mdm_ick_core_rates[] = {
Quoted 18 lines
Quoted 18 lines
arch/arm/mach-omap2/clock2430_data.c +2
-2{ .div = 0 } }; -static const struct clksel mdm_ick_clksel[] = { +static struct clksel mdm_ick_clksel[] = { { .parent = &core_ck, .rates = mdm_ick_core_rates }, { .parent =NULL } };@@ -724,12 +724,12 @@ static struct clk mdm_osc_ck = {*/ /* XXX Add RATE_NOT_VALIDATED */ -static const struct clksel_rate dss1_fck_sys_rates[] = { +static struct clksel_rate dss1_fck_sys_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_24XX }, { .div =0 } };
Quoted 6 lines
arch/arm/mach-omap2/clock2430_data.c static const struct clksel_rate
Quoted 6 lines
arch/arm/mach-omap2/clock2430_data.c +1
-1-static const struct clksel_rate dss1_fck_core_rates[] = { +static struct clksel_rate dss1_fck_core_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =2 , .val =2 , .flags =RATE_IN_24XX }, { .div =3 , .val =3 , .flags =RATE_IN_24XX },@@ -743,7 +743,7 @@ static const struct clksel_rate
dss1_fck_core_rates[] = {
Quoted 24 lines
Quoted 24 lines
arch/arm/mach-omap2/clock2430_data.c +3
-3{ .div = 0 } }; -static const struct clksel dss1_fck_clksel[] = { +static struct clksel dss1_fck_clksel[] = { { .parent = &sys_ck, .rates = dss1_fck_sys_rates }, { .parent = &core_ck, .rates = dss1_fck_core_rates }, { .parent =NULL },@@ -773,17 +773,17 @@ static struct clk dss1_fck = { .recalc = &omap2_clksel_recalc, }; -static const struct clksel_rate dss2_fck_sys_rates[] = { +static struct clksel_rate dss2_fck_sys_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel_rate dss2_fck_48m_rates[] = { +static struct clksel_rate dss2_fck_48m_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =0 } };
Quoted 6 lines
arch/arm/mach-omap2/clock2430_data.c static struct clk dss_54m_fck = { /* Alt clk
Quoted 6 lines
arch/arm/mach-omap2/clock2430_data.c +1
-1-static const struct clksel dss2_fck_clksel[] = { +static struct clksel dss2_fck_clksel[] = { { .parent = &sys_ck, .rates = dss2_fck_sys_rates }, { .parent = &func_48m_ck, .rates = dss2_fck_48m_rates }, { .parent =NULL }@@ -819,12 +819,12 @@ static struct clk dss_54m_fck = { /* Alt clk
used in power management */
Quoted 1 line
arch/arm/mach-omap2/clock2430_data.c static struct clk dss_54m_fck = { /* Alt clk · line 819
Quoted 1 line
arch/arm/mach-omap2/clock2430_data.c +0
-0* here will likely have an L4 interface parent, and may have
multiple
Quoted 29 lines
Quoted 29 lines
arch/arm/mach-omap2/clock2430_data.c +4
-4* functional clock parents. */ -static const struct clksel_rate gpt_alt_rates[] = { +static struct clksel_rate gpt_alt_rates[] = { { .div =1 , .val =2 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel omap24xx_gpt_clksel[] = { +static struct clksel omap24xx_gpt_clksel[] = { { .parent = &func_32k_ck, .rates = gpt_32k_rates }, { .parent = &sys_ck, .rates = gpt_sys_rates }, { .parent = &alt_ck, .rates = gpt_alt_rates },@@ -1130,17 +1130,17 @@ static struct clk mcbsp1_ick = { .recalc = &followparent_recalc, }; -static const struct clksel_rate common_mcbsp_96m_rates[] = { +static struct clksel_rate common_mcbsp_96m_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel_rate common_mcbsp_mcbsp_rates[] = { +static struct clksel_rate common_mcbsp_mcbsp_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =0 } };
Quoted 6 lines
Review
Quoted 6 lines
arch/arm/mach-omap2/clock2430_data.c +1
-1-static const struct clksel mcbsp_fck_clksel[] = { +static struct clksel mcbsp_fck_clksel[] = { { .parent = &func_96m_ck, .rates = common_mcbsp_96m_rates }, { .parent = &mcbsp_clks, .rates = common_mcbsp_mcbsp_rates }, { .parent =NULL }(quoted diff) +0
-0
b/arch/arm/mach-omap2/clock3xxx_data.c
Quoted 66 lines
Quoted 66 lines
index 403a4a1..9c87adb 100644
arch/arm/mach-omap2/clock3xxx_data.c +9
-9@@ -109,37 +109,37 @@ static struct clk virt_38_4m_ck = { .rate = 38400000, }; -static const struct clksel_rate osc_sys_12m_rates[] = { +static struct clksel_rate osc_sys_12m_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_3XXX }, { .div =0 } }; -static const struct clksel_rate osc_sys_13m_rates[] = { +static struct clksel_rate osc_sys_13m_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_3XXX }, { .div =0 } }; -static const struct clksel_rate osc_sys_16_8m_rates[] = { +static struct clksel_rate osc_sys_16_8m_rates[] = { { .div =1 , .val =5 , .flags =RATE_IN_3430ES2PLUS_36XX }, { .div =0 } }; -static const struct clksel_rate osc_sys_19_2m_rates[] = { +static struct clksel_rate osc_sys_19_2m_rates[] = { { .div =1 , .val =2 , .flags =RATE_IN_3XXX }, { .div =0 } }; -static const struct clksel_rate osc_sys_26m_rates[] = { +static struct clksel_rate osc_sys_26m_rates[] = { { .div =1 , .val =3 , .flags =RATE_IN_3XXX }, { .div =0 } }; -static const struct clksel_rate osc_sys_38_4m_rates[] = { +static struct clksel_rate osc_sys_38_4m_rates[] = { { .div =1 , .val =4 , .flags =RATE_IN_3XXX }, { .div =0 } }; -static const struct clksel osc_sys_clksel[] = { +static struct clksel osc_sys_clksel[] = { { .parent = &virt_12m_ck, .rates = osc_sys_12m_rates }, { .parent = &virt_13m_ck, .rates = osc_sys_13m_rates }, { .parent = &virt_16_8m_ck, .rates = osc_sys_16_8m_rates },@@ -162,13 +162,13 @@ static struct clk osc_sys_ck = { .recalc = &omap2_clksel_recalc, }; -static const struct clksel_rate div2_rates[] = { +static struct clksel_rate div2_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_3XXX }, { .div =2 , .val =2 , .flags =RATE_IN_3XXX }, { .div =0 } }; -static const struct clksel sys_clksel[] = { +static struct clksel sys_clksel[] = { { .parent = &osc_sys_ck, .rates = div2_rates }, { .parent =NULL } };@@ -212,7 +212,7 @@ static struct clk sys_clkout1 = {
Quoted 8 lines
arch/arm/mach-omap2/clock3xxx_data.c static const struct clksel_rate div16_dpll_rates[]
Quoted 8 lines
arch/arm/mach-omap2/clock3xxx_data.c +1
-1/* CM CLOCKS */ -static const struct clksel_rate div16_dpll_rates[] = { +static struct clksel_rate div16_dpll_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_3XXX }, { .div =2 , .val =2 , .flags =RATE_IN_3XXX }, { .div =3 , .val =3 , .flags =RATE_IN_3XXX },@@ -232,7 +232,7 @@ static const struct clksel_rate div16_dpll_rates[]
= {
Quoted 11 lines
Quoted 11 lines
arch/arm/mach-omap2/clock3xxx_data.c +1
-1{ .div = 0 } }; -static const struct clksel_rate dpll4_rates[] = { +static struct clksel_rate dpll4_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_3XXX }, { .div =2 , .val =2 , .flags =RATE_IN_3XXX }, { .div =3 , .val =3 , .flags =RATE_IN_3XXX },@@ -318,7 +318,7 @@ static struct clk dpll1_x2_ck = { };
Quoted 1 line
arch/arm/mach-omap2/clock3xxx_data.c static struct clk dpll1_x2_ck = { · line 320
Quoted 1 line
arch/arm/mach-omap2/clock3xxx_data.c +0
-0/* On DPLL1, unlike other DPLLs, the divider is downstream from
CLKOUTX2 */
Quoted 18 lines
Quoted 18 lines
arch/arm/mach-omap2/clock3xxx_data.c +2
-2-static const struct clksel div16_dpll1_x2m2_clksel[] = { +static struct clksel div16_dpll1_x2m2_clksel[] = { { .parent = &dpll1_x2_ck, .rates = div16_dpll_rates }, { .parent =NULL } };@@ -378,7 +378,7 @@ static struct clk dpll2_ck = { .recalc = &omap3_dpll_recalc, }; -static const struct clksel div16_dpll2_m2x2_clksel[] = { +static struct clksel div16_dpll2_m2x2_clksel[] = { { .parent = &dpll2_ck, .rates = div16_dpll_rates }, { .parent =NULL } };@@ -449,7 +449,7 @@ static struct clk dpll3_x2_ck = { .recalc = &omap3_clkoutx2_recalc, };
Quoted 6 lines
arch/arm/mach-omap2/clock3xxx_data.c static const struct clksel_rate
Quoted 6 lines
arch/arm/mach-omap2/clock3xxx_data.c +1
-1-static const struct clksel_rate div31_dpll3_rates[] = { +static struct clksel_rate div31_dpll3_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_3XXX }, { .div =2 , .val =2 , .flags =RATE_IN_3XXX }, { .div =3 , .val =3 , .flags =RATE_IN_3430ES2PLUS_36XX },@@ -484,7 +484,7 @@ static const struct clksel_rate
div31_dpll3_rates[] = {
Quoted 37 lines
Quoted 37 lines
arch/arm/mach-omap2/clock3xxx_data.c +4
-4{ .div = 0 }, }; -static const struct clksel div31_dpll3m2_clksel[] = { +static struct clksel div31_dpll3m2_clksel[] = { { .parent = &dpll3_ck, .rates = div31_dpll3_rates }, { .parent =NULL } };@@ -520,7 +520,7 @@ static struct clk dpll3_m2x2_ck = { };/* The PWRDN bit is apparently only available on 3430ES2 and above */ -static const struct clksel div16_dpll3_clksel[] = { +static struct clksel div16_dpll3_clksel[] = { { .parent = &dpll3_ck, .rates = div16_dpll_rates }, { .parent =NULL } };@@ -635,7 +635,7 @@ static struct clk dpll4_x2_ck = { .recalc = &omap3_clkoutx2_recalc, }; -static const struct clksel dpll4_clksel[] = { +static struct clksel dpll4_clksel[] = { { .parent = &dpll4_ck, .rates = dpll4_rates }, { .parent =NULL } };@@ -680,23 +680,23 @@ static struct clk omap_192m_alwon_fck = { .recalc = &followparent_recalc, }; -static const struct clksel_rate omap_96m_alwon_fck_rates[] = { +static struct clksel_rate omap_96m_alwon_fck_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_36XX }, { .div =2 , .val =2 , .flags =RATE_IN_36XX }, { .div =0 } };
Quoted 3 lines
arch/arm/mach-omap2/clock3xxx_data.c static struct clk omap_192m_alwon_fck = {
Quoted 3 lines
arch/arm/mach-omap2/clock3xxx_data.c +1
-1-static const struct clksel omap_96m_alwon_fck_clksel[] = { +static struct clksel omap_96m_alwon_fck_clksel[] = { { .parent = &omap_192m_alwon_fck, .rates =
omap_96m_alwon_fck_rates },
Quoted 111 lines
Quoted 111 lines
arch/arm/mach-omap2/clock3xxx_data.c +15
-15{ .parent = NULL } }; -static const struct clksel_rate omap_96m_dpll_rates[] = { +static struct clksel_rate omap_96m_dpll_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_3XXX }, { .div =0 } }; -static const struct clksel_rate omap_96m_sys_rates[] = { +static struct clksel_rate omap_96m_sys_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_3XXX }, { .div =0 } };@@ -726,7 +726,7 @@ static struct clk cm_96m_fck = { .recalc = &followparent_recalc, }; -static const struct clksel omap_96m_fck_clksel[] = { +static struct clksel omap_96m_fck_clksel[] = { { .parent = &cm_96m_fck, .rates = omap_96m_dpll_rates }, { .parent = &sys_ck, .rates = omap_96m_sys_rates }, { .parent =NULL }@@ -768,17 +768,17 @@ static struct clk dpll4_m3x2_ck = { .recalc = &omap3_clkoutx2_recalc, }; -static const struct clksel_rate omap_54m_d4m3x2_rates[] = { +static struct clksel_rate omap_54m_d4m3x2_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_3XXX }, { .div =0 } }; -static const struct clksel_rate omap_54m_alt_rates[] = { +static struct clksel_rate omap_54m_alt_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_3XXX }, { .div =0 } }; -static const struct clksel omap_54m_clksel[] = { +static struct clksel omap_54m_clksel[] = { { .parent = &dpll4_m3x2_ck, .rates = omap_54m_d4m3x2_rates }, { .parent = &sys_altclk, .rates = omap_54m_alt_rates }, { .parent =NULL }@@ -794,17 +794,17 @@ static struct clk omap_54m_fck = { .recalc = &omap2_clksel_recalc, }; -static const struct clksel_rate omap_48m_cm96m_rates[] = { +static struct clksel_rate omap_48m_cm96m_rates[] = { { .div =2 , .val =0 , .flags =RATE_IN_3XXX }, { .div =0 } }; -static const struct clksel_rate omap_48m_alt_rates[] = { +static struct clksel_rate omap_48m_alt_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_3XXX }, { .div =0 } }; -static const struct clksel omap_48m_clksel[] = { +static struct clksel omap_48m_clksel[] = { { .parent = &cm_96m_fck, .rates = omap_48m_cm96m_rates }, { .parent = &sys_altclk, .rates = omap_48m_alt_rates }, { .parent =NULL }@@ -953,7 +953,7 @@ static struct clk dpll5_ck = { .recalc = &omap3_dpll_recalc, }; -static const struct clksel div16_dpll5_clksel[] = { +static struct clksel div16_dpll5_clksel[] = { { .parent = &dpll5_ck, .rates = div16_dpll_rates }, { .parent =NULL } };@@ -972,27 +972,27 @@ static struct clk dpll5_m2_ck = {/* CM EXTERNAL CLOCK OUTPUTS */ -static const struct clksel_rate clkout2_src_core_rates[] = { +static struct clksel_rate clkout2_src_core_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_3XXX }, { .div =0 } }; -static const struct clksel_rate clkout2_src_sys_rates[] = { +static struct clksel_rate clkout2_src_sys_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_3XXX }, { .div =0 } }; -static const struct clksel_rate clkout2_src_96m_rates[] = { +static struct clksel_rate clkout2_src_96m_rates[] = { { .div =1 , .val =2 , .flags =RATE_IN_3XXX }, { .div =0 } }; -static const struct clksel_rate clkout2_src_54m_rates[] = { +static struct clksel_rate clkout2_src_54m_rates[] = { { .div =1 , .val =3 , .flags =RATE_IN_3XXX }, { .div =0 } }; -static const struct clksel clkout2_src_clksel[] = { +static struct clksel clkout2_src_clksel[] = { { .parent = &core_ck, .rates = clkout2_src_core_rates }, { .parent = &sys_ck, .rates = clkout2_src_sys_rates }, { .parent = &cm_96m_fck, .rates = clkout2_src_96m_rates },@@ -1013,7 +1013,7 @@ static struct clk clkout2_src_ck = { .recalc = &omap2_clksel_recalc, };
Quoted 6 lines
arch/arm/mach-omap2/clock3xxx_data.c static const struct clksel_rate
Quoted 6 lines
arch/arm/mach-omap2/clock3xxx_data.c +1
-1-static const struct clksel_rate sys_clkout2_rates[] = { +static struct clksel_rate sys_clkout2_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_3XXX }, { .div =2 , .val =1 , .flags =RATE_IN_3XXX }, { .div =4 , .val =2 , .flags =RATE_IN_3XXX },@@ -1022,7 +1022,7 @@ static const struct clksel_rate
sys_clkout2_rates[] = {
Quoted 28 lines
Quoted 28 lines
arch/arm/mach-omap2/clock3xxx_data.c +3
-3{ .div = 0 }, }; -static const struct clksel sys_clkout2_clksel[] = { +static struct clksel sys_clkout2_clksel[] = { { .parent = &clkout2_src_ck, .rates = sys_clkout2_rates }, { .parent =NULL }, };@@ -1050,14 +1050,14 @@ static struct clk corex2_fck = {/* DPLL power domain clock controls */ -static const struct clksel_rate div4_rates[] = { +static struct clksel_rate div4_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_3XXX }, { .div =2 , .val =2 , .flags =RATE_IN_3XXX }, { .div =4 , .val =4 , .flags =RATE_IN_3XXX }, { .div =0 } }; -static const struct clksel div4_core_clksel[] = { +static struct clksel div4_core_clksel[] = { { .parent = &core_ck, .rates = div4_rates }, { .parent =NULL } };@@ -1086,13 +1086,13 @@ static struct clk mpu_ck = { };
Quoted 1 line
arch/arm/mach-omap2/clock3xxx_data.c static struct clk mpu_ck = { · line 1088
Quoted 1 line
arch/arm/mach-omap2/clock3xxx_data.c +0
-0/* arm_fck is divided by two when DPLL1 locked; otherwise,
passthrough mpu_ck */
Quoted 34 lines
Quoted 34 lines
arch/arm/mach-omap2/clock3xxx_data.c +4
-4-static const struct clksel_rate arm_fck_rates[] = { +static struct clksel_rate arm_fck_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_3XXX }, { .div =2 , .val =1 , .flags =RATE_IN_3XXX }, { .div =0 }, }; -static const struct clksel arm_fck_clksel[] = { +static struct clksel arm_fck_clksel[] = { { .parent = &mpu_ck, .rates = arm_fck_rates }, { .parent =NULL } };@@ -1145,7 +1145,7 @@ static struct clk iva2_ck = {/* Common interface clocks */ -static const struct clksel div2_core_clksel[] = { +static struct clksel div2_core_clksel[] = { { .parent = &core_ck, .rates = div2_rates }, { .parent =NULL } };@@ -1162,7 +1162,7 @@ static struct clk l3_ick = { .recalc = &omap2_clksel_recalc, }; -static const struct clksel div2_l3_clksel[] = { +static struct clksel div2_l3_clksel[] = { { .parent = &l3_ick, .rates = div2_rates }, { .parent =NULL } };@@ -1180,7 +1180,7 @@ static struct clk l4_ick = { };
Quoted 8 lines
arch/arm/mach-omap2/clock3xxx_data.c static struct clk rm_ick = { · line 1201
Quoted 8 lines
arch/arm/mach-omap2/clock3xxx_data.c +1
-1-static const struct clksel div2_l4_clksel[] = { +static struct clksel div2_l4_clksel[] = { { .parent = &l4_ick, .rates = div2_rates }, { .parent =NULL } };@@ -1200,7 +1200,7 @@ static struct clk rm_ick = {/* GFX clocks are in 3430ES1 only. 3430ES2 and later uses the SGX
instead */
Quoted 8 lines
Quoted 8 lines
arch/arm/mach-omap2/clock3xxx_data.c +1
-1-static const struct clksel gfx_l3_clksel[] = { +static struct clksel gfx_l3_clksel[] = { { .parent = &l3_ick, .rates = gfx_l3_rates }, { .parent =NULL } };@@ -1257,7 +1257,7 @@ static struct clk gfx_cg2_ck = {
Quoted 8 lines
arch/arm/mach-omap2/clock3xxx_data.c static const struct clksel_rate
Quoted 8 lines
arch/arm/mach-omap2/clock3xxx_data.c +1
-1/* SGX power domain - 3430ES2 only */ -static const struct clksel_rate sgx_core_rates[] = { +static struct clksel_rate sgx_core_rates[] = { { .div =2 , .val =5 , .flags =RATE_IN_36XX }, { .div =3 , .val =0 , .flags =RATE_IN_3XXX }, { .div =4 , .val =1 , .flags =RATE_IN_3XXX },@@ -1265,23 +1265,23 @@ static const struct clksel_rate
sgx_core_rates[] = {
Quoted 59 lines
Quoted 59 lines
arch/arm/mach-omap2/clock3xxx_data.c +8
-8{ .div = 0 }, }; -static const struct clksel_rate sgx_192m_rates[] = { +static struct clksel_rate sgx_192m_rates[] = { { .div =1 , .val =4 , .flags =RATE_IN_36XX }, { .div =0 }, }; -static const struct clksel_rate sgx_corex2_rates[] = { +static struct clksel_rate sgx_corex2_rates[] = { { .div =3 , .val =6 , .flags =RATE_IN_36XX }, { .div =5 , .val =7 , .flags =RATE_IN_36XX }, { .div =0 }, }; -static const struct clksel_rate sgx_96m_rates[] = { +static struct clksel_rate sgx_96m_rates[] = { { .div =1 , .val =3 , .flags =RATE_IN_3XXX }, { .div =0 }, }; -static const struct clksel sgx_clksel[] = { +static struct clksel sgx_clksel[] = { { .parent = &core_ck, .rates = sgx_core_rates }, { .parent = &cm_96m_fck, .rates = sgx_96m_rates }, { .parent = &omap_192m_alwon_fck, .rates = sgx_192m_rates },@@ -1356,7 +1356,7 @@ static struct clk mad2d_ick = { .recalc = &followparent_recalc, }; -static const struct clksel omap343x_gpt_clksel[] = { +static struct clksel omap343x_gpt_clksel[] = { { .parent = &omap_32k_fck, .rates = gpt_32k_rates }, { .parent = &sys_ck, .rates = gpt_sys_rates }, { .parent =NULL }@@ -1501,17 +1501,17 @@ static struct clk i2c1_fck = {* MCBSP 1 & 5 get their 96MHz clock from core_96m_fck; * MCBSP 2, 3, 4 get their 96MHz clock from per_96m_fck. */ -static const struct clksel_rate common_mcbsp_96m_rates[] = { +static struct clksel_rate common_mcbsp_96m_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_3XXX }, { .div =0 } }; -static const struct clksel_rate common_mcbsp_mcbsp_rates[] = { +static struct clksel_rate common_mcbsp_mcbsp_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_3XXX }, { .div =0 } }; -static const struct clksel mcbsp_15_clksel[] = { +static struct clksel mcbsp_15_clksel[] = { { .parent = &core_96m_fck, .rates = common_mcbsp_96m_rates }, { .parent = &mcbsp_clks, .rates = common_mcbsp_mcbsp_rates }, { .parent =NULL }@@ -1643,7 +1643,7 @@ static struct clk hdq_fck = {
Quoted 8 lines
arch/arm/mach-omap2/clock3xxx_data.c static const struct clksel_rate
Quoted 8 lines
arch/arm/mach-omap2/clock3xxx_data.c +1
-1/* DPLL3-derived clock */ -static const struct clksel_rate ssi_ssr_corex2_rates[] = { +static struct clksel_rate ssi_ssr_corex2_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_3XXX }, { .div =2 , .val =2 , .flags =RATE_IN_3XXX }, { .div =3 , .val =3 , .flags =RATE_IN_3XXX },@@ -1653,7 +1653,7 @@ static const struct clksel_rate
ssi_ssr_corex2_rates[] = {
Quoted 19 lines
Quoted 19 lines
arch/arm/mach-omap2/clock3xxx_data.c +2
-2{ .div = 0 } }; -static const struct clksel ssi_ssr_clksel[] = { +static struct clksel ssi_ssr_clksel[] = { { .parent = &corex2_fck, .rates = ssi_ssr_corex2_rates }, { .parent =NULL } };@@ -2078,7 +2078,7 @@ static struct clk ssi_ick_3430es2 = {/* REVISIT: Technically the TRM claims that this is CORE_CLK based, * but l4_ick makes more sense to me */ -static const struct clksel usb_l4_clksel[] = { +static struct clksel usb_l4_clksel[] = { { .parent = &l4_ick, .rates = div2_rates }, { .parent =NULL }, };@@ -2282,7 +2282,7 @@ static struct clk usbhost_ick = {
Quoted 8 lines
arch/arm/mach-omap2/clock3xxx_data.c static const struct clksel_rate usim_96m_rates[]
Quoted 8 lines
arch/arm/mach-omap2/clock3xxx_data.c +1
-1/* WKUP */ -static const struct clksel_rate usim_96m_rates[] = { +static struct clksel_rate usim_96m_rates[] = { { .div =2 , .val =3 , .flags =RATE_IN_3XXX }, { .div =4 , .val =4 , .flags =RATE_IN_3XXX }, { .div =8 , .val =5 , .flags =RATE_IN_3XXX },@@ -2290,7 +2290,7 @@ static const struct clksel_rate usim_96m_rates[]
= {
Quoted 9 lines
arch/arm/mach-omap2/clock3xxx_data.c static const struct clksel_rate
Quoted 9 lines
arch/arm/mach-omap2/clock3xxx_data.c +1
-1{ .div = 0 }, }; -static const struct clksel_rate usim_120m_rates[] = { +static struct clksel_rate usim_120m_rates[] = { { .div =4 , .val =7 , .flags =RATE_IN_3XXX }, { .div =8 , .val =8 , .flags =RATE_IN_3XXX }, { .div =16 , .val =9 , .flags =RATE_IN_3XXX },@@ -2298,7 +2298,7 @@ static const struct clksel_rate
usim_120m_rates[] = {
Quoted 12 lines
Quoted 12 lines
arch/arm/mach-omap2/clock3xxx_data.c +1
-1{ .div = 0 }, }; -static const struct clksel usim_clksel[] = { +static struct clksel usim_clksel[] = { { .parent = &omap_96m_fck, .rates = usim_96m_rates }, { .parent = &dpll5_m2_ck, .rates = usim_120m_rates }, { .parent = &sys_ck, .rates = div2_rates },@@ -2851,7 +2851,7 @@ static struct clk mcbsp4_ick = { .recalc = &followparent_recalc, };
Quoted 8 lines
arch/arm/mach-omap2/clock3xxx_data.c static struct clk mcbsp4_fck = { · line 2901
Quoted 8 lines
arch/arm/mach-omap2/clock3xxx_data.c +1
-1-static const struct clksel mcbsp_234_clksel[] = { +static struct clksel mcbsp_234_clksel[] = { { .parent = &per_96m_fck, .rates = common_mcbsp_96m_rates }, { .parent = &mcbsp_clks, .rates = common_mcbsp_mcbsp_rates }, { .parent =NULL }@@ -2900,27 +2900,27 @@ static struct clk mcbsp4_fck = {/* More information: ARM Cortex-A8 Technical Reference Manual, sect
10.1 */
Quoted 34 lines
Quoted 34 lines
arch/arm/mach-omap2/clock3xxx_data.c +5
-5-static const struct clksel_rate emu_src_sys_rates[] = { +static struct clksel_rate emu_src_sys_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_3XXX }, { .div =0 }, }; -static const struct clksel_rate emu_src_core_rates[] = { +static struct clksel_rate emu_src_core_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_3XXX }, { .div =0 }, }; -static const struct clksel_rate emu_src_per_rates[] = { +static struct clksel_rate emu_src_per_rates[] = { { .div =1 , .val =2 , .flags =RATE_IN_3XXX }, { .div =0 }, }; -static const struct clksel_rate emu_src_mpu_rates[] = { +static struct clksel_rate emu_src_mpu_rates[] = { { .div =1 , .val =3 , .flags =RATE_IN_3XXX }, { .div =0 }, }; -static const struct clksel emu_src_clksel[] = { +static struct clksel emu_src_clksel[] = { { .parent = &sys_ck, .rates = emu_src_sys_rates }, { .parent = &emu_core_alwon_ck, .rates = emu_src_core_rates }, { .parent = &emu_per_alwon_ck, .rates = emu_src_per_rates },@@ -2944,7 +2944,7 @@ static struct clk emu_src_ck = { .recalc = &omap2_clksel_recalc, };
Quoted 6 lines
arch/arm/mach-omap2/clock3xxx_data.c static const struct clksel_rate pclk_emu_rates[]
Quoted 6 lines
arch/arm/mach-omap2/clock3xxx_data.c +1
-1-static const struct clksel_rate pclk_emu_rates[] = { +static struct clksel_rate pclk_emu_rates[] = { { .div =2 , .val =2 , .flags =RATE_IN_3XXX }, { .div =3 , .val =3 , .flags =RATE_IN_3XXX }, { .div =4 , .val =4 , .flags =RATE_IN_3XXX },@@ -2952,7 +2952,7 @@ static const struct clksel_rate pclk_emu_rates[]
= {
Quoted 46 lines
Quoted 46 lines
arch/arm/mach-omap2/clock3xxx_data.c +5
-5{ .div = 0 }, }; -static const struct clksel pclk_emu_clksel[] = { +static struct clksel pclk_emu_clksel[] = { { .parent = &emu_src_ck, .rates = pclk_emu_rates }, { .parent =NULL }, };@@ -2968,14 +2968,14 @@ static struct clk pclk_fck = { .recalc = &omap2_clksel_recalc, }; -static const struct clksel_rate pclkx2_emu_rates[] = { +static struct clksel_rate pclkx2_emu_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_3XXX }, { .div =2 , .val =2 , .flags =RATE_IN_3XXX }, { .div =3 , .val =3 , .flags =RATE_IN_3XXX }, { .div =0 }, }; -static const struct clksel pclkx2_emu_clksel[] = { +static struct clksel pclkx2_emu_clksel[] = { { .parent = &emu_src_ck, .rates = pclkx2_emu_rates }, { .parent =NULL }, };@@ -2991,7 +2991,7 @@ static struct clk pclkx2_fck = { .recalc = &omap2_clksel_recalc, }; -static const struct clksel atclk_emu_clksel[] = { +static struct clksel atclk_emu_clksel[] = { { .parent = &emu_src_ck, .rates = div2_rates }, { .parent =NULL }, };@@ -3018,14 +3018,14 @@ static struct clk traceclk_src_fck = { .recalc = &omap2_clksel_recalc, }; -static const struct clksel_rate traceclk_rates[] = { +static struct clksel_rate traceclk_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_3XXX }, { .div =2 , .val =2 , .flags =RATE_IN_3XXX }, { .div =4 , .val =4 , .flags =RATE_IN_3XXX }, { .div =0 }, };
Quoted 6 lines
Review
Quoted 6 lines
arch/arm/mach-omap2/clock3xxx_data.c +1
-1-static const struct clksel traceclk_clksel[] = { +static struct clksel traceclk_clksel[] = { { .parent = &traceclk_src_fck, .rates = traceclk_rates }, { .parent =NULL }, };(quoted diff) +0
-0
b/arch/arm/mach-omap2/clock44xx_data.c
Quoted 73 lines
Quoted 73 lines
index e8cb32f..b02bfae 100644
arch/arm/mach-omap2/clock44xx_data.c +10
-10@@ -127,47 +127,47 @@ static struct clk virt_38400000_ck = { .rate = 38400000, }; -static const struct clksel_rate div_1_0_rates[] = { +static struct clksel_rate div_1_0_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_4430 }, { .div =0 }, }; -static const struct clksel_rate div_1_1_rates[] = { +static struct clksel_rate div_1_1_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_4430 }, { .div =0 }, }; -static const struct clksel_rate div_1_2_rates[] = { +static struct clksel_rate div_1_2_rates[] = { { .div =1 , .val =2 , .flags =RATE_IN_4430 }, { .div =0 }, }; -static const struct clksel_rate div_1_3_rates[] = { +static struct clksel_rate div_1_3_rates[] = { { .div =1 , .val =3 , .flags =RATE_IN_4430 }, { .div =0 }, }; -static const struct clksel_rate div_1_4_rates[] = { +static struct clksel_rate div_1_4_rates[] = { { .div =1 , .val =4 , .flags =RATE_IN_4430 }, { .div =0 }, }; -static const struct clksel_rate div_1_5_rates[] = { +static struct clksel_rate div_1_5_rates[] = { { .div =1 , .val =5 , .flags =RATE_IN_4430 }, { .div =0 }, }; -static const struct clksel_rate div_1_6_rates[] = { +static struct clksel_rate div_1_6_rates[] = { { .div =1 , .val =6 , .flags =RATE_IN_4430 }, { .div =0 }, }; -static const struct clksel_rate div_1_7_rates[] = { +static struct clksel_rate div_1_7_rates[] = { { .div =1 , .val =7 , .flags =RATE_IN_4430 }, { .div =0 }, }; -static const struct clksel sys_clkin_sel[] = { +static struct clksel sys_clkin_sel[] = { { .parent = &virt_12000000_ck, .rates = div_1_1_rates }, { .parent = &virt_13000000_ck, .rates = div_1_2_rates }, { .parent = &virt_16800000_ck, .rates = div_1_3_rates },@@ -221,7 +221,7 @@ static struct clk xclk60motg_ck = {/* Module clocks and DPLL outputs */ -static const struct clksel abe_dpll_bypass_clk_mux_sel[] = { +static struct clksel abe_dpll_bypass_clk_mux_sel[] = { { .parent = &sys_clkin_ck, .rates = div_1_0_rates }, { .parent = &sys_32k_ck, .rates = div_1_1_rates }, { .parent =NULL },@@ -283,7 +283,7 @@ static struct clk dpll_abe_x2_ck = { .recalc = &omap3_clkoutx2_recalc, };
Quoted 6 lines
arch/arm/mach-omap2/clock44xx_data.c static const struct clksel_rate
Quoted 6 lines
arch/arm/mach-omap2/clock44xx_data.c +1
-1-static const struct clksel_rate div31_1to31_rates[] = { +static struct clksel_rate div31_1to31_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_4430 }, { .div =2 , .val =2 , .flags =RATE_IN_4430 }, { .div =3 , .val =3 , .flags =RATE_IN_4430 },@@ -318,7 +318,7 @@ static const struct clksel_rate
div31_1to31_rates[] = {
Quoted 90 lines
Quoted 90 lines
arch/arm/mach-omap2/clock44xx_data.c +10
-10{ .div = 0 }, }; -static const struct clksel dpll_abe_m2x2_div[] = { +static struct clksel dpll_abe_m2x2_div[] = { { .parent = &dpll_abe_x2_ck, .rates = div31_1to31_rates }, { .parent =NULL }, };@@ -343,14 +343,14 @@ static struct clk abe_24m_fclk = { .recalc = &omap_fixed_divisor_recalc, }; -static const struct clksel_rate div3_1to4_rates[] = { +static struct clksel_rate div3_1to4_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_4430 }, { .div =2 , .val =1 , .flags =RATE_IN_4430 }, { .div =4 , .val =2 , .flags =RATE_IN_4430 }, { .div =0 }, }; -static const struct clksel abe_clk_div[] = { +static struct clksel abe_clk_div[] = { { .parent = &dpll_abe_m2x2_ck, .rates = div3_1to4_rates }, { .parent =NULL }, };@@ -367,13 +367,13 @@ static struct clk abe_clk = { .set_rate = &omap2_clksel_set_rate, }; -static const struct clksel_rate div2_1to2_rates[] = { +static struct clksel_rate div2_1to2_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_4430 }, { .div =2 , .val =1 , .flags =RATE_IN_4430 }, { .div =0 }, }; -static const struct clksel aess_fclk_div[] = { +static struct clksel aess_fclk_div[] = { { .parent = &abe_clk, .rates = div2_1to2_rates }, { .parent =NULL }, };@@ -402,7 +402,7 @@ static struct clk dpll_abe_m3x2_ck = { .set_rate = &omap2_clksel_set_rate, }; -static const struct clksel core_hsd_byp_clk_mux_sel[] = { +static struct clksel core_hsd_byp_clk_mux_sel[] = { { .parent = &sys_clkin_ck, .rates = div_1_0_rates }, { .parent = &dpll_abe_m3x2_ck, .rates = div_1_1_rates }, { .parent =NULL },@@ -455,7 +455,7 @@ static struct clk dpll_core_x2_ck = { .recalc = &omap3_clkoutx2_recalc, }; -static const struct clksel dpll_core_m6x2_div[] = { +static struct clksel dpll_core_m6x2_div[] = { { .parent = &dpll_core_x2_ck, .rates = div31_1to31_rates }, { .parent =NULL }, };@@ -472,7 +472,7 @@ static struct clk dpll_core_m6x2_ck = { .set_rate = &omap2_clksel_set_rate, }; -static const struct clksel dbgclk_mux_sel[] = { +static struct clksel dbgclk_mux_sel[] = { { .parent = &sys_clkin_ck, .rates = div_1_0_rates }, { .parent = &dpll_core_m6x2_ck, .rates = div_1_1_rates }, { .parent =NULL },@@ -485,7 +485,7 @@ static struct clk dbgclk_mux_ck = { .recalc = &followparent_recalc, }; -static const struct clksel dpll_core_m2_div[] = { +static struct clksel dpll_core_m2_div[] = { { .parent = &dpll_core_ck, .rates = div31_1to31_rates }, { .parent =NULL }, };@@ -522,7 +522,7 @@ static struct clk dpll_core_m5x2_ck = { .set_rate = &omap2_clksel_set_rate, }; -static const struct clksel div_core_div[] = { +static struct clksel div_core_div[] = { { .parent = &dpll_core_m5x2_ck, .rates = div2_1to2_rates }, { .parent =NULL }, };@@ -539,7 +539,7 @@ static struct clk div_core_ck = { .set_rate = &omap2_clksel_set_rate, };
Quoted 6 lines
arch/arm/mach-omap2/clock44xx_data.c static const struct clksel_rate div4_1to8_rates[]
Quoted 6 lines
arch/arm/mach-omap2/clock44xx_data.c +1
-1-static const struct clksel_rate div4_1to8_rates[] = { +static struct clksel_rate div4_1to8_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_4430 }, { .div =2 , .val =1 , .flags =RATE_IN_4430 }, { .div =4 , .val =2 , .flags =RATE_IN_4430 },@@ -547,7 +547,7 @@ static const struct clksel_rate div4_1to8_rates[]
= {
Quoted 433 lines
Quoted 433 lines
arch/arm/mach-omap2/clock44xx_data.c +46
-46{ .div = 0 }, }; -static const struct clksel div_iva_hs_clk_div[] = { +static struct clksel div_iva_hs_clk_div[] = { { .parent = &dpll_core_m5x2_ck, .rates = div4_1to8_rates }, { .parent =NULL }, };@@ -596,7 +596,7 @@ static struct clk dll_clk_div_ck = { .recalc = &omap_fixed_divisor_recalc, }; -static const struct clksel dpll_abe_m2_div[] = { +static struct clksel dpll_abe_m2_div[] = { { .parent = &dpll_abe_ck, .rates = div31_1to31_rates }, { .parent =NULL }, };@@ -639,7 +639,7 @@ static struct clk dpll_core_m7x2_ck = { .set_rate = &omap2_clksel_set_rate, }; -static const struct clksel iva_hsd_byp_clk_mux_sel[] = { +static struct clksel iva_hsd_byp_clk_mux_sel[] = { { .parent = &sys_clkin_ck, .rates = div_1_0_rates }, { .parent = &div_iva_hs_clk, .rates = div_1_1_rates }, { .parent =NULL },@@ -694,7 +694,7 @@ static struct clk dpll_iva_x2_ck = { .recalc = &omap3_clkoutx2_recalc, }; -static const struct clksel dpll_iva_m4x2_div[] = { +static struct clksel dpll_iva_m4x2_div[] = { { .parent = &dpll_iva_x2_ck, .rates = div31_1to31_rates }, { .parent =NULL }, };@@ -754,7 +754,7 @@ static struct clk dpll_mpu_ck = { .set_rate = &omap3_noncore_dpll_set_rate, }; -static const struct clksel dpll_mpu_m2_div[] = { +static struct clksel dpll_mpu_m2_div[] = { { .parent = &dpll_mpu_ck, .rates = div31_1to31_rates }, { .parent =NULL }, };@@ -779,7 +779,7 @@ static struct clk per_hs_clk_div_ck = { .recalc = &omap_fixed_divisor_recalc, }; -static const struct clksel per_hsd_byp_clk_mux_sel[] = { +static struct clksel per_hsd_byp_clk_mux_sel[] = { { .parent = &sys_clkin_ck, .rates = div_1_0_rates }, { .parent = &per_hs_clk_div_ck, .rates = div_1_1_rates }, { .parent =NULL },@@ -827,7 +827,7 @@ static struct clk dpll_per_ck = { .set_rate = &omap3_noncore_dpll_set_rate, }; -static const struct clksel dpll_per_m2_div[] = { +static struct clksel dpll_per_m2_div[] = { { .parent = &dpll_per_ck, .rates = div31_1to31_rates }, { .parent =NULL }, };@@ -851,7 +851,7 @@ static struct clk dpll_per_x2_ck = { .recalc = &omap3_clkoutx2_recalc, }; -static const struct clksel dpll_per_m2x2_div[] = { +static struct clksel dpll_per_m2x2_div[] = { { .parent = &dpll_per_x2_ck, .rates = div31_1to31_rates }, { .parent =NULL }, };@@ -969,7 +969,7 @@ static struct clk dpll_unipro_x2_ck = { .recalc = &omap3_clkoutx2_recalc, }; -static const struct clksel dpll_unipro_m2x2_div[] = { +static struct clksel dpll_unipro_m2x2_div[] = { { .parent = &dpll_unipro_x2_ck, .rates = div31_1to31_rates }, { .parent =NULL }, };@@ -1033,7 +1033,7 @@ static struct clk dpll_usb_clkdcoldo_ck = { .recalc = &followparent_recalc, }; -static const struct clksel dpll_usb_m2_div[] = { +static struct clksel dpll_usb_m2_div[] = { { .parent = &dpll_usb_ck, .rates = div31_1to31_rates }, { .parent =NULL }, };@@ -1050,7 +1050,7 @@ static struct clk dpll_usb_m2_ck = { .set_rate = &omap2_clksel_set_rate, }; -static const struct clksel ducati_clk_mux_sel[] = { +static struct clksel ducati_clk_mux_sel[] = { { .parent = &div_core_ck, .rates = div_1_0_rates }, { .parent = &dpll_per_m6x2_ck, .rates = div_1_1_rates }, { .parent =NULL },@@ -1091,13 +1091,13 @@ static struct clk func_24mc_fclk = { .recalc = &omap_fixed_divisor_recalc, }; -static const struct clksel_rate div2_4to8_rates[] = { +static struct clksel_rate div2_4to8_rates[] = { { .div =4 , .val =0 , .flags =RATE_IN_4430 }, { .div =8 , .val =1 , .flags =RATE_IN_4430 }, { .div =0 }, }; -static const struct clksel func_48m_fclk_div[] = { +static struct clksel func_48m_fclk_div[] = { { .parent = &dpll_per_m2x2_ck, .rates = div2_4to8_rates }, { .parent =NULL }, };@@ -1122,13 +1122,13 @@ static struct clk func_48mc_fclk = { .recalc = &omap_fixed_divisor_recalc, }; -static const struct clksel_rate div2_2to4_rates[] = { +static struct clksel_rate div2_2to4_rates[] = { { .div =2 , .val =0 , .flags =RATE_IN_4430 }, { .div =4 , .val =1 , .flags =RATE_IN_4430 }, { .div =0 }, }; -static const struct clksel func_64m_fclk_div[] = { +static struct clksel func_64m_fclk_div[] = { { .parent = &dpll_per_m4x2_ck, .rates = div2_2to4_rates }, { .parent =NULL }, };@@ -1145,7 +1145,7 @@ static struct clk func_64m_fclk = { .set_rate = &omap2_clksel_set_rate, }; -static const struct clksel func_96m_fclk_div[] = { +static struct clksel func_96m_fclk_div[] = { { .parent = &dpll_per_m2x2_ck, .rates = div2_2to4_rates }, { .parent =NULL }, };@@ -1162,7 +1162,7 @@ static struct clk func_96m_fclk = { .set_rate = &omap2_clksel_set_rate, }; -static const struct clksel hsmmc6_fclk_sel[] = { +static struct clksel hsmmc6_fclk_sel[] = { { .parent = &func_64m_fclk, .rates = div_1_0_rates }, { .parent = &func_96m_fclk, .rates = div_1_1_rates }, { .parent =NULL },@@ -1175,13 +1175,13 @@ static struct clk hsmmc6_fclk = { .recalc = &followparent_recalc, }; -static const struct clksel_rate div2_1to8_rates[] = { +static struct clksel_rate div2_1to8_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_4430 }, { .div =8 , .val =1 , .flags =RATE_IN_4430 }, { .div =0 }, }; -static const struct clksel init_60m_fclk_div[] = { +static struct clksel init_60m_fclk_div[] = { { .parent = &dpll_usb_m2_ck, .rates = div2_1to8_rates }, { .parent =NULL }, };@@ -1198,7 +1198,7 @@ static struct clk init_60m_fclk = { .set_rate = &omap2_clksel_set_rate, }; -static const struct clksel l3_div_div[] = { +static struct clksel l3_div_div[] = { { .parent = &div_core_ck, .rates = div2_1to2_rates }, { .parent =NULL }, };@@ -1215,7 +1215,7 @@ static struct clk l3_div_ck = { .set_rate = &omap2_clksel_set_rate, }; -static const struct clksel l4_div_div[] = { +static struct clksel l4_div_div[] = { { .parent = &l3_div_ck, .rates = div2_1to2_rates }, { .parent =NULL }, };@@ -1240,7 +1240,7 @@ static struct clk lp_clk_div_ck = { .recalc = &omap_fixed_divisor_recalc, }; -static const struct clksel l4_wkup_clk_mux_sel[] = { +static struct clksel l4_wkup_clk_mux_sel[] = { { .parent = &sys_clkin_ck, .rates = div_1_0_rates }, { .parent = &lp_clk_div_ck, .rates = div_1_1_rates }, { .parent =NULL },@@ -1257,7 +1257,7 @@ static struct clk l4_wkup_clk_mux_ck = { .recalc = &omap2_clksel_recalc, }; -static const struct clksel per_abe_nc_fclk_div[] = { +static struct clksel per_abe_nc_fclk_div[] = { { .parent = &dpll_abe_m2_ck, .rates = div2_1to2_rates }, { .parent =NULL }, };@@ -1274,7 +1274,7 @@ static struct clk per_abe_nc_fclk = { .set_rate = &omap2_clksel_set_rate, }; -static const struct clksel mcasp2_fclk_sel[] = { +static struct clksel mcasp2_fclk_sel[] = { { .parent = &func_96m_fclk, .rates = div_1_0_rates }, { .parent = &per_abe_nc_fclk, .rates = div_1_1_rates }, { .parent =NULL },@@ -1309,7 +1309,7 @@ static struct clk per_abe_24m_fclk = { .recalc = &omap_fixed_divisor_recalc, }; -static const struct clksel pmd_stm_clock_mux_sel[] = { +static struct clksel pmd_stm_clock_mux_sel[] = { { .parent = &sys_clkin_ck, .rates = div_1_0_rates }, { .parent = &dpll_core_m6x2_ck, .rates = div_1_1_rates }, { .parent = &tie_low_clock_ck, .rates = div_1_2_rates },@@ -1330,7 +1330,7 @@ static struct clk pmd_trace_clk_mux_ck = { .recalc = &followparent_recalc, }; -static const struct clksel syc_clk_div_div[] = { +static struct clksel syc_clk_div_div[] = { { .parent = &sys_clkin_ck, .rates = div2_1to2_rates }, { .parent =NULL }, };@@ -1399,7 +1399,7 @@ static struct clk des3des_fck = { .recalc = &followparent_recalc, }; -static const struct clksel dmic_sync_mux_sel[] = { +static struct clksel dmic_sync_mux_sel[] = { { .parent = &abe_24m_fclk, .rates = div_1_0_rates }, { .parent = &syc_clk_div_ck, .rates = div_1_1_rates }, { .parent = &func_24m_clk, .rates = div_1_2_rates },@@ -1417,7 +1417,7 @@ static struct clk dmic_sync_mux_ck = { .recalc = &omap2_clksel_recalc, }; -static const struct clksel func_dmic_abe_gfclk_sel[] = { +static struct clksel func_dmic_abe_gfclk_sel[] = { { .parent = &dmic_sync_mux_ck, .rates = div_1_0_rates }, { .parent = &pad_clks_ck, .rates = div_1_1_rates }, { .parent = &slimbus_clk, .rates = div_1_2_rates },@@ -1531,7 +1531,7 @@ static struct clk emif2_fck = { .recalc = &followparent_recalc, }; -static const struct clksel fdif_fclk_div[] = { +static struct clksel fdif_fclk_div[] = { { .parent = &dpll_per_m4x2_ck, .rates = div3_1to4_rates }, { .parent =NULL }, };@@ -1692,7 +1692,7 @@ static struct clk gpmc_ick = { .recalc = &followparent_recalc, }; -static const struct clksel sgx_clk_mux_sel[] = { +static struct clksel sgx_clk_mux_sel[] = { { .parent = &dpll_core_m7x2_ck, .rates = div_1_0_rates }, { .parent = &dpll_per_m7x2_ck, .rates = div_1_1_rates }, { .parent =NULL },@@ -1723,7 +1723,7 @@ static struct clk hdq1w_fck = { .recalc = &followparent_recalc, }; -static const struct clksel hsi_fclk_div[] = { +static struct clksel hsi_fclk_div[] = { { .parent = &dpll_per_m2x2_ck, .rates = div3_1to4_rates }, { .parent =NULL }, };@@ -1867,7 +1867,7 @@ static struct clk mcasp_sync_mux_ck = { .recalc = &omap2_clksel_recalc, }; -static const struct clksel func_mcasp_abe_gfclk_sel[] = { +static struct clksel func_mcasp_abe_gfclk_sel[] = { { .parent = &mcasp_sync_mux_ck, .rates = div_1_0_rates }, { .parent = &pad_clks_ck, .rates = div_1_1_rates }, { .parent = &slimbus_clk, .rates = div_1_2_rates },@@ -1900,7 +1900,7 @@ static struct clk mcbsp1_sync_mux_ck = { .recalc = &omap2_clksel_recalc, }; -static const struct clksel func_mcbsp1_gfclk_sel[] = { +static struct clksel func_mcbsp1_gfclk_sel[] = { { .parent = &mcbsp1_sync_mux_ck, .rates = div_1_0_rates }, { .parent = &pad_clks_ck, .rates = div_1_1_rates }, { .parent = &slimbus_clk, .rates = div_1_2_rates },@@ -1933,7 +1933,7 @@ static struct clk mcbsp2_sync_mux_ck = { .recalc = &omap2_clksel_recalc, }; -static const struct clksel func_mcbsp2_gfclk_sel[] = { +static struct clksel func_mcbsp2_gfclk_sel[] = { { .parent = &mcbsp2_sync_mux_ck, .rates = div_1_0_rates }, { .parent = &pad_clks_ck, .rates = div_1_1_rates }, { .parent = &slimbus_clk, .rates = div_1_2_rates },@@ -1966,7 +1966,7 @@ static struct clk mcbsp3_sync_mux_ck = { .recalc = &omap2_clksel_recalc, }; -static const struct clksel func_mcbsp3_gfclk_sel[] = { +static struct clksel func_mcbsp3_gfclk_sel[] = { { .parent = &mcbsp3_sync_mux_ck, .rates = div_1_0_rates }, { .parent = &pad_clks_ck, .rates = div_1_1_rates }, { .parent = &slimbus_clk, .rates = div_1_2_rates },@@ -1999,7 +1999,7 @@ static struct clk mcbsp4_sync_mux_ck = { .recalc = &omap2_clksel_recalc, }; -static const struct clksel per_mcbsp4_gfclk_sel[] = { +static struct clksel per_mcbsp4_gfclk_sel[] = { { .parent = &mcbsp4_sync_mux_ck, .rates = div_1_0_rates }, { .parent = &pad_clks_ck, .rates = div_1_1_rates }, { .parent =NULL },@@ -2401,7 +2401,7 @@ static struct clk timer4_fck = { .clkdm_name = "l4_per_clkdm", }; -static const struct clksel timer5_sync_mux_sel[] = { +static struct clksel timer5_sync_mux_sel[] = { { .parent = &syc_clk_div_ck, .rates = div_1_0_rates }, { .parent = &sys_32k_ck, .rates = div_1_1_rates }, { .parent =NULL },@@ -2532,7 +2532,7 @@ static struct clk usb_host_fs_fck = { .recalc = &followparent_recalc, }; -static const struct clksel utmi_p1_gfclk_sel[] = { +static struct clksel utmi_p1_gfclk_sel[] = { { .parent = &init_60m_fclk, .rates = div_1_0_rates }, { .parent = &xclk60mhsp1_ck, .rates = div_1_1_rates }, { .parent =NULL },@@ -2559,7 +2559,7 @@ static struct clk usb_host_hs_utmi_p1_clk = { .recalc = &followparent_recalc, }; -static const struct clksel utmi_p2_gfclk_sel[] = { +static struct clksel utmi_p2_gfclk_sel[] = { { .parent = &init_60m_fclk, .rates = div_1_0_rates }, { .parent = &xclk60mhsp2_ck, .rates = div_1_1_rates }, { .parent =NULL },@@ -2656,7 +2656,7 @@ static struct clk usb_host_hs_fck = { .recalc = &followparent_recalc, }; -static const struct clksel otg_60m_gfclk_sel[] = { +static struct clksel otg_60m_gfclk_sel[] = { { .parent = &utmi_phy_clkout_ck, .rates = div_1_0_rates }, { .parent = &xclk60motg_ck, .rates = div_1_1_rates }, { .parent =NULL },@@ -2743,13 +2743,13 @@ static struct clk usb_tll_hs_ick = { .recalc = &followparent_recalc, }; -static const struct clksel_rate div2_14to18_rates[] = { +static struct clksel_rate div2_14to18_rates[] = { { .div =14 , .val =0 , .flags =RATE_IN_4430 }, { .div =18 , .val =1 , .flags =RATE_IN_4430 }, { .div =0 }, }; -static const struct clksel usim_fclk_div[] = { +static struct clksel usim_fclk_div[] = { { .parent = &dpll_per_m4x2_ck, .rates = div2_14to18_rates }, { .parent =NULL }, };@@ -2807,7 +2807,7 @@ static struct clk wd_timer3_fck = { };/* Remaining optional clocks */ -static const struct clksel stm_clk_div_div[] = { +static struct clksel stm_clk_div_div[] = { { .parent = &pmd_stm_clock_mux_ck, .rates = div3_1to4_rates }, { .parent =NULL }, };@@ -2824,7 +2824,7 @@ static struct clk stm_clk_div_ck = { .set_rate = &omap2_clksel_set_rate, }; -static const struct clksel trace_clk_div_div[] = { +static struct clksel trace_clk_div_div[] = { { .parent = &pmd_trace_clk_mux_ck, .rates = div3_1to4_rates }, { .parent =NULL }, };@@ -2843,7 +2843,7 @@ static struct clk trace_clk_div_ck = {/* SCRM aux clk nodes */ -static const struct clksel auxclk_sel[] = { +static struct clksel auxclk_sel[] = { { .parent = &sys_clkin_ck, .rates = div_1_0_rates }, { .parent = &dpll_core_m3x2_ck, .rates = div_1_1_rates }, { .parent = &dpll_per_m3x2_ck, .rates = div_1_2_rates },@@ -2927,7 +2927,7 @@ static struct clk auxclk5_ck = { .enable_bit = OMAP4_ENABLE_SHIFT, }; -static const struct clksel auxclkreq_sel[] = { +static struct clksel auxclkreq_sel[] = { { .parent = &auxclk0_ck, .rates = div_1_0_rates }, { .parent = &auxclk1_ck, .rates = div_1_1_rates }, { .parent = &auxclk2_ck, .rates = div_1_2_rates },arch/arm/plat-omap/clock.c +10
-1@@ -308,6 +308,16 @@ void clk_enable_init_clocks(void) } } +static struct clk *_omap_clk_get_by_name (const char *name) +{ +struct clk *c; + +list_for_each_entry (c, &clocks, node) +if (!strcmp (c->name, name)) +return c; +return NULL ; +} +/** * omap_clk_get_by_name - locate OMAP struct clk by its name * @name: name of the struct clk to locate @@ -318,21 +328,45 @@ void clk_enable_init_clocks(void)*/ struct clk *omap_clk_get_by_name (const char *name) { -struct clk *c;struct clk *ret =NULL ;
Quoted 13 lines
arch/arm/plat-omap/clock.c void clk_enable_init_clocks(void)
Quoted 13 lines
arch/arm/plat-omap/clock.c +12
-0mutex_lock (&clocks_mutex); + ret =_omap_clk_get_by_name (name); +mutex_unlock (&clocks_mutex); + +return ret; +} + +static inline void omap_init_dpll_data_clk_pts (struct dpll_data *dd) +{ +if (!dd->clk_ref && dd->clk_ref_name) + dd->clk_ref =_omap_clk_get_by_name (dd->clk_ref_name); +if (!dd->clk_bypass && dd->clk_bypass_name) + dd->clk_bypass =
_omap_clk_get_by_name(dd->clk_bypass_name);
Quoted 27 lines
Quoted 27 lines
arch/arm/plat-omap/clock.c +19
-4+} + +static inline void omap_init_clksel_clk_pts (struct clksel *clks) +{ +if (!clks->parent && clks->parent_name) + clks->parent =_omap_clk_get_by_name (clks->parent_name); +} + +void omap_init_clk_pts (void ) +{ +struct clk *c; + +mutex_lock (&clocks_mutex);list_for_each_entry (c, &clocks, node) { -if (!strcmp (c->name, name)) { - ret = c; -break ; - } +if (!c->parent && c->parent_name) + c->parent =_omap_clk_get_by_name (c->parent_name); +if (c->dpll_data) +omap_init_dpll_data_clk_pts (c->dpll_data); +if (c->clksel) +omap_init_clksel_clk_pts (c->clksel); }
Quoted 7 lines
Review
Quoted 7 lines
arch/arm/plat-omap/clock.c +0
-2mutex_unlock (&clocks_mutex); - -return ret; }/* (quoted diff) +0
-0
b/arch/arm/plat-omap/include/plat/clock.h
Quoted 6 lines
arch/arm/plat-omap/include/plat/clock.h struct clksel_rate { · line 86
Quoted 6 lines
index 8eb0ada..dc0d9fd 100644
arch/arm/plat-omap/include/plat/clock.h +0
-0@@ -85,6 +85,7 @@ struct clksel_rate {/** * struct clksel - available parent clocks, and a pointer to their
divisors
Quoted 43 lines
Quoted 43 lines
arch/arm/plat-omap/include/plat/clock.h +7
-0* @parent: struct clk * to a possible parent clock +* @parent_name: Name of the possible parent clock * @rates: available divisors for this parent clock * * A struct clksel is always associated with one or more struct clks @@ -92,6 +93,7 @@ struct clksel_rate {*/ struct clksel {struct clk *parent; +const char *parent_name;const struct clksel_rate *rates; };@@ -101,7 +103,9 @@ struct clksel {* @mult_mask: mask of the DPLL M bitfield in @mult_div1_reg * @div1_mask: mask of the DPLL N bitfield in @mult_div1_reg * @clk_bypass: struct clk pointer to the clock's bypass clock input +* @clk_bypass_name: Name of the clock's bypass clock input * @clk_ref: struct clk pointer to the clock's reference clock input +* @clk_ref_name: Name of the clock's reference clock input * @control_reg: register containing the DPLL mode bitfield * @enable_mask: mask of the DPLL mode bitfield in @control_reg * @rate_tolerance: maximum variance allowed from target rate (in Hz) @@ -143,7 +147,9 @@ struct dpll_data {u32 mult_mask;u32 div1_mask;struct clk *clk_bypass; +const char *clk_bypass_name;struct clk *clk_ref; +const char *clk_ref_name;void __iomem *control_reg;u32 enable_mask;unsigned int rate_tolerance;@@ -230,6 +236,7 @@ struct clk {const struct clkops *ops;const char *name;struct clk *parent; +const char *parent_name;struct list_head children;struct list_head sibling;/* node for children */ unsigned long rate;@@ -245,7 +252,7 @@ struct clk {#ifdef CONFIG_ARCH_OMAP2PLUS
Quoted 8 lines
arch/arm/plat-omap/include/plat/clock.h extern void clk_init_cpufreq_table(struct
Quoted 8 lines
arch/arm/plat-omap/include/plat/clock.h +1
-1void __iomem *clksel_reg;u32 clksel_mask; -const struct clksel *clksel; +struct clksel *clksel;struct dpll_data *dpll_data;const char *clkdm_name;struct clockdomain *clkdm;@@ -292,7 +299,7 @@ extern void clk_init_cpufreq_table(struct
cpufreq_frequency_table **table);
Quoted 1 line
arch/arm/plat-omap/include/plat/clock.h extern void clk_init_cpufreq_table(struct · line 299
Quoted 1 line
arch/arm/plat-omap/include/plat/clock.h +0
-0extern void clk_exit_cpufreq_table(struct cpufreq_frequency_table
**table);
Quoted 7 lines
Quoted 7 lines
arch/arm/plat-omap/include/plat/clock.h +1
-1#endif extern struct clk *omap_clk_get_by_name (const char *name); - +extern void omap_init_clk_pts (void );extern const struct clkops clkops_null;extern struct clk dummy_ck;
Re: [RFC 1/3] OMAP: clocks: Use clk names instead of clk pointers
Hi Rajendra,
Quoted 42 lines · Rajendra Nayak
Quoted 6 lines
-----Original Message-----
From: Kevin Hilman [mailto:[email protected]]
Sent: Tuesday, January 25, 2011 3:38 AM
To: Rajendra Nayak
Cc: [email protected]; [email protected]
Subject: Re: [RFC 1/3] OMAP: clocks: Use clk names instead of clkpointers
Quoted 19 lines
Quoted 16 lines · Rajendra Nayak
There are various instances of clk pointers being embedded within structures in the clock framework to refer to clk parents, reference clocks, bypass clocks etc.
The right way to reference these is by their name and not by embedding direct pointers to these clks.Hence make provision to be able to provide clock names to refer to parents and bypass/ref clks and populate the clk pointers at runtime.
This requires the const qualifier to be dropped for struct clksel within struct clk and hence needs clksel struct definitions to be changed in all clock*_data.c files.
Quoted 7 lines
Quoted 1 line
Signed-off-by Rajendra Nayak <[email protected]>I think the changelog needs a little more description about when the names are used instead of the pointers. It looks like the names are only used at init time to select the right pointers, but the rest of the framework continues to use pointers as before, right? This isnt' very clear from the changelog.
Right, the basic idea was to prevent the binding of clk pointers at compile time and instead do it at runtime. The rest of the code which uses pointers would still go ahead and use them.
This is similar to what happens in other frameworks like hwmod (which has themain_clkname populated and runtime maps to the relevant clk pointer) or clock framework itself (to identify the clockdomains associated with the clks)
Quoted 7 lines
Also the patch leaves all the existing clk pointer associations at compile time as is and only uses this reference by name for a few nodes that get added in the later patches in the series.
If the approach seems ok, then a patch to replace all the existing pointer based referencing with the name based referencing can also be pushed.
The approach seems OK to me. I just think the changelog needs to be a bit clearer since on first read, it sounded (to me) like names were going to replace pointers for more than just init time.
Kevin
Quoted 2,044 lines
Regards,
RajendraQuoted 8 lines
Kevin
Quoted 4 lines
--- arch/arm/mach-omap2/clock2420_data.c | 86 +++++++++--------- arch/arm/mach-omap2/clock2430_data.c | 88 ++++++++++---------- arch/arm/mach-omap2/clock3xxx_data.c | 144+++++++++++++++---------------
Quoted 1 line
Quoted 1 line
arch/arm/mach-omap2/clock44xx_data.c | 136+++++++++++++++---------------
Quoted 5 lines
Review
Quoted 5 lines
arch/arm/plat-omap/clock.c | 48 +++++++++-- arch/arm/plat-omap/include/plat/clock.h | 11 ++- 6 files changed, 277 insertions(+), 236 deletions(-)(quoted diff) +0
-0
b/arch/arm/mach-omap2/clock2420_data.cQuoted 82 lines
Quoted 82 lines
index 0a992bc..5662e51 100644
arch/arm/mach-omap2/clock2420_data.c +11
-11@@ -161,17 +161,17 @@ static struct clk apll54_ck = {/* func_54m_ck */ -static const struct clksel_rate func_54m_apll54_rates[] = { +static struct clksel_rate func_54m_apll54_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_24XX }, { .div =0 }, }; -static const struct clksel_rate func_54m_alt_rates[] = { +static struct clksel_rate func_54m_alt_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =0 }, }; -static const struct clksel func_54m_clksel[] = { +static struct clksel func_54m_clksel[] = { { .parent = &apll54_ck, .rates = func_54m_apll54_rates, }, { .parent = &alt_ck, .rates = func_54m_alt_rates, }, { .parent =NULL },@@ -207,17 +207,17 @@ static struct clk func_96m_ck = {/* func_48m_ck */ -static const struct clksel_rate func_48m_apll96_rates[] = { +static struct clksel_rate func_48m_apll96_rates[] = { { .div =2 , .val =0 , .flags =RATE_IN_24XX }, { .div =0 }, }; -static const struct clksel_rate func_48m_alt_rates[] = { +static struct clksel_rate func_48m_alt_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =0 }, }; -static const struct clksel func_48m_clksel[] = { +static struct clksel func_48m_clksel[] = { { .parent = &apll96_ck, .rates = func_48m_apll96_rates }, { .parent = &alt_ck, .rates = func_48m_alt_rates }, { .parent =NULL }@@ -262,27 +262,27 @@ static struct clk wdt1_osc_ck = {* harmless since access to those clocks are gated by the struct clk * flags fields, which mark them as 2420-only. */ -static const struct clksel_rate common_clkout_src_core_rates[] = { +static struct clksel_rate common_clkout_src_core_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel_rate common_clkout_src_sys_rates[] = { +static struct clksel_rate common_clkout_src_sys_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel_rate common_clkout_src_96m_rates[] = { +static struct clksel_rate common_clkout_src_96m_rates[] = { { .div =1 , .val =2 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel_rate common_clkout_src_54m_rates[] = { +static struct clksel_rate common_clkout_src_54m_rates[] = { { .div =1 , .val =3 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel common_clkout_src_clksel[] = { +static struct clksel common_clkout_src_clksel[] = { { .parent = &core_ck, .rates = common_clkout_src_core_rates }, { .parent = &sys_ck, .rates = common_clkout_src_sys_rates }, { .parent = &func_96m_ck, .rates = common_clkout_src_96m_rates },@@ -306,7 +306,7 @@ static struct clk sys_clkout_src = { .set_rate = &omap2_clksel_set_rate };Quoted 6 lines
arch/arm/mach-omap2/clock2420_data.c static const struct clksel_rate
Quoted 6 lines
arch/arm/mach-omap2/clock2420_data.c +1
-1-static const struct clksel_rate common_clkout_rates[] = { +static struct clksel_rate common_clkout_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_24XX }, { .div =2 , .val =1 , .flags =RATE_IN_24XX }, { .div =4 , .val =2 , .flags =RATE_IN_24XX },@@ -315,7 +315,7 @@ static const struct clksel_ratecommon_clkout_rates[] = {
Quoted 12 lines
Quoted 12 lines
arch/arm/mach-omap2/clock2420_data.c +1
-1{ .div = 0 }, }; -static const struct clksel sys_clkout_clksel[] = { +static struct clksel sys_clkout_clksel[] = { { .parent = &sys_clkout_src, .rates = common_clkout_rates }, { .parent =NULL } };@@ -350,7 +350,7 @@ static struct clk sys_clkout2_src = { .set_rate = &omap2_clksel_set_rate };Quoted 15 lines
arch/arm/mach-omap2/clock2420_data.c static const struct clksel_rate mpu_core_rates[] =
Quoted 15 lines
arch/arm/mach-omap2/clock2420_data.c +2
-2-static const struct clksel sys_clkout2_clksel[] = { +static struct clksel sys_clkout2_clksel[] = { { .parent = &sys_clkout2_src, .rates = common_clkout_rates }, { .parent =NULL } };@@ -390,7 +390,7 @@ static struct clk emul_ck = {* - Base divider comes from: CM_CLKSEL_MPU * */ -static const struct clksel_rate mpu_core_rates[] = { +static struct clksel_rate mpu_core_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =2 , .val =2 , .flags =RATE_IN_24XX }, { .div =4 , .val =4 , .flags =RATE_IN_242X },@@ -399,7 +399,7 @@ static const struct clksel_rate mpu_core_rates[] ={
Quoted 18 lines
arch/arm/mach-omap2/clock2420_data.c static const struct clksel_rate
Quoted 18 lines
arch/arm/mach-omap2/clock2420_data.c +2
-2{ .div = 0 }, }; -static const struct clksel mpu_clksel[] = { +static struct clksel mpu_clksel[] = { { .parent = &core_ck, .rates = mpu_core_rates }, { .parent =NULL } };@@ -426,7 +426,7 @@ static struct clk mpu_ck = { /* Control cpu */* controls. The other branch gets further divided by 2 then possibly * routed into a synchronizer and out of clocks abc. */ -static const struct clksel_rate dsp_fck_core_rates[] = { +static struct clksel_rate dsp_fck_core_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =2 , .val =2 , .flags =RATE_IN_24XX }, { .div =3 , .val =3 , .flags =RATE_IN_24XX },@@ -437,7 +437,7 @@ static const struct clksel_ratedsp_fck_core_rates[] = {
Quoted 19 lines
Quoted 19 lines
arch/arm/mach-omap2/clock2420_data.c +2
-2{ .div = 0 }, }; -static const struct clksel dsp_fck_clksel[] = { +static struct clksel dsp_fck_clksel[] = { { .parent = &core_ck, .rates = dsp_fck_core_rates }, { .parent =NULL } };@@ -456,13 +456,13 @@ static struct clk dsp_fck = { };/* DSP interface clock */ -static const struct clksel_rate dsp_irate_ick_rates[] = { +static struct clksel_rate dsp_irate_ick_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =2 , .val =2 , .flags =RATE_IN_24XX }, { .div =0 }, };Quoted 7 lines
arch/arm/mach-omap2/clock2420_data.c static struct clk iva1_mpu_int_ifck = { · line 536
Quoted 7 lines
arch/arm/mach-omap2/clock2420_data.c +1
-1-static const struct clksel dsp_irate_ick_clksel[] = { +static struct clksel dsp_irate_ick_clksel[] = { { .parent = &dsp_fck, .rates = dsp_irate_ick_rates }, { .parent =NULL } };@@ -536,7 +536,7 @@ static struct clk iva1_mpu_int_ifck = {* may very well need notification when the clock changes. Currently for low
Quoted 8 lines
arch/arm/mach-omap2/clock2420_data.c static const struct clksel_rate
Quoted 8 lines
arch/arm/mach-omap2/clock2420_data.c +1
-1* operating points, these are taken care of in sleep.S. */ -static const struct clksel_rate core_l3_core_rates[] = { +static struct clksel_rate core_l3_core_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =2 , .val =2 , .flags =RATE_IN_242X }, { .div =4 , .val =4 , .flags =RATE_IN_24XX },@@ -547,7 +547,7 @@ static const struct clksel_ratecore_l3_core_rates[] = {
Quoted 9 lines
arch/arm/mach-omap2/clock2420_data.c static struct clk core_l3_ck = { /* Used
Quoted 9 lines
arch/arm/mach-omap2/clock2420_data.c +1
-1{ .div = 0 } }; -static const struct clksel core_l3_clksel[] = { +static struct clksel core_l3_clksel[] = { { .parent = &core_ck, .rates = core_l3_core_rates }, { .parent =NULL } };@@ -564,14 +564,14 @@ static struct clk core_l3_ck = { /* Usedfor ick and fck, interconnect */
Quoted 11 lines
Quoted 11 lines
arch/arm/mach-omap2/clock2420_data.c +1
-1};/* usb_l4_ick */ -static const struct clksel_rate usb_l4_ick_core_l3_rates[] = { +static struct clksel_rate usb_l4_ick_core_l3_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =2 , .val =2 , .flags =RATE_IN_24XX }, { .div =4 , .val =4 , .flags =RATE_IN_24XX }, { .div =0 } };Quoted 6 lines
arch/arm/mach-omap2/clock2420_data.c static struct clk usb_l4_ick = { /* FS-USB
Quoted 6 lines
arch/arm/mach-omap2/clock2420_data.c +1
-1-static const struct clksel usb_l4_ick_clksel[] = { +static struct clksel usb_l4_ick_clksel[] = { { .parent = &core_l3_ck, .rates = usb_l4_ick_core_l3_rates }, { .parent =NULL }, };@@ -597,13 +597,13 @@ static struct clk usb_l4_ick = { /* FS-USBinterface clock */
Quoted 1 line
arch/arm/mach-omap2/clock2420_data.c static struct clk usb_l4_ick = { /* FS-USB · line 597
Quoted 1 line
arch/arm/mach-omap2/clock2420_data.c +0
-0* functional clocks. Fixed APLL functional source clocks are managed in
Quoted 9 lines
Quoted 9 lines
arch/arm/mach-omap2/clock2420_data.c +1
-1* this domain. */ -static const struct clksel_rate l4_core_l3_rates[] = { +static struct clksel_rate l4_core_l3_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =2 , .val =2 , .flags =RATE_IN_24XX }, { .div =0 } };Quoted 6 lines
arch/arm/mach-omap2/clock2420_data.c static struct clk l4_ck = { /* used
Quoted 6 lines
arch/arm/mach-omap2/clock2420_data.c +1
-1-static const struct clksel l4_clksel[] = { +static struct clksel l4_clksel[] = { { .parent = &core_l3_ck, .rates = l4_core_l3_rates }, { .parent =NULL } };@@ -627,7 +627,7 @@ static struct clk l4_ck = { /* usedboth as an ick and fck */
Quoted 9 lines
arch/arm/mach-omap2/clock2420_data.c static const struct clksel_rate
Quoted 9 lines
arch/arm/mach-omap2/clock2420_data.c +1
-1* * ssr = core/1/2/3/4/5, sst = 1/2 ssr. */ -static const struct clksel_rate ssi_ssr_sst_fck_core_rates[] = { +static struct clksel_rate ssi_ssr_sst_fck_core_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =2 , .val =2 , .flags =RATE_IN_24XX }, { .div =3 , .val =3 , .flags =RATE_IN_24XX },@@ -637,7 +637,7 @@ static const struct clksel_ratessi_ssr_sst_fck_core_rates[] = {
Quoted 27 lines
Quoted 27 lines
arch/arm/mach-omap2/clock2420_data.c +3
-3{ .div = 0 } }; -static const struct clksel ssi_ssr_sst_fck_clksel[] = { +static struct clksel ssi_ssr_sst_fck_clksel[] = { { .parent = &core_ck, .rates = ssi_ssr_sst_fck_core_rates }, { .parent =NULL } };@@ -683,7 +683,7 @@ static struct clk ssi_l4_ick = {*/ /* This clksel struct is shared between gfx_3d_fck and gfx_2d_fck */ -static const struct clksel gfx_fck_clksel[] = { +static struct clksel gfx_fck_clksel[] = { { .parent = &core_l3_ck, .rates = gfx_l3_rates }, { .parent =NULL }, };@@ -736,12 +736,12 @@ static struct clk gfx_ick = {*/ /* XXX Add RATE_NOT_VALIDATED */ -static const struct clksel_rate dss1_fck_sys_rates[] = { +static struct clksel_rate dss1_fck_sys_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_24XX }, { .div =0 } };Quoted 6 lines
arch/arm/mach-omap2/clock2420_data.c static const struct clksel_rate
Quoted 6 lines
arch/arm/mach-omap2/clock2420_data.c +1
-1-static const struct clksel_rate dss1_fck_core_rates[] = { +static struct clksel_rate dss1_fck_core_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =2 , .val =2 , .flags =RATE_IN_24XX }, { .div =3 , .val =3 , .flags =RATE_IN_24XX },@@ -755,7 +755,7 @@ static const struct clksel_ratedss1_fck_core_rates[] = {
Quoted 24 lines
Quoted 24 lines
arch/arm/mach-omap2/clock2420_data.c +3
-3{ .div = 0 } }; -static const struct clksel dss1_fck_clksel[] = { +static struct clksel dss1_fck_clksel[] = { { .parent = &sys_ck, .rates = dss1_fck_sys_rates }, { .parent = &core_ck, .rates = dss1_fck_core_rates }, { .parent =NULL },@@ -785,17 +785,17 @@ static struct clk dss1_fck = { .recalc = &omap2_clksel_recalc, }; -static const struct clksel_rate dss2_fck_sys_rates[] = { +static struct clksel_rate dss2_fck_sys_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel_rate dss2_fck_48m_rates[] = { +static struct clksel_rate dss2_fck_48m_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =0 } };Quoted 6 lines
arch/arm/mach-omap2/clock2420_data.c static struct clk dss_54m_fck = { /* Alt clk
Quoted 6 lines
arch/arm/mach-omap2/clock2420_data.c +1
-1-static const struct clksel dss2_fck_clksel[] = { +static struct clksel dss2_fck_clksel[] = { { .parent = &sys_ck, .rates = dss2_fck_sys_rates }, { .parent = &func_48m_ck, .rates = dss2_fck_48m_rates }, { .parent =NULL }@@ -831,12 +831,12 @@ static struct clk dss_54m_fck = { /* Alt clkused in power management */
Quoted 1 line
arch/arm/mach-omap2/clock2420_data.c static struct clk dss_54m_fck = { /* Alt clk · line 831
Quoted 1 line
arch/arm/mach-omap2/clock2420_data.c +0
-0* here will likely have an L4 interface parent, and may have multiple
Quoted 44 lines
Quoted 44 lines
arch/arm/mach-omap2/clock2420_data.c +6
-6* functional clock parents. */ -static const struct clksel_rate gpt_alt_rates[] = { +static struct clksel_rate gpt_alt_rates[] = { { .div =1 , .val =2 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel omap24xx_gpt_clksel[] = { +static struct clksel omap24xx_gpt_clksel[] = { { .parent = &func_32k_ck, .rates = gpt_32k_rates }, { .parent = &sys_ck, .rates = gpt_sys_rates }, { .parent = &alt_ck, .rates = gpt_alt_rates },@@ -1142,17 +1142,17 @@ static struct clk mcbsp1_ick = { .recalc = &followparent_recalc, }; -static const struct clksel_rate common_mcbsp_96m_rates[] = { +static struct clksel_rate common_mcbsp_96m_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel_rate common_mcbsp_mcbsp_rates[] = { +static struct clksel_rate common_mcbsp_mcbsp_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel mcbsp_fck_clksel[] = { +static struct clksel mcbsp_fck_clksel[] = { { .parent = &func_96m_ck, .rates = common_mcbsp_96m_rates }, { .parent = &mcbsp_clks, .rates = common_mcbsp_mcbsp_rates }, { .parent =NULL }@@ -1618,12 +1618,12 @@ static struct clk vlynq_ick = { .recalc = &followparent_recalc, }; -static const struct clksel_rate vlynq_fck_96m_rates[] = { +static struct clksel_rate vlynq_fck_96m_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_242X }, { .div =0 } };Quoted 6 lines
arch/arm/mach-omap2/clock2420_data.c static const struct clksel_rate
Quoted 6 lines
arch/arm/mach-omap2/clock2420_data.c +1
-1-static const struct clksel_rate vlynq_fck_core_rates[] = { +static struct clksel_rate vlynq_fck_core_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_242X }, { .div =2 , .val =2 , .flags =RATE_IN_242X }, { .div =3 , .val =3 , .flags =RATE_IN_242X },@@ -1637,7 +1637,7 @@ static const struct clksel_ratevlynq_fck_core_rates[] = {
Quoted 9 lines
Review
Quoted 9 lines
arch/arm/mach-omap2/clock2420_data.c +1
-1{ .div = 0 } }; -static const struct clksel vlynq_fck_clksel[] = { +static struct clksel vlynq_fck_clksel[] = { { .parent = &func_96m_ck, .rates = vlynq_fck_96m_rates }, { .parent = &core_ck, .rates = vlynq_fck_core_rates }, { .parent =NULL }(quoted diff) +0
-0
b/arch/arm/mach-omap2/clock2430_data.cQuoted 103 lines
Quoted 103 lines
index c047dcd..6f08a57 100644
arch/arm/mach-omap2/clock2430_data.c +14
-14@@ -161,17 +161,17 @@ static struct clk apll54_ck = {/* func_54m_ck */ -static const struct clksel_rate func_54m_apll54_rates[] = { +static struct clksel_rate func_54m_apll54_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_24XX }, { .div =0 }, }; -static const struct clksel_rate func_54m_alt_rates[] = { +static struct clksel_rate func_54m_alt_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =0 }, }; -static const struct clksel func_54m_clksel[] = { +static struct clksel func_54m_clksel[] = { { .parent = &apll54_ck, .rates = func_54m_apll54_rates, }, { .parent = &alt_ck, .rates = func_54m_alt_rates, }, { .parent =NULL },@@ -198,17 +198,17 @@ static struct clk core_ck = { };/* func_96m_ck */ -static const struct clksel_rate func_96m_apll96_rates[] = { +static struct clksel_rate func_96m_apll96_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_24XX }, { .div =0 }, }; -static const struct clksel_rate func_96m_alt_rates[] = { +static struct clksel_rate func_96m_alt_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_243X }, { .div =0 }, }; -static const struct clksel func_96m_clksel[] = { +static struct clksel func_96m_clksel[] = { { .parent = &apll96_ck, .rates = func_96m_apll96_rates }, { .parent = &alt_ck, .rates = func_96m_alt_rates }, { .parent =NULL }@@ -228,17 +228,17 @@ static struct clk func_96m_ck = {/* func_48m_ck */ -static const struct clksel_rate func_48m_apll96_rates[] = { +static struct clksel_rate func_48m_apll96_rates[] = { { .div =2 , .val =0 , .flags =RATE_IN_24XX }, { .div =0 }, }; -static const struct clksel_rate func_48m_alt_rates[] = { +static struct clksel_rate func_48m_alt_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =0 }, }; -static const struct clksel func_48m_clksel[] = { +static struct clksel func_48m_clksel[] = { { .parent = &apll96_ck, .rates = func_48m_apll96_rates }, { .parent = &alt_ck, .rates = func_48m_alt_rates }, { .parent =NULL }@@ -283,27 +283,27 @@ static struct clk wdt1_osc_ck = {* harmless since access to those clocks are gated by the struct clk * flags fields, which mark them as 2420-only. */ -static const struct clksel_rate common_clkout_src_core_rates[] = { +static struct clksel_rate common_clkout_src_core_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel_rate common_clkout_src_sys_rates[] = { +static struct clksel_rate common_clkout_src_sys_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel_rate common_clkout_src_96m_rates[] = { +static struct clksel_rate common_clkout_src_96m_rates[] = { { .div =1 , .val =2 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel_rate common_clkout_src_54m_rates[] = { +static struct clksel_rate common_clkout_src_54m_rates[] = { { .div =1 , .val =3 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel common_clkout_src_clksel[] = { +static struct clksel common_clkout_src_clksel[] = { { .parent = &core_ck, .rates = common_clkout_src_core_rates }, { .parent = &sys_ck, .rates = common_clkout_src_sys_rates }, { .parent = &func_96m_ck, .rates = common_clkout_src_96m_rates },@@ -327,7 +327,7 @@ static struct clk sys_clkout_src = { .set_rate = &omap2_clksel_set_rate };Quoted 6 lines
arch/arm/mach-omap2/clock2430_data.c static const struct clksel_rate
Quoted 6 lines
arch/arm/mach-omap2/clock2430_data.c +1
-1-static const struct clksel_rate common_clkout_rates[] = { +static struct clksel_rate common_clkout_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_24XX }, { .div =2 , .val =1 , .flags =RATE_IN_24XX }, { .div =4 , .val =2 , .flags =RATE_IN_24XX },@@ -336,7 +336,7 @@ static const struct clksel_ratecommon_clkout_rates[] = {
Quoted 19 lines
Quoted 19 lines
arch/arm/mach-omap2/clock2430_data.c +2
-2{ .div = 0 }, }; -static const struct clksel sys_clkout_clksel[] = { +static struct clksel sys_clkout_clksel[] = { { .parent = &sys_clkout_src, .rates = common_clkout_rates }, { .parent =NULL } };@@ -375,13 +375,13 @@ static struct clk emul_ck = {* - Base divider comes from: CM_CLKSEL_MPU * */ -static const struct clksel_rate mpu_core_rates[] = { +static struct clksel_rate mpu_core_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =2 , .val =2 , .flags =RATE_IN_24XX }, { .div =0 }, };Quoted 15 lines
arch/arm/mach-omap2/clock2430_data.c static const struct clksel_rate
Quoted 15 lines
arch/arm/mach-omap2/clock2430_data.c +2
-2-static const struct clksel mpu_clksel[] = { +static struct clksel mpu_clksel[] = { { .parent = &core_ck, .rates = mpu_core_rates }, { .parent =NULL } };@@ -408,7 +408,7 @@ static struct clk mpu_ck = { /* Control cpu */* controls. The other branch gets further divided by 2 then possibly * routed into a synchronizer and out of clocks abc. */ -static const struct clksel_rate dsp_fck_core_rates[] = { +static struct clksel_rate dsp_fck_core_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =2 , .val =2 , .flags =RATE_IN_24XX }, { .div =3 , .val =3 , .flags =RATE_IN_24XX },@@ -416,7 +416,7 @@ static const struct clksel_ratedsp_fck_core_rates[] = {
Quoted 20 lines
Quoted 20 lines
arch/arm/mach-omap2/clock2430_data.c +2
-2{ .div = 0 }, }; -static const struct clksel dsp_fck_clksel[] = { +static struct clksel dsp_fck_clksel[] = { { .parent = &core_ck, .rates = dsp_fck_core_rates }, { .parent =NULL } };@@ -435,14 +435,14 @@ static struct clk dsp_fck = { };/* DSP interface clock */ -static const struct clksel_rate dsp_irate_ick_rates[] = { +static struct clksel_rate dsp_irate_ick_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =2 , .val =2 , .flags =RATE_IN_24XX }, { .div =3 , .val =3 , .flags =RATE_IN_243X }, { .div =0 }, };Quoted 7 lines
arch/arm/mach-omap2/clock2430_data.c static struct clk iva2_1_ick = { · line 486
Quoted 7 lines
arch/arm/mach-omap2/clock2430_data.c +1
-1-static const struct clksel dsp_irate_ick_clksel[] = { +static struct clksel dsp_irate_ick_clksel[] = { { .parent = &dsp_fck, .rates = dsp_irate_ick_rates }, { .parent =NULL } };@@ -486,14 +486,14 @@ static struct clk iva2_1_ick = {* may very well need notification when the clock changes. Currently for low
Quoted 10 lines
Quoted 10 lines
arch/arm/mach-omap2/clock2430_data.c +1
-1* operating points, these are taken care of in sleep.S. */ -static const struct clksel_rate core_l3_core_rates[] = { +static struct clksel_rate core_l3_core_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =4 , .val =4 , .flags =RATE_IN_24XX }, { .div =6 , .val =6 , .flags =RATE_IN_24XX }, { .div =0 } };Quoted 6 lines
arch/arm/mach-omap2/clock2430_data.c static struct clk core_l3_ck = { /* Used
Quoted 6 lines
arch/arm/mach-omap2/clock2430_data.c +1
-1-static const struct clksel core_l3_clksel[] = { +static struct clksel core_l3_clksel[] = { { .parent = &core_ck, .rates = core_l3_core_rates }, { .parent =NULL } };@@ -510,14 +510,14 @@ static struct clk core_l3_ck = { /* Usedfor ick and fck, interconnect */
Quoted 11 lines
Quoted 11 lines
arch/arm/mach-omap2/clock2430_data.c +1
-1};/* usb_l4_ick */ -static const struct clksel_rate usb_l4_ick_core_l3_rates[] = { +static struct clksel_rate usb_l4_ick_core_l3_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =2 , .val =2 , .flags =RATE_IN_24XX }, { .div =4 , .val =4 , .flags =RATE_IN_24XX }, { .div =0 } };Quoted 6 lines
arch/arm/mach-omap2/clock2430_data.c static struct clk usb_l4_ick = { /* FS-USB
Quoted 6 lines
arch/arm/mach-omap2/clock2430_data.c +1
-1-static const struct clksel usb_l4_ick_clksel[] = { +static struct clksel usb_l4_ick_clksel[] = { { .parent = &core_l3_ck, .rates = usb_l4_ick_core_l3_rates }, { .parent =NULL }, };@@ -543,13 +543,13 @@ static struct clk usb_l4_ick = { /* FS-USBinterface clock */
Quoted 1 line
arch/arm/mach-omap2/clock2430_data.c static struct clk usb_l4_ick = { /* FS-USB · line 543
Quoted 1 line
arch/arm/mach-omap2/clock2430_data.c +0
-0* functional clocks. Fixed APLL functional source clocks are managed in
Quoted 9 lines
Quoted 9 lines
arch/arm/mach-omap2/clock2430_data.c +1
-1* this domain. */ -static const struct clksel_rate l4_core_l3_rates[] = { +static struct clksel_rate l4_core_l3_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =2 , .val =2 , .flags =RATE_IN_24XX }, { .div =0 } };Quoted 6 lines
arch/arm/mach-omap2/clock2430_data.c static struct clk l4_ck = { /* used
Quoted 6 lines
arch/arm/mach-omap2/clock2430_data.c +1
-1-static const struct clksel l4_clksel[] = { +static struct clksel l4_clksel[] = { { .parent = &core_l3_ck, .rates = l4_core_l3_rates }, { .parent =NULL } };@@ -573,7 +573,7 @@ static struct clk l4_ck = { /* usedboth as an ick and fck */
Quoted 9 lines
arch/arm/mach-omap2/clock2430_data.c static const struct clksel_rate
Quoted 9 lines
arch/arm/mach-omap2/clock2430_data.c +1
-1* * ssr = core/1/2/3/4/5, sst = 1/2 ssr. */ -static const struct clksel_rate ssi_ssr_sst_fck_core_rates[] = { +static struct clksel_rate ssi_ssr_sst_fck_core_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =2 , .val =2 , .flags =RATE_IN_24XX }, { .div =3 , .val =3 , .flags =RATE_IN_24XX },@@ -582,7 +582,7 @@ static const struct clksel_ratessi_ssr_sst_fck_core_rates[] = {
Quoted 11 lines
Quoted 11 lines
arch/arm/mach-omap2/clock2430_data.c +1
-1{ .div = 0 } }; -static const struct clksel ssi_ssr_sst_fck_clksel[] = { +static struct clksel ssi_ssr_sst_fck_clksel[] = { { .parent = &core_ck, .rates = ssi_ssr_sst_fck_core_rates }, { .parent =NULL } };@@ -628,7 +628,7 @@ static struct clk ssi_l4_ick = {*/ Quoted 16 lines
arch/arm/mach-omap2/clock2430_data.c static const struct clksel_rate
Quoted 16 lines
arch/arm/mach-omap2/clock2430_data.c +2
-2/* This clksel struct is shared between gfx_3d_fck and gfx_2d_fck */ -static const struct clksel gfx_fck_clksel[] = { +static struct clksel gfx_fck_clksel[] = { { .parent = &core_l3_ck, .rates = gfx_l3_rates }, { .parent =NULL }, };@@ -678,7 +678,7 @@ static struct clk gfx_ick = {* MDM_ICLK * These clocks are usable in chassis mode only. */ -static const struct clksel_rate mdm_ick_core_rates[] = { +static struct clksel_rate mdm_ick_core_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_243X }, { .div =4 , .val =4 , .flags =RATE_IN_243X }, { .div =6 , .val =6 , .flags =RATE_IN_243X },@@ -686,7 +686,7 @@ static const struct clksel_ratemdm_ick_core_rates[] = {
Quoted 18 lines
Quoted 18 lines
arch/arm/mach-omap2/clock2430_data.c +2
-2{ .div = 0 } }; -static const struct clksel mdm_ick_clksel[] = { +static struct clksel mdm_ick_clksel[] = { { .parent = &core_ck, .rates = mdm_ick_core_rates }, { .parent =NULL } };@@ -724,12 +724,12 @@ static struct clk mdm_osc_ck = {*/ /* XXX Add RATE_NOT_VALIDATED */ -static const struct clksel_rate dss1_fck_sys_rates[] = { +static struct clksel_rate dss1_fck_sys_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_24XX }, { .div =0 } };Quoted 6 lines
arch/arm/mach-omap2/clock2430_data.c static const struct clksel_rate
Quoted 6 lines
arch/arm/mach-omap2/clock2430_data.c +1
-1-static const struct clksel_rate dss1_fck_core_rates[] = { +static struct clksel_rate dss1_fck_core_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =2 , .val =2 , .flags =RATE_IN_24XX }, { .div =3 , .val =3 , .flags =RATE_IN_24XX },@@ -743,7 +743,7 @@ static const struct clksel_ratedss1_fck_core_rates[] = {
Quoted 24 lines
Quoted 24 lines
arch/arm/mach-omap2/clock2430_data.c +3
-3{ .div = 0 } }; -static const struct clksel dss1_fck_clksel[] = { +static struct clksel dss1_fck_clksel[] = { { .parent = &sys_ck, .rates = dss1_fck_sys_rates }, { .parent = &core_ck, .rates = dss1_fck_core_rates }, { .parent =NULL },@@ -773,17 +773,17 @@ static struct clk dss1_fck = { .recalc = &omap2_clksel_recalc, }; -static const struct clksel_rate dss2_fck_sys_rates[] = { +static struct clksel_rate dss2_fck_sys_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel_rate dss2_fck_48m_rates[] = { +static struct clksel_rate dss2_fck_48m_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =0 } };Quoted 6 lines
arch/arm/mach-omap2/clock2430_data.c static struct clk dss_54m_fck = { /* Alt clk
Quoted 6 lines
arch/arm/mach-omap2/clock2430_data.c +1
-1-static const struct clksel dss2_fck_clksel[] = { +static struct clksel dss2_fck_clksel[] = { { .parent = &sys_ck, .rates = dss2_fck_sys_rates }, { .parent = &func_48m_ck, .rates = dss2_fck_48m_rates }, { .parent =NULL }@@ -819,12 +819,12 @@ static struct clk dss_54m_fck = { /* Alt clkused in power management */
Quoted 1 line
arch/arm/mach-omap2/clock2430_data.c static struct clk dss_54m_fck = { /* Alt clk · line 819
Quoted 1 line
arch/arm/mach-omap2/clock2430_data.c +0
-0* here will likely have an L4 interface parent, and may have multiple
Quoted 29 lines
Quoted 29 lines
arch/arm/mach-omap2/clock2430_data.c +4
-4* functional clock parents. */ -static const struct clksel_rate gpt_alt_rates[] = { +static struct clksel_rate gpt_alt_rates[] = { { .div =1 , .val =2 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel omap24xx_gpt_clksel[] = { +static struct clksel omap24xx_gpt_clksel[] = { { .parent = &func_32k_ck, .rates = gpt_32k_rates }, { .parent = &sys_ck, .rates = gpt_sys_rates }, { .parent = &alt_ck, .rates = gpt_alt_rates },@@ -1130,17 +1130,17 @@ static struct clk mcbsp1_ick = { .recalc = &followparent_recalc, }; -static const struct clksel_rate common_mcbsp_96m_rates[] = { +static struct clksel_rate common_mcbsp_96m_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel_rate common_mcbsp_mcbsp_rates[] = { +static struct clksel_rate common_mcbsp_mcbsp_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =0 } };Quoted 6 lines
Review
Quoted 6 lines
arch/arm/mach-omap2/clock2430_data.c +1
-1-static const struct clksel mcbsp_fck_clksel[] = { +static struct clksel mcbsp_fck_clksel[] = { { .parent = &func_96m_ck, .rates = common_mcbsp_96m_rates }, { .parent = &mcbsp_clks, .rates = common_mcbsp_mcbsp_rates }, { .parent =NULL }(quoted diff) +0
-0
b/arch/arm/mach-omap2/clock3xxx_data.cQuoted 66 lines
Quoted 66 lines
index 403a4a1..9c87adb 100644
arch/arm/mach-omap2/clock3xxx_data.c +9
-9@@ -109,37 +109,37 @@ static struct clk virt_38_4m_ck = { .rate = 38400000, }; -static const struct clksel_rate osc_sys_12m_rates[] = { +static struct clksel_rate osc_sys_12m_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_3XXX }, { .div =0 } }; -static const struct clksel_rate osc_sys_13m_rates[] = { +static struct clksel_rate osc_sys_13m_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_3XXX }, { .div =0 } }; -static const struct clksel_rate osc_sys_16_8m_rates[] = { +static struct clksel_rate osc_sys_16_8m_rates[] = { { .div =1 , .val =5 , .flags =RATE_IN_3430ES2PLUS_36XX }, { .div =0 } }; -static const struct clksel_rate osc_sys_19_2m_rates[] = { +static struct clksel_rate osc_sys_19_2m_rates[] = { { .div =1 , .val =2 , .flags =RATE_IN_3XXX }, { .div =0 } }; -static const struct clksel_rate osc_sys_26m_rates[] = { +static struct clksel_rate osc_sys_26m_rates[] = { { .div =1 , .val =3 , .flags =RATE_IN_3XXX }, { .div =0 } }; -static const struct clksel_rate osc_sys_38_4m_rates[] = { +static struct clksel_rate osc_sys_38_4m_rates[] = { { .div =1 , .val =4 , .flags =RATE_IN_3XXX }, { .div =0 } }; -static const struct clksel osc_sys_clksel[] = { +static struct clksel osc_sys_clksel[] = { { .parent = &virt_12m_ck, .rates = osc_sys_12m_rates }, { .parent = &virt_13m_ck, .rates = osc_sys_13m_rates }, { .parent = &virt_16_8m_ck, .rates = osc_sys_16_8m_rates },@@ -162,13 +162,13 @@ static struct clk osc_sys_ck = { .recalc = &omap2_clksel_recalc, }; -static const struct clksel_rate div2_rates[] = { +static struct clksel_rate div2_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_3XXX }, { .div =2 , .val =2 , .flags =RATE_IN_3XXX }, { .div =0 } }; -static const struct clksel sys_clksel[] = { +static struct clksel sys_clksel[] = { { .parent = &osc_sys_ck, .rates = div2_rates }, { .parent =NULL } };@@ -212,7 +212,7 @@ static struct clk sys_clkout1 = {Quoted 8 lines
arch/arm/mach-omap2/clock3xxx_data.c static const struct clksel_rate div16_dpll_rates[]
Quoted 8 lines
arch/arm/mach-omap2/clock3xxx_data.c +1
-1/* CM CLOCKS */ -static const struct clksel_rate div16_dpll_rates[] = { +static struct clksel_rate div16_dpll_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_3XXX }, { .div =2 , .val =2 , .flags =RATE_IN_3XXX }, { .div =3 , .val =3 , .flags =RATE_IN_3XXX },@@ -232,7 +232,7 @@ static const struct clksel_rate div16_dpll_rates[]= {
Quoted 11 lines
Quoted 11 lines
arch/arm/mach-omap2/clock3xxx_data.c +1
-1{ .div = 0 } }; -static const struct clksel_rate dpll4_rates[] = { +static struct clksel_rate dpll4_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_3XXX }, { .div =2 , .val =2 , .flags =RATE_IN_3XXX }, { .div =3 , .val =3 , .flags =RATE_IN_3XXX },@@ -318,7 +318,7 @@ static struct clk dpll1_x2_ck = { };Quoted 1 line
arch/arm/mach-omap2/clock3xxx_data.c static struct clk dpll1_x2_ck = { · line 320
Quoted 1 line
arch/arm/mach-omap2/clock3xxx_data.c +0
-0/* On DPLL1, unlike other DPLLs, the divider is downstream from CLKOUTX2 */
Quoted 18 lines
Quoted 18 lines
arch/arm/mach-omap2/clock3xxx_data.c +2
-2-static const struct clksel div16_dpll1_x2m2_clksel[] = { +static struct clksel div16_dpll1_x2m2_clksel[] = { { .parent = &dpll1_x2_ck, .rates = div16_dpll_rates }, { .parent =NULL } };@@ -378,7 +378,7 @@ static struct clk dpll2_ck = { .recalc = &omap3_dpll_recalc, }; -static const struct clksel div16_dpll2_m2x2_clksel[] = { +static struct clksel div16_dpll2_m2x2_clksel[] = { { .parent = &dpll2_ck, .rates = div16_dpll_rates }, { .parent =NULL } };@@ -449,7 +449,7 @@ static struct clk dpll3_x2_ck = { .recalc = &omap3_clkoutx2_recalc, };Quoted 6 lines
arch/arm/mach-omap2/clock3xxx_data.c static const struct clksel_rate
Quoted 6 lines
arch/arm/mach-omap2/clock3xxx_data.c +1
-1-static const struct clksel_rate div31_dpll3_rates[] = { +static struct clksel_rate div31_dpll3_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_3XXX }, { .div =2 , .val =2 , .flags =RATE_IN_3XXX }, { .div =3 , .val =3 , .flags =RATE_IN_3430ES2PLUS_36XX },@@ -484,7 +484,7 @@ static const struct clksel_ratediv31_dpll3_rates[] = {
Quoted 37 lines
Quoted 37 lines
arch/arm/mach-omap2/clock3xxx_data.c +4
-4{ .div = 0 }, }; -static const struct clksel div31_dpll3m2_clksel[] = { +static struct clksel div31_dpll3m2_clksel[] = { { .parent = &dpll3_ck, .rates = div31_dpll3_rates }, { .parent =NULL } };@@ -520,7 +520,7 @@ static struct clk dpll3_m2x2_ck = { };/* The PWRDN bit is apparently only available on 3430ES2 and above */ -static const struct clksel div16_dpll3_clksel[] = { +static struct clksel div16_dpll3_clksel[] = { { .parent = &dpll3_ck, .rates = div16_dpll_rates }, { .parent =NULL } };@@ -635,7 +635,7 @@ static struct clk dpll4_x2_ck = { .recalc = &omap3_clkoutx2_recalc, }; -static const struct clksel dpll4_clksel[] = { +static struct clksel dpll4_clksel[] = { { .parent = &dpll4_ck, .rates = dpll4_rates }, { .parent =NULL } };@@ -680,23 +680,23 @@ static struct clk omap_192m_alwon_fck = { .recalc = &followparent_recalc, }; -static const struct clksel_rate omap_96m_alwon_fck_rates[] = { +static struct clksel_rate omap_96m_alwon_fck_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_36XX }, { .div =2 , .val =2 , .flags =RATE_IN_36XX }, { .div =0 } };Quoted 3 lines
arch/arm/mach-omap2/clock3xxx_data.c static struct clk omap_192m_alwon_fck = {
Quoted 3 lines
arch/arm/mach-omap2/clock3xxx_data.c +1
-1-static const struct clksel omap_96m_alwon_fck_clksel[] = { +static struct clksel omap_96m_alwon_fck_clksel[] = { { .parent = &omap_192m_alwon_fck, .rates =
omap_96m_alwon_fck_rates},Quoted 111 lines
Quoted 111 lines
arch/arm/mach-omap2/clock3xxx_data.c +15
-15{ .parent = NULL } }; -static const struct clksel_rate omap_96m_dpll_rates[] = { +static struct clksel_rate omap_96m_dpll_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_3XXX }, { .div =0 } }; -static const struct clksel_rate omap_96m_sys_rates[] = { +static struct clksel_rate omap_96m_sys_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_3XXX }, { .div =0 } };@@ -726,7 +726,7 @@ static struct clk cm_96m_fck = { .recalc = &followparent_recalc, }; -static const struct clksel omap_96m_fck_clksel[] = { +static struct clksel omap_96m_fck_clksel[] = { { .parent = &cm_96m_fck, .rates = omap_96m_dpll_rates }, { .parent = &sys_ck, .rates = omap_96m_sys_rates }, { .parent =NULL }@@ -768,17 +768,17 @@ static struct clk dpll4_m3x2_ck = { .recalc = &omap3_clkoutx2_recalc, }; -static const struct clksel_rate omap_54m_d4m3x2_rates[] = { +static struct clksel_rate omap_54m_d4m3x2_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_3XXX }, { .div =0 } }; -static const struct clksel_rate omap_54m_alt_rates[] = { +static struct clksel_rate omap_54m_alt_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_3XXX }, { .div =0 } }; -static const struct clksel omap_54m_clksel[] = { +static struct clksel omap_54m_clksel[] = { { .parent = &dpll4_m3x2_ck, .rates = omap_54m_d4m3x2_rates }, { .parent = &sys_altclk, .rates = omap_54m_alt_rates }, { .parent =NULL }@@ -794,17 +794,17 @@ static struct clk omap_54m_fck = { .recalc = &omap2_clksel_recalc, }; -static const struct clksel_rate omap_48m_cm96m_rates[] = { +static struct clksel_rate omap_48m_cm96m_rates[] = { { .div =2 , .val =0 , .flags =RATE_IN_3XXX }, { .div =0 } }; -static const struct clksel_rate omap_48m_alt_rates[] = { +static struct clksel_rate omap_48m_alt_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_3XXX }, { .div =0 } }; -static const struct clksel omap_48m_clksel[] = { +static struct clksel omap_48m_clksel[] = { { .parent = &cm_96m_fck, .rates = omap_48m_cm96m_rates }, { .parent = &sys_altclk, .rates = omap_48m_alt_rates }, { .parent =NULL }@@ -953,7 +953,7 @@ static struct clk dpll5_ck = { .recalc = &omap3_dpll_recalc, }; -static const struct clksel div16_dpll5_clksel[] = { +static struct clksel div16_dpll5_clksel[] = { { .parent = &dpll5_ck, .rates = div16_dpll_rates }, { .parent =NULL } };@@ -972,27 +972,27 @@ static struct clk dpll5_m2_ck = {/* CM EXTERNAL CLOCK OUTPUTS */ -static const struct clksel_rate clkout2_src_core_rates[] = { +static struct clksel_rate clkout2_src_core_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_3XXX }, { .div =0 } }; -static const struct clksel_rate clkout2_src_sys_rates[] = { +static struct clksel_rate clkout2_src_sys_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_3XXX }, { .div =0 } }; -static const struct clksel_rate clkout2_src_96m_rates[] = { +static struct clksel_rate clkout2_src_96m_rates[] = { { .div =1 , .val =2 , .flags =RATE_IN_3XXX }, { .div =0 } }; -static const struct clksel_rate clkout2_src_54m_rates[] = { +static struct clksel_rate clkout2_src_54m_rates[] = { { .div =1 , .val =3 , .flags =RATE_IN_3XXX }, { .div =0 } }; -static const struct clksel clkout2_src_clksel[] = { +static struct clksel clkout2_src_clksel[] = { { .parent = &core_ck, .rates = clkout2_src_core_rates }, { .parent = &sys_ck, .rates = clkout2_src_sys_rates }, { .parent = &cm_96m_fck, .rates = clkout2_src_96m_rates },@@ -1013,7 +1013,7 @@ static struct clk clkout2_src_ck = { .recalc = &omap2_clksel_recalc, };Quoted 6 lines
arch/arm/mach-omap2/clock3xxx_data.c static const struct clksel_rate
Quoted 6 lines
arch/arm/mach-omap2/clock3xxx_data.c +1
-1-static const struct clksel_rate sys_clkout2_rates[] = { +static struct clksel_rate sys_clkout2_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_3XXX }, { .div =2 , .val =1 , .flags =RATE_IN_3XXX }, { .div =4 , .val =2 , .flags =RATE_IN_3XXX },@@ -1022,7 +1022,7 @@ static const struct clksel_ratesys_clkout2_rates[] = {
Quoted 28 lines
Quoted 28 lines
arch/arm/mach-omap2/clock3xxx_data.c +3
-3{ .div = 0 }, }; -static const struct clksel sys_clkout2_clksel[] = { +static struct clksel sys_clkout2_clksel[] = { { .parent = &clkout2_src_ck, .rates = sys_clkout2_rates }, { .parent =NULL }, };@@ -1050,14 +1050,14 @@ static struct clk corex2_fck = {/* DPLL power domain clock controls */ -static const struct clksel_rate div4_rates[] = { +static struct clksel_rate div4_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_3XXX }, { .div =2 , .val =2 , .flags =RATE_IN_3XXX }, { .div =4 , .val =4 , .flags =RATE_IN_3XXX }, { .div =0 } }; -static const struct clksel div4_core_clksel[] = { +static struct clksel div4_core_clksel[] = { { .parent = &core_ck, .rates = div4_rates }, { .parent =NULL } };@@ -1086,13 +1086,13 @@ static struct clk mpu_ck = { };Quoted 1 line
arch/arm/mach-omap2/clock3xxx_data.c static struct clk mpu_ck = { · line 1088
Quoted 1 line
arch/arm/mach-omap2/clock3xxx_data.c +0
-0/* arm_fck is divided by two when DPLL1 locked; otherwise, passthrough
mpu_ck*/Quoted 34 lines
Quoted 34 lines
arch/arm/mach-omap2/clock3xxx_data.c +4
-4-static const struct clksel_rate arm_fck_rates[] = { +static struct clksel_rate arm_fck_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_3XXX }, { .div =2 , .val =1 , .flags =RATE_IN_3XXX }, { .div =0 }, }; -static const struct clksel arm_fck_clksel[] = { +static struct clksel arm_fck_clksel[] = { { .parent = &mpu_ck, .rates = arm_fck_rates }, { .parent =NULL } };@@ -1145,7 +1145,7 @@ static struct clk iva2_ck = {/* Common interface clocks */ -static const struct clksel div2_core_clksel[] = { +static struct clksel div2_core_clksel[] = { { .parent = &core_ck, .rates = div2_rates }, { .parent =NULL } };@@ -1162,7 +1162,7 @@ static struct clk l3_ick = { .recalc = &omap2_clksel_recalc, }; -static const struct clksel div2_l3_clksel[] = { +static struct clksel div2_l3_clksel[] = { { .parent = &l3_ick, .rates = div2_rates }, { .parent =NULL } };@@ -1180,7 +1180,7 @@ static struct clk l4_ick = { };Quoted 8 lines
arch/arm/mach-omap2/clock3xxx_data.c static struct clk rm_ick = { · line 1201
Quoted 8 lines
arch/arm/mach-omap2/clock3xxx_data.c +1
-1-static const struct clksel div2_l4_clksel[] = { +static struct clksel div2_l4_clksel[] = { { .parent = &l4_ick, .rates = div2_rates }, { .parent =NULL } };@@ -1200,7 +1200,7 @@ static struct clk rm_ick = {/* GFX clocks are in 3430ES1 only. 3430ES2 and later uses the SGX instead */
Quoted 8 lines
Quoted 8 lines
arch/arm/mach-omap2/clock3xxx_data.c +1
-1-static const struct clksel gfx_l3_clksel[] = { +static struct clksel gfx_l3_clksel[] = { { .parent = &l3_ick, .rates = gfx_l3_rates }, { .parent =NULL } };@@ -1257,7 +1257,7 @@ static struct clk gfx_cg2_ck = {Quoted 8 lines
arch/arm/mach-omap2/clock3xxx_data.c static const struct clksel_rate
Quoted 8 lines
arch/arm/mach-omap2/clock3xxx_data.c +1
-1/* SGX power domain - 3430ES2 only */ -static const struct clksel_rate sgx_core_rates[] = { +static struct clksel_rate sgx_core_rates[] = { { .div =2 , .val =5 , .flags =RATE_IN_36XX }, { .div =3 , .val =0 , .flags =RATE_IN_3XXX }, { .div =4 , .val =1 , .flags =RATE_IN_3XXX },@@ -1265,23 +1265,23 @@ static const struct clksel_ratesgx_core_rates[] = {
Quoted 59 lines
Quoted 59 lines
arch/arm/mach-omap2/clock3xxx_data.c +8
-8{ .div = 0 }, }; -static const struct clksel_rate sgx_192m_rates[] = { +static struct clksel_rate sgx_192m_rates[] = { { .div =1 , .val =4 , .flags =RATE_IN_36XX }, { .div =0 }, }; -static const struct clksel_rate sgx_corex2_rates[] = { +static struct clksel_rate sgx_corex2_rates[] = { { .div =3 , .val =6 , .flags =RATE_IN_36XX }, { .div =5 , .val =7 , .flags =RATE_IN_36XX }, { .div =0 }, }; -static const struct clksel_rate sgx_96m_rates[] = { +static struct clksel_rate sgx_96m_rates[] = { { .div =1 , .val =3 , .flags =RATE_IN_3XXX }, { .div =0 }, }; -static const struct clksel sgx_clksel[] = { +static struct clksel sgx_clksel[] = { { .parent = &core_ck, .rates = sgx_core_rates }, { .parent = &cm_96m_fck, .rates = sgx_96m_rates }, { .parent = &omap_192m_alwon_fck, .rates = sgx_192m_rates },@@ -1356,7 +1356,7 @@ static struct clk mad2d_ick = { .recalc = &followparent_recalc, }; -static const struct clksel omap343x_gpt_clksel[] = { +static struct clksel omap343x_gpt_clksel[] = { { .parent = &omap_32k_fck, .rates = gpt_32k_rates }, { .parent = &sys_ck, .rates = gpt_sys_rates }, { .parent =NULL }@@ -1501,17 +1501,17 @@ static struct clk i2c1_fck = {* MCBSP 1 & 5 get their 96MHz clock from core_96m_fck; * MCBSP 2, 3, 4 get their 96MHz clock from per_96m_fck. */ -static const struct clksel_rate common_mcbsp_96m_rates[] = { +static struct clksel_rate common_mcbsp_96m_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_3XXX }, { .div =0 } }; -static const struct clksel_rate common_mcbsp_mcbsp_rates[] = { +static struct clksel_rate common_mcbsp_mcbsp_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_3XXX }, { .div =0 } }; -static const struct clksel mcbsp_15_clksel[] = { +static struct clksel mcbsp_15_clksel[] = { { .parent = &core_96m_fck, .rates = common_mcbsp_96m_rates }, { .parent = &mcbsp_clks, .rates = common_mcbsp_mcbsp_rates }, { .parent =NULL }@@ -1643,7 +1643,7 @@ static struct clk hdq_fck = {Quoted 8 lines
arch/arm/mach-omap2/clock3xxx_data.c static const struct clksel_rate
Quoted 8 lines
arch/arm/mach-omap2/clock3xxx_data.c +1
-1/* DPLL3-derived clock */ -static const struct clksel_rate ssi_ssr_corex2_rates[] = { +static struct clksel_rate ssi_ssr_corex2_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_3XXX }, { .div =2 , .val =2 , .flags =RATE_IN_3XXX }, { .div =3 , .val =3 , .flags =RATE_IN_3XXX },@@ -1653,7 +1653,7 @@ static const struct clksel_ratessi_ssr_corex2_rates[] = {
Quoted 19 lines
Quoted 19 lines
arch/arm/mach-omap2/clock3xxx_data.c +2
-2{ .div = 0 } }; -static const struct clksel ssi_ssr_clksel[] = { +static struct clksel ssi_ssr_clksel[] = { { .parent = &corex2_fck, .rates = ssi_ssr_corex2_rates }, { .parent =NULL } };@@ -2078,7 +2078,7 @@ static struct clk ssi_ick_3430es2 = {/* REVISIT: Technically the TRM claims that this is CORE_CLK based, * but l4_ick makes more sense to me */ -static const struct clksel usb_l4_clksel[] = { +static struct clksel usb_l4_clksel[] = { { .parent = &l4_ick, .rates = div2_rates }, { .parent =NULL }, };@@ -2282,7 +2282,7 @@ static struct clk usbhost_ick = {Quoted 8 lines
arch/arm/mach-omap2/clock3xxx_data.c static const struct clksel_rate usim_96m_rates[]
Quoted 8 lines
arch/arm/mach-omap2/clock3xxx_data.c +1
-1/* WKUP */ -static const struct clksel_rate usim_96m_rates[] = { +static struct clksel_rate usim_96m_rates[] = { { .div =2 , .val =3 , .flags =RATE_IN_3XXX }, { .div =4 , .val =4 , .flags =RATE_IN_3XXX }, { .div =8 , .val =5 , .flags =RATE_IN_3XXX },@@ -2290,7 +2290,7 @@ static const struct clksel_rate usim_96m_rates[]= {
Quoted 9 lines
arch/arm/mach-omap2/clock3xxx_data.c static const struct clksel_rate
Quoted 9 lines
arch/arm/mach-omap2/clock3xxx_data.c +1
-1{ .div = 0 }, }; -static const struct clksel_rate usim_120m_rates[] = { +static struct clksel_rate usim_120m_rates[] = { { .div =4 , .val =7 , .flags =RATE_IN_3XXX }, { .div =8 , .val =8 , .flags =RATE_IN_3XXX }, { .div =16 , .val =9 , .flags =RATE_IN_3XXX },@@ -2298,7 +2298,7 @@ static const struct clksel_rateusim_120m_rates[] = {
Quoted 12 lines
Quoted 12 lines
arch/arm/mach-omap2/clock3xxx_data.c +1
-1{ .div = 0 }, }; -static const struct clksel usim_clksel[] = { +static struct clksel usim_clksel[] = { { .parent = &omap_96m_fck, .rates = usim_96m_rates }, { .parent = &dpll5_m2_ck, .rates = usim_120m_rates }, { .parent = &sys_ck, .rates = div2_rates },@@ -2851,7 +2851,7 @@ static struct clk mcbsp4_ick = { .recalc = &followparent_recalc, };Quoted 8 lines
arch/arm/mach-omap2/clock3xxx_data.c static struct clk mcbsp4_fck = { · line 2901
Quoted 8 lines
arch/arm/mach-omap2/clock3xxx_data.c +1
-1-static const struct clksel mcbsp_234_clksel[] = { +static struct clksel mcbsp_234_clksel[] = { { .parent = &per_96m_fck, .rates = common_mcbsp_96m_rates }, { .parent = &mcbsp_clks, .rates = common_mcbsp_mcbsp_rates }, { .parent =NULL }@@ -2900,27 +2900,27 @@ static struct clk mcbsp4_fck = {/* More information: ARM Cortex-A8 Technical Reference Manual, sect 10.1 */
Quoted 34 lines
Quoted 34 lines
arch/arm/mach-omap2/clock3xxx_data.c +5
-5-static const struct clksel_rate emu_src_sys_rates[] = { +static struct clksel_rate emu_src_sys_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_3XXX }, { .div =0 }, }; -static const struct clksel_rate emu_src_core_rates[] = { +static struct clksel_rate emu_src_core_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_3XXX }, { .div =0 }, }; -static const struct clksel_rate emu_src_per_rates[] = { +static struct clksel_rate emu_src_per_rates[] = { { .div =1 , .val =2 , .flags =RATE_IN_3XXX }, { .div =0 }, }; -static const struct clksel_rate emu_src_mpu_rates[] = { +static struct clksel_rate emu_src_mpu_rates[] = { { .div =1 , .val =3 , .flags =RATE_IN_3XXX }, { .div =0 }, }; -static const struct clksel emu_src_clksel[] = { +static struct clksel emu_src_clksel[] = { { .parent = &sys_ck, .rates = emu_src_sys_rates }, { .parent = &emu_core_alwon_ck, .rates = emu_src_core_rates }, { .parent = &emu_per_alwon_ck, .rates = emu_src_per_rates },@@ -2944,7 +2944,7 @@ static struct clk emu_src_ck = { .recalc = &omap2_clksel_recalc, };Quoted 6 lines
arch/arm/mach-omap2/clock3xxx_data.c static const struct clksel_rate pclk_emu_rates[]
Quoted 6 lines
arch/arm/mach-omap2/clock3xxx_data.c +1
-1-static const struct clksel_rate pclk_emu_rates[] = { +static struct clksel_rate pclk_emu_rates[] = { { .div =2 , .val =2 , .flags =RATE_IN_3XXX }, { .div =3 , .val =3 , .flags =RATE_IN_3XXX }, { .div =4 , .val =4 , .flags =RATE_IN_3XXX },@@ -2952,7 +2952,7 @@ static const struct clksel_rate pclk_emu_rates[]= {
Quoted 46 lines
Quoted 46 lines
arch/arm/mach-omap2/clock3xxx_data.c +5
-5{ .div = 0 }, }; -static const struct clksel pclk_emu_clksel[] = { +static struct clksel pclk_emu_clksel[] = { { .parent = &emu_src_ck, .rates = pclk_emu_rates }, { .parent =NULL }, };@@ -2968,14 +2968,14 @@ static struct clk pclk_fck = { .recalc = &omap2_clksel_recalc, }; -static const struct clksel_rate pclkx2_emu_rates[] = { +static struct clksel_rate pclkx2_emu_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_3XXX }, { .div =2 , .val =2 , .flags =RATE_IN_3XXX }, { .div =3 , .val =3 , .flags =RATE_IN_3XXX }, { .div =0 }, }; -static const struct clksel pclkx2_emu_clksel[] = { +static struct clksel pclkx2_emu_clksel[] = { { .parent = &emu_src_ck, .rates = pclkx2_emu_rates }, { .parent =NULL }, };@@ -2991,7 +2991,7 @@ static struct clk pclkx2_fck = { .recalc = &omap2_clksel_recalc, }; -static const struct clksel atclk_emu_clksel[] = { +static struct clksel atclk_emu_clksel[] = { { .parent = &emu_src_ck, .rates = div2_rates }, { .parent =NULL }, };@@ -3018,14 +3018,14 @@ static struct clk traceclk_src_fck = { .recalc = &omap2_clksel_recalc, }; -static const struct clksel_rate traceclk_rates[] = { +static struct clksel_rate traceclk_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_3XXX }, { .div =2 , .val =2 , .flags =RATE_IN_3XXX }, { .div =4 , .val =4 , .flags =RATE_IN_3XXX }, { .div =0 }, };Quoted 6 lines
Review
Quoted 6 lines
arch/arm/mach-omap2/clock3xxx_data.c +1
-1-static const struct clksel traceclk_clksel[] = { +static struct clksel traceclk_clksel[] = { { .parent = &traceclk_src_fck, .rates = traceclk_rates }, { .parent =NULL }, };(quoted diff) +0
-0
b/arch/arm/mach-omap2/clock44xx_data.cQuoted 73 lines
Quoted 73 lines
index e8cb32f..b02bfae 100644
arch/arm/mach-omap2/clock44xx_data.c +10
-10@@ -127,47 +127,47 @@ static struct clk virt_38400000_ck = { .rate = 38400000, }; -static const struct clksel_rate div_1_0_rates[] = { +static struct clksel_rate div_1_0_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_4430 }, { .div =0 }, }; -static const struct clksel_rate div_1_1_rates[] = { +static struct clksel_rate div_1_1_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_4430 }, { .div =0 }, }; -static const struct clksel_rate div_1_2_rates[] = { +static struct clksel_rate div_1_2_rates[] = { { .div =1 , .val =2 , .flags =RATE_IN_4430 }, { .div =0 }, }; -static const struct clksel_rate div_1_3_rates[] = { +static struct clksel_rate div_1_3_rates[] = { { .div =1 , .val =3 , .flags =RATE_IN_4430 }, { .div =0 }, }; -static const struct clksel_rate div_1_4_rates[] = { +static struct clksel_rate div_1_4_rates[] = { { .div =1 , .val =4 , .flags =RATE_IN_4430 }, { .div =0 }, }; -static const struct clksel_rate div_1_5_rates[] = { +static struct clksel_rate div_1_5_rates[] = { { .div =1 , .val =5 , .flags =RATE_IN_4430 }, { .div =0 }, }; -static const struct clksel_rate div_1_6_rates[] = { +static struct clksel_rate div_1_6_rates[] = { { .div =1 , .val =6 , .flags =RATE_IN_4430 }, { .div =0 }, }; -static const struct clksel_rate div_1_7_rates[] = { +static struct clksel_rate div_1_7_rates[] = { { .div =1 , .val =7 , .flags =RATE_IN_4430 }, { .div =0 }, }; -static const struct clksel sys_clkin_sel[] = { +static struct clksel sys_clkin_sel[] = { { .parent = &virt_12000000_ck, .rates = div_1_1_rates }, { .parent = &virt_13000000_ck, .rates = div_1_2_rates }, { .parent = &virt_16800000_ck, .rates = div_1_3_rates },@@ -221,7 +221,7 @@ static struct clk xclk60motg_ck = {/* Module clocks and DPLL outputs */ -static const struct clksel abe_dpll_bypass_clk_mux_sel[] = { +static struct clksel abe_dpll_bypass_clk_mux_sel[] = { { .parent = &sys_clkin_ck, .rates = div_1_0_rates }, { .parent = &sys_32k_ck, .rates = div_1_1_rates }, { .parent =NULL },@@ -283,7 +283,7 @@ static struct clk dpll_abe_x2_ck = { .recalc = &omap3_clkoutx2_recalc, };Quoted 6 lines
arch/arm/mach-omap2/clock44xx_data.c static const struct clksel_rate
Quoted 6 lines
arch/arm/mach-omap2/clock44xx_data.c +1
-1-static const struct clksel_rate div31_1to31_rates[] = { +static struct clksel_rate div31_1to31_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_4430 }, { .div =2 , .val =2 , .flags =RATE_IN_4430 }, { .div =3 , .val =3 , .flags =RATE_IN_4430 },@@ -318,7 +318,7 @@ static const struct clksel_ratediv31_1to31_rates[] = {
Quoted 90 lines
Quoted 90 lines
arch/arm/mach-omap2/clock44xx_data.c +10
-10{ .div = 0 }, }; -static const struct clksel dpll_abe_m2x2_div[] = { +static struct clksel dpll_abe_m2x2_div[] = { { .parent = &dpll_abe_x2_ck, .rates = div31_1to31_rates }, { .parent =NULL }, };@@ -343,14 +343,14 @@ static struct clk abe_24m_fclk = { .recalc = &omap_fixed_divisor_recalc, }; -static const struct clksel_rate div3_1to4_rates[] = { +static struct clksel_rate div3_1to4_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_4430 }, { .div =2 , .val =1 , .flags =RATE_IN_4430 }, { .div =4 , .val =2 , .flags =RATE_IN_4430 }, { .div =0 }, }; -static const struct clksel abe_clk_div[] = { +static struct clksel abe_clk_div[] = { { .parent = &dpll_abe_m2x2_ck, .rates = div3_1to4_rates }, { .parent =NULL }, };@@ -367,13 +367,13 @@ static struct clk abe_clk = { .set_rate = &omap2_clksel_set_rate, }; -static const struct clksel_rate div2_1to2_rates[] = { +static struct clksel_rate div2_1to2_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_4430 }, { .div =2 , .val =1 , .flags =RATE_IN_4430 }, { .div =0 }, }; -static const struct clksel aess_fclk_div[] = { +static struct clksel aess_fclk_div[] = { { .parent = &abe_clk, .rates = div2_1to2_rates }, { .parent =NULL }, };@@ -402,7 +402,7 @@ static struct clk dpll_abe_m3x2_ck = { .set_rate = &omap2_clksel_set_rate, }; -static const struct clksel core_hsd_byp_clk_mux_sel[] = { +static struct clksel core_hsd_byp_clk_mux_sel[] = { { .parent = &sys_clkin_ck, .rates = div_1_0_rates }, { .parent = &dpll_abe_m3x2_ck, .rates = div_1_1_rates }, { .parent =NULL },@@ -455,7 +455,7 @@ static struct clk dpll_core_x2_ck = { .recalc = &omap3_clkoutx2_recalc, }; -static const struct clksel dpll_core_m6x2_div[] = { +static struct clksel dpll_core_m6x2_div[] = { { .parent = &dpll_core_x2_ck, .rates = div31_1to31_rates }, { .parent =NULL }, };@@ -472,7 +472,7 @@ static struct clk dpll_core_m6x2_ck = { .set_rate = &omap2_clksel_set_rate, }; -static const struct clksel dbgclk_mux_sel[] = { +static struct clksel dbgclk_mux_sel[] = { { .parent = &sys_clkin_ck, .rates = div_1_0_rates }, { .parent = &dpll_core_m6x2_ck, .rates = div_1_1_rates }, { .parent =NULL },@@ -485,7 +485,7 @@ static struct clk dbgclk_mux_ck = { .recalc = &followparent_recalc, }; -static const struct clksel dpll_core_m2_div[] = { +static struct clksel dpll_core_m2_div[] = { { .parent = &dpll_core_ck, .rates = div31_1to31_rates }, { .parent =NULL }, };@@ -522,7 +522,7 @@ static struct clk dpll_core_m5x2_ck = { .set_rate = &omap2_clksel_set_rate, }; -static const struct clksel div_core_div[] = { +static struct clksel div_core_div[] = { { .parent = &dpll_core_m5x2_ck, .rates = div2_1to2_rates }, { .parent =NULL }, };@@ -539,7 +539,7 @@ static struct clk div_core_ck = { .set_rate = &omap2_clksel_set_rate, };Quoted 6 lines
arch/arm/mach-omap2/clock44xx_data.c static const struct clksel_rate div4_1to8_rates[]
Quoted 6 lines
arch/arm/mach-omap2/clock44xx_data.c +1
-1-static const struct clksel_rate div4_1to8_rates[] = { +static struct clksel_rate div4_1to8_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_4430 }, { .div =2 , .val =1 , .flags =RATE_IN_4430 }, { .div =4 , .val =2 , .flags =RATE_IN_4430 },@@ -547,7 +547,7 @@ static const struct clksel_rate div4_1to8_rates[]= {
Quoted 433 lines
Quoted 433 lines
arch/arm/mach-omap2/clock44xx_data.c +46
-46{ .div = 0 }, }; -static const struct clksel div_iva_hs_clk_div[] = { +static struct clksel div_iva_hs_clk_div[] = { { .parent = &dpll_core_m5x2_ck, .rates = div4_1to8_rates }, { .parent =NULL }, };@@ -596,7 +596,7 @@ static struct clk dll_clk_div_ck = { .recalc = &omap_fixed_divisor_recalc, }; -static const struct clksel dpll_abe_m2_div[] = { +static struct clksel dpll_abe_m2_div[] = { { .parent = &dpll_abe_ck, .rates = div31_1to31_rates }, { .parent =NULL }, };@@ -639,7 +639,7 @@ static struct clk dpll_core_m7x2_ck = { .set_rate = &omap2_clksel_set_rate, }; -static const struct clksel iva_hsd_byp_clk_mux_sel[] = { +static struct clksel iva_hsd_byp_clk_mux_sel[] = { { .parent = &sys_clkin_ck, .rates = div_1_0_rates }, { .parent = &div_iva_hs_clk, .rates = div_1_1_rates }, { .parent =NULL },@@ -694,7 +694,7 @@ static struct clk dpll_iva_x2_ck = { .recalc = &omap3_clkoutx2_recalc, }; -static const struct clksel dpll_iva_m4x2_div[] = { +static struct clksel dpll_iva_m4x2_div[] = { { .parent = &dpll_iva_x2_ck, .rates = div31_1to31_rates }, { .parent =NULL }, };@@ -754,7 +754,7 @@ static struct clk dpll_mpu_ck = { .set_rate = &omap3_noncore_dpll_set_rate, }; -static const struct clksel dpll_mpu_m2_div[] = { +static struct clksel dpll_mpu_m2_div[] = { { .parent = &dpll_mpu_ck, .rates = div31_1to31_rates }, { .parent =NULL }, };@@ -779,7 +779,7 @@ static struct clk per_hs_clk_div_ck = { .recalc = &omap_fixed_divisor_recalc, }; -static const struct clksel per_hsd_byp_clk_mux_sel[] = { +static struct clksel per_hsd_byp_clk_mux_sel[] = { { .parent = &sys_clkin_ck, .rates = div_1_0_rates }, { .parent = &per_hs_clk_div_ck, .rates = div_1_1_rates }, { .parent =NULL },@@ -827,7 +827,7 @@ static struct clk dpll_per_ck = { .set_rate = &omap3_noncore_dpll_set_rate, }; -static const struct clksel dpll_per_m2_div[] = { +static struct clksel dpll_per_m2_div[] = { { .parent = &dpll_per_ck, .rates = div31_1to31_rates }, { .parent =NULL }, };@@ -851,7 +851,7 @@ static struct clk dpll_per_x2_ck = { .recalc = &omap3_clkoutx2_recalc, }; -static const struct clksel dpll_per_m2x2_div[] = { +static struct clksel dpll_per_m2x2_div[] = { { .parent = &dpll_per_x2_ck, .rates = div31_1to31_rates }, { .parent =NULL }, };@@ -969,7 +969,7 @@ static struct clk dpll_unipro_x2_ck = { .recalc = &omap3_clkoutx2_recalc, }; -static const struct clksel dpll_unipro_m2x2_div[] = { +static struct clksel dpll_unipro_m2x2_div[] = { { .parent = &dpll_unipro_x2_ck, .rates = div31_1to31_rates }, { .parent =NULL }, };@@ -1033,7 +1033,7 @@ static struct clk dpll_usb_clkdcoldo_ck = { .recalc = &followparent_recalc, }; -static const struct clksel dpll_usb_m2_div[] = { +static struct clksel dpll_usb_m2_div[] = { { .parent = &dpll_usb_ck, .rates = div31_1to31_rates }, { .parent =NULL }, };@@ -1050,7 +1050,7 @@ static struct clk dpll_usb_m2_ck = { .set_rate = &omap2_clksel_set_rate, }; -static const struct clksel ducati_clk_mux_sel[] = { +static struct clksel ducati_clk_mux_sel[] = { { .parent = &div_core_ck, .rates = div_1_0_rates }, { .parent = &dpll_per_m6x2_ck, .rates = div_1_1_rates }, { .parent =NULL },@@ -1091,13 +1091,13 @@ static struct clk func_24mc_fclk = { .recalc = &omap_fixed_divisor_recalc, }; -static const struct clksel_rate div2_4to8_rates[] = { +static struct clksel_rate div2_4to8_rates[] = { { .div =4 , .val =0 , .flags =RATE_IN_4430 }, { .div =8 , .val =1 , .flags =RATE_IN_4430 }, { .div =0 }, }; -static const struct clksel func_48m_fclk_div[] = { +static struct clksel func_48m_fclk_div[] = { { .parent = &dpll_per_m2x2_ck, .rates = div2_4to8_rates }, { .parent =NULL }, };@@ -1122,13 +1122,13 @@ static struct clk func_48mc_fclk = { .recalc = &omap_fixed_divisor_recalc, }; -static const struct clksel_rate div2_2to4_rates[] = { +static struct clksel_rate div2_2to4_rates[] = { { .div =2 , .val =0 , .flags =RATE_IN_4430 }, { .div =4 , .val =1 , .flags =RATE_IN_4430 }, { .div =0 }, }; -static const struct clksel func_64m_fclk_div[] = { +static struct clksel func_64m_fclk_div[] = { { .parent = &dpll_per_m4x2_ck, .rates = div2_2to4_rates }, { .parent =NULL }, };@@ -1145,7 +1145,7 @@ static struct clk func_64m_fclk = { .set_rate = &omap2_clksel_set_rate, }; -static const struct clksel func_96m_fclk_div[] = { +static struct clksel func_96m_fclk_div[] = { { .parent = &dpll_per_m2x2_ck, .rates = div2_2to4_rates }, { .parent =NULL }, };@@ -1162,7 +1162,7 @@ static struct clk func_96m_fclk = { .set_rate = &omap2_clksel_set_rate, }; -static const struct clksel hsmmc6_fclk_sel[] = { +static struct clksel hsmmc6_fclk_sel[] = { { .parent = &func_64m_fclk, .rates = div_1_0_rates }, { .parent = &func_96m_fclk, .rates = div_1_1_rates }, { .parent =NULL },@@ -1175,13 +1175,13 @@ static struct clk hsmmc6_fclk = { .recalc = &followparent_recalc, }; -static const struct clksel_rate div2_1to8_rates[] = { +static struct clksel_rate div2_1to8_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_4430 }, { .div =8 , .val =1 , .flags =RATE_IN_4430 }, { .div =0 }, }; -static const struct clksel init_60m_fclk_div[] = { +static struct clksel init_60m_fclk_div[] = { { .parent = &dpll_usb_m2_ck, .rates = div2_1to8_rates }, { .parent =NULL }, };@@ -1198,7 +1198,7 @@ static struct clk init_60m_fclk = { .set_rate = &omap2_clksel_set_rate, }; -static const struct clksel l3_div_div[] = { +static struct clksel l3_div_div[] = { { .parent = &div_core_ck, .rates = div2_1to2_rates }, { .parent =NULL }, };@@ -1215,7 +1215,7 @@ static struct clk l3_div_ck = { .set_rate = &omap2_clksel_set_rate, }; -static const struct clksel l4_div_div[] = { +static struct clksel l4_div_div[] = { { .parent = &l3_div_ck, .rates = div2_1to2_rates }, { .parent =NULL }, };@@ -1240,7 +1240,7 @@ static struct clk lp_clk_div_ck = { .recalc = &omap_fixed_divisor_recalc, }; -static const struct clksel l4_wkup_clk_mux_sel[] = { +static struct clksel l4_wkup_clk_mux_sel[] = { { .parent = &sys_clkin_ck, .rates = div_1_0_rates }, { .parent = &lp_clk_div_ck, .rates = div_1_1_rates }, { .parent =NULL },@@ -1257,7 +1257,7 @@ static struct clk l4_wkup_clk_mux_ck = { .recalc = &omap2_clksel_recalc, }; -static const struct clksel per_abe_nc_fclk_div[] = { +static struct clksel per_abe_nc_fclk_div[] = { { .parent = &dpll_abe_m2_ck, .rates = div2_1to2_rates }, { .parent =NULL }, };@@ -1274,7 +1274,7 @@ static struct clk per_abe_nc_fclk = { .set_rate = &omap2_clksel_set_rate, }; -static const struct clksel mcasp2_fclk_sel[] = { +static struct clksel mcasp2_fclk_sel[] = { { .parent = &func_96m_fclk, .rates = div_1_0_rates }, { .parent = &per_abe_nc_fclk, .rates = div_1_1_rates }, { .parent =NULL },@@ -1309,7 +1309,7 @@ static struct clk per_abe_24m_fclk = { .recalc = &omap_fixed_divisor_recalc, }; -static const struct clksel pmd_stm_clock_mux_sel[] = { +static struct clksel pmd_stm_clock_mux_sel[] = { { .parent = &sys_clkin_ck, .rates = div_1_0_rates }, { .parent = &dpll_core_m6x2_ck, .rates = div_1_1_rates }, { .parent = &tie_low_clock_ck, .rates = div_1_2_rates },@@ -1330,7 +1330,7 @@ static struct clk pmd_trace_clk_mux_ck = { .recalc = &followparent_recalc, }; -static const struct clksel syc_clk_div_div[] = { +static struct clksel syc_clk_div_div[] = { { .parent = &sys_clkin_ck, .rates = div2_1to2_rates }, { .parent =NULL }, };@@ -1399,7 +1399,7 @@ static struct clk des3des_fck = { .recalc = &followparent_recalc, }; -static const struct clksel dmic_sync_mux_sel[] = { +static struct clksel dmic_sync_mux_sel[] = { { .parent = &abe_24m_fclk, .rates = div_1_0_rates }, { .parent = &syc_clk_div_ck, .rates = div_1_1_rates }, { .parent = &func_24m_clk, .rates = div_1_2_rates },@@ -1417,7 +1417,7 @@ static struct clk dmic_sync_mux_ck = { .recalc = &omap2_clksel_recalc, }; -static const struct clksel func_dmic_abe_gfclk_sel[] = { +static struct clksel func_dmic_abe_gfclk_sel[] = { { .parent = &dmic_sync_mux_ck, .rates = div_1_0_rates }, { .parent = &pad_clks_ck, .rates = div_1_1_rates }, { .parent = &slimbus_clk, .rates = div_1_2_rates },@@ -1531,7 +1531,7 @@ static struct clk emif2_fck = { .recalc = &followparent_recalc, }; -static const struct clksel fdif_fclk_div[] = { +static struct clksel fdif_fclk_div[] = { { .parent = &dpll_per_m4x2_ck, .rates = div3_1to4_rates }, { .parent =NULL }, };@@ -1692,7 +1692,7 @@ static struct clk gpmc_ick = { .recalc = &followparent_recalc, }; -static const struct clksel sgx_clk_mux_sel[] = { +static struct clksel sgx_clk_mux_sel[] = { { .parent = &dpll_core_m7x2_ck, .rates = div_1_0_rates }, { .parent = &dpll_per_m7x2_ck, .rates = div_1_1_rates }, { .parent =NULL },@@ -1723,7 +1723,7 @@ static struct clk hdq1w_fck = { .recalc = &followparent_recalc, }; -static const struct clksel hsi_fclk_div[] = { +static struct clksel hsi_fclk_div[] = { { .parent = &dpll_per_m2x2_ck, .rates = div3_1to4_rates }, { .parent =NULL }, };@@ -1867,7 +1867,7 @@ static struct clk mcasp_sync_mux_ck = { .recalc = &omap2_clksel_recalc, }; -static const struct clksel func_mcasp_abe_gfclk_sel[] = { +static struct clksel func_mcasp_abe_gfclk_sel[] = { { .parent = &mcasp_sync_mux_ck, .rates = div_1_0_rates }, { .parent = &pad_clks_ck, .rates = div_1_1_rates }, { .parent = &slimbus_clk, .rates = div_1_2_rates },@@ -1900,7 +1900,7 @@ static struct clk mcbsp1_sync_mux_ck = { .recalc = &omap2_clksel_recalc, }; -static const struct clksel func_mcbsp1_gfclk_sel[] = { +static struct clksel func_mcbsp1_gfclk_sel[] = { { .parent = &mcbsp1_sync_mux_ck, .rates = div_1_0_rates }, { .parent = &pad_clks_ck, .rates = div_1_1_rates }, { .parent = &slimbus_clk, .rates = div_1_2_rates },@@ -1933,7 +1933,7 @@ static struct clk mcbsp2_sync_mux_ck = { .recalc = &omap2_clksel_recalc, }; -static const struct clksel func_mcbsp2_gfclk_sel[] = { +static struct clksel func_mcbsp2_gfclk_sel[] = { { .parent = &mcbsp2_sync_mux_ck, .rates = div_1_0_rates }, { .parent = &pad_clks_ck, .rates = div_1_1_rates }, { .parent = &slimbus_clk, .rates = div_1_2_rates },@@ -1966,7 +1966,7 @@ static struct clk mcbsp3_sync_mux_ck = { .recalc = &omap2_clksel_recalc, }; -static const struct clksel func_mcbsp3_gfclk_sel[] = { +static struct clksel func_mcbsp3_gfclk_sel[] = { { .parent = &mcbsp3_sync_mux_ck, .rates = div_1_0_rates }, { .parent = &pad_clks_ck, .rates = div_1_1_rates }, { .parent = &slimbus_clk, .rates = div_1_2_rates },@@ -1999,7 +1999,7 @@ static struct clk mcbsp4_sync_mux_ck = { .recalc = &omap2_clksel_recalc, }; -static const struct clksel per_mcbsp4_gfclk_sel[] = { +static struct clksel per_mcbsp4_gfclk_sel[] = { { .parent = &mcbsp4_sync_mux_ck, .rates = div_1_0_rates }, { .parent = &pad_clks_ck, .rates = div_1_1_rates }, { .parent =NULL },@@ -2401,7 +2401,7 @@ static struct clk timer4_fck = { .clkdm_name = "l4_per_clkdm", }; -static const struct clksel timer5_sync_mux_sel[] = { +static struct clksel timer5_sync_mux_sel[] = { { .parent = &syc_clk_div_ck, .rates = div_1_0_rates }, { .parent = &sys_32k_ck, .rates = div_1_1_rates }, { .parent =NULL },@@ -2532,7 +2532,7 @@ static struct clk usb_host_fs_fck = { .recalc = &followparent_recalc, }; -static const struct clksel utmi_p1_gfclk_sel[] = { +static struct clksel utmi_p1_gfclk_sel[] = { { .parent = &init_60m_fclk, .rates = div_1_0_rates }, { .parent = &xclk60mhsp1_ck, .rates = div_1_1_rates }, { .parent =NULL },@@ -2559,7 +2559,7 @@ static struct clk usb_host_hs_utmi_p1_clk = { .recalc = &followparent_recalc, }; -static const struct clksel utmi_p2_gfclk_sel[] = { +static struct clksel utmi_p2_gfclk_sel[] = { { .parent = &init_60m_fclk, .rates = div_1_0_rates }, { .parent = &xclk60mhsp2_ck, .rates = div_1_1_rates }, { .parent =NULL },@@ -2656,7 +2656,7 @@ static struct clk usb_host_hs_fck = { .recalc = &followparent_recalc, }; -static const struct clksel otg_60m_gfclk_sel[] = { +static struct clksel otg_60m_gfclk_sel[] = { { .parent = &utmi_phy_clkout_ck, .rates = div_1_0_rates }, { .parent = &xclk60motg_ck, .rates = div_1_1_rates }, { .parent =NULL },@@ -2743,13 +2743,13 @@ static struct clk usb_tll_hs_ick = { .recalc = &followparent_recalc, }; -static const struct clksel_rate div2_14to18_rates[] = { +static struct clksel_rate div2_14to18_rates[] = { { .div =14 , .val =0 , .flags =RATE_IN_4430 }, { .div =18 , .val =1 , .flags =RATE_IN_4430 }, { .div =0 }, }; -static const struct clksel usim_fclk_div[] = { +static struct clksel usim_fclk_div[] = { { .parent = &dpll_per_m4x2_ck, .rates = div2_14to18_rates }, { .parent =NULL }, };@@ -2807,7 +2807,7 @@ static struct clk wd_timer3_fck = { };/* Remaining optional clocks */ -static const struct clksel stm_clk_div_div[] = { +static struct clksel stm_clk_div_div[] = { { .parent = &pmd_stm_clock_mux_ck, .rates = div3_1to4_rates }, { .parent =NULL }, };@@ -2824,7 +2824,7 @@ static struct clk stm_clk_div_ck = { .set_rate = &omap2_clksel_set_rate, }; -static const struct clksel trace_clk_div_div[] = { +static struct clksel trace_clk_div_div[] = { { .parent = &pmd_trace_clk_mux_ck, .rates = div3_1to4_rates }, { .parent =NULL }, };@@ -2843,7 +2843,7 @@ static struct clk trace_clk_div_ck = {/* SCRM aux clk nodes */ -static const struct clksel auxclk_sel[] = { +static struct clksel auxclk_sel[] = { { .parent = &sys_clkin_ck, .rates = div_1_0_rates }, { .parent = &dpll_core_m3x2_ck, .rates = div_1_1_rates }, { .parent = &dpll_per_m3x2_ck, .rates = div_1_2_rates },@@ -2927,7 +2927,7 @@ static struct clk auxclk5_ck = { .enable_bit = OMAP4_ENABLE_SHIFT, }; -static const struct clksel auxclkreq_sel[] = { +static struct clksel auxclkreq_sel[] = { { .parent = &auxclk0_ck, .rates = div_1_0_rates }, { .parent = &auxclk1_ck, .rates = div_1_1_rates }, { .parent = &auxclk2_ck, .rates = div_1_2_rates },arch/arm/plat-omap/clock.c +10
-1@@ -308,6 +308,16 @@ void clk_enable_init_clocks(void) } } +static struct clk *_omap_clk_get_by_name (const char *name) +{ +struct clk *c; + +list_for_each_entry (c, &clocks, node) +if (!strcmp (c->name, name)) +return c; +return NULL ; +} +/** * omap_clk_get_by_name - locate OMAP struct clk by its name * @name: name of the struct clk to locate @@ -318,21 +328,45 @@ void clk_enable_init_clocks(void)*/ struct clk *omap_clk_get_by_name (const char *name) { -struct clk *c;struct clk *ret =NULL ;Quoted 13 lines
arch/arm/plat-omap/clock.c void clk_enable_init_clocks(void)
Quoted 13 lines
arch/arm/plat-omap/clock.c +12
-0mutex_lock (&clocks_mutex); + ret =_omap_clk_get_by_name (name); +mutex_unlock (&clocks_mutex); + +return ret; +} + +static inline void omap_init_dpll_data_clk_pts (struct dpll_data *dd) +{ +if (!dd->clk_ref && dd->clk_ref_name) + dd->clk_ref =_omap_clk_get_by_name (dd->clk_ref_name); +if (!dd->clk_bypass && dd->clk_bypass_name) + dd->clk_bypass =
_omap_clk_get_by_name(dd->clk_bypass_name);Quoted 27 lines
Quoted 27 lines
arch/arm/plat-omap/clock.c +19
-4+} + +static inline void omap_init_clksel_clk_pts (struct clksel *clks) +{ +if (!clks->parent && clks->parent_name) + clks->parent =_omap_clk_get_by_name (clks->parent_name); +} + +void omap_init_clk_pts (void ) +{ +struct clk *c; + +mutex_lock (&clocks_mutex);list_for_each_entry (c, &clocks, node) { -if (!strcmp (c->name, name)) { - ret = c; -break ; - } +if (!c->parent && c->parent_name) + c->parent =_omap_clk_get_by_name (c->parent_name); +if (c->dpll_data) +omap_init_dpll_data_clk_pts (c->dpll_data); +if (c->clksel) +omap_init_clksel_clk_pts (c->clksel); }Quoted 7 lines
Review
Quoted 7 lines
arch/arm/plat-omap/clock.c +0
-2mutex_unlock (&clocks_mutex); - -return ret; }/* (quoted diff) +0
-0
b/arch/arm/plat-omap/include/plat/clock.hQuoted 6 lines
arch/arm/plat-omap/include/plat/clock.h struct clksel_rate { · line 86
Quoted 6 lines
index 8eb0ada..dc0d9fd 100644
arch/arm/plat-omap/include/plat/clock.h +0
-0@@ -85,6 +85,7 @@ struct clksel_rate {/** * struct clksel - available parent clocks, and a pointer to their divisors
Quoted 43 lines
Quoted 43 lines
arch/arm/plat-omap/include/plat/clock.h +7
-0* @parent: struct clk * to a possible parent clock +* @parent_name: Name of the possible parent clock * @rates: available divisors for this parent clock * * A struct clksel is always associated with one or more struct clks @@ -92,6 +93,7 @@ struct clksel_rate {*/ struct clksel {struct clk *parent; +const char *parent_name;const struct clksel_rate *rates; };@@ -101,7 +103,9 @@ struct clksel {* @mult_mask: mask of the DPLL M bitfield in @mult_div1_reg * @div1_mask: mask of the DPLL N bitfield in @mult_div1_reg * @clk_bypass: struct clk pointer to the clock's bypass clock input +* @clk_bypass_name: Name of the clock's bypass clock input * @clk_ref: struct clk pointer to the clock's reference clock input +* @clk_ref_name: Name of the clock's reference clock input * @control_reg: register containing the DPLL mode bitfield * @enable_mask: mask of the DPLL mode bitfield in @control_reg * @rate_tolerance: maximum variance allowed from target rate (in Hz) @@ -143,7 +147,9 @@ struct dpll_data {u32 mult_mask;u32 div1_mask;struct clk *clk_bypass; +const char *clk_bypass_name;struct clk *clk_ref; +const char *clk_ref_name;void __iomem *control_reg;u32 enable_mask;unsigned int rate_tolerance;@@ -230,6 +236,7 @@ struct clk {const struct clkops *ops;const char *name;struct clk *parent; +const char *parent_name;struct list_head children;struct list_head sibling;/* node for children */ unsigned long rate;@@ -245,7 +252,7 @@ struct clk {#ifdef CONFIG_ARCH_OMAP2PLUS Quoted 8 lines
arch/arm/plat-omap/include/plat/clock.h extern void clk_init_cpufreq_table(struct
Quoted 8 lines
arch/arm/plat-omap/include/plat/clock.h +1
-1void __iomem *clksel_reg;u32 clksel_mask; -const struct clksel *clksel; +struct clksel *clksel;struct dpll_data *dpll_data;const char *clkdm_name;struct clockdomain *clkdm;@@ -292,7 +299,7 @@ extern void clk_init_cpufreq_table(struct
cpufreq_frequency_table**table);Quoted 1 line
arch/arm/plat-omap/include/plat/clock.h extern void clk_init_cpufreq_table(struct · line 299
Quoted 1 line
arch/arm/plat-omap/include/plat/clock.h +0
-0extern void clk_exit_cpufreq_table(struct cpufreq_frequency_table**table);
Quoted 7 lines
Quoted 7 lines
arch/arm/plat-omap/include/plat/clock.h +1
-1#endif extern struct clk *omap_clk_get_by_name (const char *name); - +extern void omap_init_clk_pts (void );extern const struct clkops clkops_null;extern struct clk dummy_ck;
RE: [RFC 1/3] OMAP: clocks: Use clk names instead of clk pointers
Hi Kevin,
Quoted 6 lines
-----Original Message-----
From: Kevin Hilman [mailto:[email protected]]
Sent: Tuesday, January 25, 2011 9:28 PM
To: Rajendra Nayak
Cc: [email protected]; [email protected]
Subject: Re: [RFC 1/3] OMAP: clocks: Use clk names instead of clk
pointers
Quoted 36 lines
Hi Rajendra,
Quoted 31 lines · Rajendra Nayak
Quoted 6 lines
-----Original Message-----
From: Kevin Hilman [mailto:[email protected]]
Sent: Tuesday, January 25, 2011 3:38 AM
To: Rajendra Nayak
Cc: [email protected]; [email protected]
Subject: Re: [RFC 1/3] OMAP: clocks: Use clk names instead of clkpointers
Quoted 24 lines
Quoted 11 lines · Rajendra Nayak
There are various instances of clk pointers being embedded within structures in the clock framework to refer to clk parents, reference clocks, bypass clocks etc.
The right way to reference these is by their name and not by embedding direct pointers to these clks.Hence make provision to be able to provide clock names to refer to parents and bypass/ref clks and populate the clk pointers at runtime.
Quoted 6 lines
This requires the const qualifier to be dropped for struct clksel within struct clk and hence needs clksel struct definitions to be changed in all clock*_data.c files.
Signed-off-by Rajendra Nayak <[email protected]>I think the changelog needs a little more description about when the names are used instead of the pointers. It looks like the names are only used at init time to select the right pointers, but the rest of
the
Quoted 1 line
Quoted 1 line
Quoted 1 line
framework continues to use pointers as before, right? This isnt'
very
Quoted 14 lines
Quoted 14 lines
Quoted 1 line
clear from the changelog.
Right, the basic idea was to prevent the binding of clk pointers at compile time and instead do it at runtime. The rest of the code which uses pointers would still go ahead and use them.
This is similar to what happens in other frameworks like hwmod (which has themain_clkname populated and runtime maps to the relevant clk pointer) or clock framework itself (to identify the clockdomains associated with the clks)Also the patch leaves all the existing clk pointer associations at compile time as is and only uses this reference by name for a few nodes that get added in the later patches in the series.
Quoted 7 lines
Quoted 3 lines
If the approach seems ok, then a patch to replace all the existing pointer based referencing with the name based referencing can also be pushed.
The approach seems OK to me. I just think the changelog needs to be a bit clearer since on first read, it sounded (to me) like names were going to replace pointers for more than just init time.
I will update the changelog with the additional details.
Thanks,
Rajendra
Quoted 13 lines
Kevin
Quoted 10 lines
Regards,
RajendraQuoted 7 lines
Kevin
Quoted 3 lines
--- arch/arm/mach-omap2/clock2420_data.c | 86 +++++++++--------- arch/arm/mach-omap2/clock2430_data.c | 88
++++++++++----------
Quoted 50 lines
Quoted 50 lines
Quoted 1 line
Quoted 1 line
arch/arm/mach-omap2/clock3xxx_data.c | 144+++++++++++++++---------------
Quoted 1 line
Quoted 1 line
arch/arm/mach-omap2/clock44xx_data.c | 136+++++++++++++++---------------
Quoted 5 lines
Review
Quoted 5 lines
arch/arm/plat-omap/clock.c | 48 +++++++++-- arch/arm/plat-omap/include/plat/clock.h | 11 ++- 6 files changed, 277 insertions(+), 236 deletions(-)(quoted diff) +0
-0
b/arch/arm/mach-omap2/clock2420_data.cQuoted 40 lines
Quoted 40 lines
index 0a992bc..5662e51 100644
arch/arm/mach-omap2/clock2420_data.c +5
-5@@ -161,17 +161,17 @@ static struct clk apll54_ck = {/* func_54m_ck */ -static const struct clksel_rate func_54m_apll54_rates[] = { +static struct clksel_rate func_54m_apll54_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_24XX }, { .div =0 }, }; -static const struct clksel_rate func_54m_alt_rates[] = { +static struct clksel_rate func_54m_alt_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =0 }, }; -static const struct clksel func_54m_clksel[] = { +static struct clksel func_54m_clksel[] = { { .parent = &apll54_ck, .rates = func_54m_apll54_rates, }, { .parent = &alt_ck, .rates = func_54m_alt_rates, }, { .parent =NULL },@@ -207,17 +207,17 @@ static struct clk func_96m_ck = {/* func_48m_ck */ -static const struct clksel_rate func_48m_apll96_rates[] = { +static struct clksel_rate func_48m_apll96_rates[] = { { .div =2 , .val =0 , .flags =RATE_IN_24XX }, { .div =0 }, }; -static const struct clksel_rate func_48m_alt_rates[] = { +static struct clksel_rate func_48m_alt_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =0 }, };
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
arch/arm/mach-omap2/clock2420_data.c static struct clk wdt1_osc_ck = { · line 262
Quoted 7 lines
arch/arm/mach-omap2/clock2420_data.c +1
-1-static const struct clksel func_48m_clksel[] = { +static struct clksel func_48m_clksel[] = { { .parent = &apll96_ck, .rates = func_48m_apll96_rates }, { .parent = &alt_ck, .rates = func_48m_alt_rates }, { .parent =NULL }@@ -262,27 +262,27 @@ static struct clk wdt1_osc_ck = {* harmless since access to those clocks are gated by the struct
clk
Quoted 26 lines
Quoted 26 lines
Quoted 26 lines
Quoted 26 lines
arch/arm/mach-omap2/clock2420_data.c +4
-4* flags fields, which mark them as 2420-only. */ -static const struct clksel_rate common_clkout_src_core_rates[] = { +static struct clksel_rate common_clkout_src_core_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel_rate common_clkout_src_sys_rates[] = { +static struct clksel_rate common_clkout_src_sys_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel_rate common_clkout_src_96m_rates[] = { +static struct clksel_rate common_clkout_src_96m_rates[] = { { .div =1 , .val =2 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel_rate common_clkout_src_54m_rates[] = { +static struct clksel_rate common_clkout_src_54m_rates[] = { { .div =1 , .val =3 , .flags =RATE_IN_24XX }, { .div =0 } };
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
arch/arm/mach-omap2/clock2420_data.c static struct clk wdt1_osc_ck = {
Quoted 3 lines
arch/arm/mach-omap2/clock2420_data.c +1
-1-static const struct clksel common_clkout_src_clksel[] = { +static struct clksel common_clkout_src_clksel[] = { { .parent = &core_ck, .rates =
common_clkout_src_core_rates },
Quoted 1 line
Quoted 1 line
Quoted 1 line
arch/arm/mach-omap2/clock2420_data.c static struct clk wdt1_osc_ck = { · line 287
Quoted 1 line
arch/arm/mach-omap2/clock2420_data.c +0
-0{ .parent = &sys_ck, .rates =
common_clkout_src_sys_rates },
Quoted 1 line
Quoted 1 line
Quoted 1 line
arch/arm/mach-omap2/clock2420_data.c static struct clk wdt1_osc_ck = { · line 288
Quoted 1 line
arch/arm/mach-omap2/clock2420_data.c +0
-0{ .parent = &func_96m_ck, .rates =
common_clkout_src_96m_rates },
Quoted 11 lines
Quoted 11 lines
Quoted 10 lines
arch/arm/mach-omap2/clock2420_data.c static const struct clksel_rate
Quoted 10 lines
arch/arm/mach-omap2/clock2420_data.c +1
-1@@ -306,7 +306,7 @@ static struct clk sys_clkout_src = { .set_rate = &omap2_clksel_set_rate }; -static const struct clksel_rate common_clkout_rates[] = { +static struct clksel_rate common_clkout_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_24XX }, { .div =2 , .val =1 , .flags =RATE_IN_24XX }, { .div =4 , .val =2 , .flags =RATE_IN_24XX },@@ -315,7 +315,7 @@ static const struct clksel_ratecommon_clkout_rates[] = {
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
arch/arm/mach-omap2/clock2420_data.c static const struct clksel_rate common_clkout_rates[] = {
Quoted 6 lines
arch/arm/mach-omap2/clock2420_data.c +1
-1{ .div = 0 }, }; -static const struct clksel sys_clkout_clksel[] = { +static struct clksel sys_clkout_clksel[] = { { .parent = &sys_clkout_src, .rates = common_clkout_rates
},
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
arch/arm/mach-omap2/clock2420_data.c static struct clk sys_clkout2_src = { · line 354
Quoted 9 lines
arch/arm/mach-omap2/clock2420_data.c +1
-1{ .parent = NULL } };@@ -350,7 +350,7 @@ static struct clk sys_clkout2_src = { .set_rate = &omap2_clksel_set_rate }; -static const struct clksel sys_clkout2_clksel[] = { +static struct clksel sys_clkout2_clksel[] = { { .parent = &sys_clkout2_src, .rates = common_clkout_rates
},
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
arch/arm/mach-omap2/clock2420_data.c +0
-0{ .parent = NULL } };@@ -390,7 +390,7 @@ static struct clk emul_ck = {* - Base divider comes from: CM_CLKSEL_MPU
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
arch/arm/mach-omap2/clock2420_data.c static const struct clksel_rate
Quoted 8 lines
arch/arm/mach-omap2/clock2420_data.c +1
-1* */ -static const struct clksel_rate mpu_core_rates[] = { +static struct clksel_rate mpu_core_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =2 , .val =2 , .flags =RATE_IN_24XX }, { .div =4 , .val =4 , .flags =RATE_IN_242X },@@ -399,7 +399,7 @@ static const struct clksel_rate
mpu_core_rates[] =
Quoted 11 lines
Quoted 11 lines
{
Quoted 10 lines
arch/arm/mach-omap2/clock2420_data.c static struct clk mpu_ck = { /* Control cpu */ · line 426
Quoted 10 lines
arch/arm/mach-omap2/clock2420_data.c +1
-1{ .div = 0 }, }; -static const struct clksel mpu_clksel[] = { +static struct clksel mpu_clksel[] = { { .parent = &core_ck, .rates = mpu_core_rates }, { .parent =NULL } };@@ -426,7 +426,7 @@ static struct clk mpu_ck = { /* Control cpu */* controls. The other branch gets further divided by 2 then
possibly
Quoted 28 lines
Quoted 28 lines
Quoted 8 lines
arch/arm/mach-omap2/clock2420_data.c static const struct clksel_rate
Quoted 8 lines
arch/arm/mach-omap2/clock2420_data.c +1
-1* routed into a synchronizer and out of clocks abc. */ -static const struct clksel_rate dsp_fck_core_rates[] = { +static struct clksel_rate dsp_fck_core_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =2 , .val =2 , .flags =RATE_IN_24XX }, { .div =3 , .val =3 , .flags =RATE_IN_24XX },@@ -437,7 +437,7 @@ static const struct clksel_ratedsp_fck_core_rates[] = {
Quoted 19 lines
Quoted 19 lines
arch/arm/mach-omap2/clock2420_data.c +2
-2{ .div = 0 }, }; -static const struct clksel dsp_fck_clksel[] = { +static struct clksel dsp_fck_clksel[] = { { .parent = &core_ck, .rates = dsp_fck_core_rates }, { .parent =NULL } };@@ -456,13 +456,13 @@ static struct clk dsp_fck = { };/* DSP interface clock */ -static const struct clksel_rate dsp_irate_ick_rates[] = { +static struct clksel_rate dsp_irate_ick_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =2 , .val =2 , .flags =RATE_IN_24XX }, { .div =0 }, };
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
arch/arm/mach-omap2/clock2420_data.c static struct clk iva1_mpu_int_ifck = { · line 536
Quoted 7 lines
arch/arm/mach-omap2/clock2420_data.c +1
-1-static const struct clksel dsp_irate_ick_clksel[] = { +static struct clksel dsp_irate_ick_clksel[] = { { .parent = &dsp_fck, .rates = dsp_irate_ick_rates }, { .parent =NULL } };@@ -536,7 +536,7 @@ static struct clk iva1_mpu_int_ifck = {* may very well need notification when the clock changes.
Currently
Quoted 31 lines
Quoted 31 lines
for low
Quoted 8 lines
arch/arm/mach-omap2/clock2420_data.c static const struct clksel_rate
Quoted 8 lines
arch/arm/mach-omap2/clock2420_data.c +1
-1* operating points, these are taken care of in sleep.S. */ -static const struct clksel_rate core_l3_core_rates[] = { +static struct clksel_rate core_l3_core_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =2 , .val =2 , .flags =RATE_IN_242X }, { .div =4 , .val =4 , .flags =RATE_IN_24XX },@@ -547,7 +547,7 @@ static const struct clksel_ratecore_l3_core_rates[] = {
Quoted 9 lines
arch/arm/mach-omap2/clock2420_data.c static struct clk core_l3_ck = { /* Used
Quoted 9 lines
arch/arm/mach-omap2/clock2420_data.c +1
-1{ .div = 0 } }; -static const struct clksel core_l3_clksel[] = { +static struct clksel core_l3_clksel[] = { { .parent = &core_ck, .rates = core_l3_core_rates }, { .parent =NULL } };@@ -564,14 +564,14 @@ static struct clk core_l3_ck = { /* Usedfor ick and fck, interconnect */
Quoted 11 lines
Quoted 11 lines
arch/arm/mach-omap2/clock2420_data.c +1
-1};/* usb_l4_ick */ -static const struct clksel_rate usb_l4_ick_core_l3_rates[] = { +static struct clksel_rate usb_l4_ick_core_l3_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =2 , .val =2 , .flags =RATE_IN_24XX }, { .div =4 , .val =4 , .flags =RATE_IN_24XX }, { .div =0 } };
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
arch/arm/mach-omap2/clock2420_data.c static struct clk core_l3_ck = { /* Used for ick and fck, interconnect */
Quoted 3 lines
arch/arm/mach-omap2/clock2420_data.c +1
-1-static const struct clksel usb_l4_ick_clksel[] = { +static struct clksel usb_l4_ick_clksel[] = { { .parent = &core_l3_ck, .rates = usb_l4_ick_core_l3_rates
},
Quoted 32 lines
Quoted 32 lines
Quoted 3 lines
arch/arm/mach-omap2/clock2420_data.c static struct clk usb_l4_ick = { /* FS-USB
Quoted 3 lines
arch/arm/mach-omap2/clock2420_data.c +0
-0{ .parent = NULL }, };@@ -597,13 +597,13 @@ static struct clk usb_l4_ick = { /* FS-USBinterface clock */
Quoted 1 line
arch/arm/mach-omap2/clock2420_data.c static struct clk usb_l4_ick = { /* FS-USB · line 597
Quoted 1 line
arch/arm/mach-omap2/clock2420_data.c +0
-0* functional clocks. Fixed APLL functional source clocks are managed in
Quoted 9 lines
Quoted 9 lines
arch/arm/mach-omap2/clock2420_data.c +1
-1* this domain. */ -static const struct clksel_rate l4_core_l3_rates[] = { +static struct clksel_rate l4_core_l3_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =2 , .val =2 , .flags =RATE_IN_24XX }, { .div =0 } };Quoted 6 lines
arch/arm/mach-omap2/clock2420_data.c static struct clk l4_ck = { /* used
Quoted 6 lines
arch/arm/mach-omap2/clock2420_data.c +1
-1-static const struct clksel l4_clksel[] = { +static struct clksel l4_clksel[] = { { .parent = &core_l3_ck, .rates = l4_core_l3_rates }, { .parent =NULL } };@@ -627,7 +627,7 @@ static struct clk l4_ck = { /* usedboth as an ick and fck */
Quoted 9 lines
arch/arm/mach-omap2/clock2420_data.c static const struct clksel_rate
Quoted 9 lines
arch/arm/mach-omap2/clock2420_data.c +1
-1* * ssr = core/1/2/3/4/5, sst = 1/2 ssr. */ -static const struct clksel_rate ssi_ssr_sst_fck_core_rates[] = { +static struct clksel_rate ssi_ssr_sst_fck_core_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =2 , .val =2 , .flags =RATE_IN_24XX }, { .div =3 , .val =3 , .flags =RATE_IN_24XX },@@ -637,7 +637,7 @@ static const struct clksel_ratessi_ssr_sst_fck_core_rates[] = {
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
arch/arm/mach-omap2/clock2420_data.c static const struct clksel_rate ssi_ssr_sst_fck_core_rates[] = {
Quoted 6 lines
arch/arm/mach-omap2/clock2420_data.c +1
-1{ .div = 0 } }; -static const struct clksel ssi_ssr_sst_fck_clksel[] = { +static struct clksel ssi_ssr_sst_fck_clksel[] = { { .parent = &core_ck, .rates = ssi_ssr_sst_fck_core_rates
},
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
arch/arm/mach-omap2/clock2420_data.c static struct clk ssi_l4_ick = { · line 685
Quoted 6 lines
arch/arm/mach-omap2/clock2420_data.c +0
-0{ .parent = NULL } };@@ -683,7 +683,7 @@ static struct clk ssi_l4_ick = {*/ /* This clksel struct is shared between gfx_3d_fck and gfx_2d_fck
*/
Quoted 84 lines
Quoted 84 lines
Quoted 15 lines
Quoted 15 lines
arch/arm/mach-omap2/clock2420_data.c +2
-2-static const struct clksel gfx_fck_clksel[] = { +static struct clksel gfx_fck_clksel[] = { { .parent = &core_l3_ck, .rates = gfx_l3_rates }, { .parent =NULL }, };@@ -736,12 +736,12 @@ static struct clk gfx_ick = {*/ /* XXX Add RATE_NOT_VALIDATED */ -static const struct clksel_rate dss1_fck_sys_rates[] = { +static struct clksel_rate dss1_fck_sys_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_24XX }, { .div =0 } };Quoted 6 lines
arch/arm/mach-omap2/clock2420_data.c static const struct clksel_rate
Quoted 6 lines
arch/arm/mach-omap2/clock2420_data.c +1
-1-static const struct clksel_rate dss1_fck_core_rates[] = { +static struct clksel_rate dss1_fck_core_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =2 , .val =2 , .flags =RATE_IN_24XX }, { .div =3 , .val =3 , .flags =RATE_IN_24XX },@@ -755,7 +755,7 @@ static const struct clksel_ratedss1_fck_core_rates[] = {
Quoted 24 lines
Quoted 24 lines
arch/arm/mach-omap2/clock2420_data.c +3
-3{ .div = 0 } }; -static const struct clksel dss1_fck_clksel[] = { +static struct clksel dss1_fck_clksel[] = { { .parent = &sys_ck, .rates = dss1_fck_sys_rates }, { .parent = &core_ck, .rates = dss1_fck_core_rates }, { .parent =NULL },@@ -785,17 +785,17 @@ static struct clk dss1_fck = { .recalc = &omap2_clksel_recalc, }; -static const struct clksel_rate dss2_fck_sys_rates[] = { +static struct clksel_rate dss2_fck_sys_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel_rate dss2_fck_48m_rates[] = { +static struct clksel_rate dss2_fck_48m_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =0 } };Quoted 6 lines
arch/arm/mach-omap2/clock2420_data.c static struct clk dss_54m_fck = { /* Alt clk
Quoted 6 lines
arch/arm/mach-omap2/clock2420_data.c +1
-1-static const struct clksel dss2_fck_clksel[] = { +static struct clksel dss2_fck_clksel[] = { { .parent = &sys_ck, .rates = dss2_fck_sys_rates }, { .parent = &func_48m_ck, .rates = dss2_fck_48m_rates }, { .parent =NULL }@@ -831,12 +831,12 @@ static struct clk dss_54m_fck = { /* Alt clkused in power management */
Quoted 1 line
arch/arm/mach-omap2/clock2420_data.c static struct clk dss_54m_fck = { /* Alt clk · line 831
Quoted 1 line
arch/arm/mach-omap2/clock2420_data.c +0
-0* here will likely have an L4 interface parent, and may have multiple
Quoted 29 lines
Quoted 29 lines
arch/arm/mach-omap2/clock2420_data.c +4
-4* functional clock parents. */ -static const struct clksel_rate gpt_alt_rates[] = { +static struct clksel_rate gpt_alt_rates[] = { { .div =1 , .val =2 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel omap24xx_gpt_clksel[] = { +static struct clksel omap24xx_gpt_clksel[] = { { .parent = &func_32k_ck, .rates = gpt_32k_rates }, { .parent = &sys_ck, .rates = gpt_sys_rates }, { .parent = &alt_ck, .rates = gpt_alt_rates },@@ -1142,17 +1142,17 @@ static struct clk mcbsp1_ick = { .recalc = &followparent_recalc, }; -static const struct clksel_rate common_mcbsp_96m_rates[] = { +static struct clksel_rate common_mcbsp_96m_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel_rate common_mcbsp_mcbsp_rates[] = { +static struct clksel_rate common_mcbsp_mcbsp_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =0 } };
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
arch/arm/mach-omap2/clock2420_data.c static struct clk mcbsp1_ick = {
Quoted 3 lines
arch/arm/mach-omap2/clock2420_data.c +1
-1-static const struct clksel mcbsp_fck_clksel[] = { +static struct clksel mcbsp_fck_clksel[] = { { .parent = &func_96m_ck, .rates = common_mcbsp_96m_rates
},
Quoted 1 line
Quoted 1 line
Quoted 1 line
arch/arm/mach-omap2/clock2420_data.c static struct clk mcbsp1_ick = { · line 1157
Quoted 1 line
arch/arm/mach-omap2/clock2420_data.c +0
-0{ .parent = &mcbsp_clks, .rates =
common_mcbsp_mcbsp_rates },
Quoted 89 lines
Quoted 89 lines
Quoted 11 lines
Quoted 11 lines
arch/arm/mach-omap2/clock2420_data.c +1
-1{ .parent = NULL }@@ -1618,12 +1618,12 @@ static struct clk vlynq_ick = { .recalc = &followparent_recalc, }; -static const struct clksel_rate vlynq_fck_96m_rates[] = { +static struct clksel_rate vlynq_fck_96m_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_242X }, { .div =0 } };Quoted 6 lines
arch/arm/mach-omap2/clock2420_data.c static const struct clksel_rate
Quoted 6 lines
arch/arm/mach-omap2/clock2420_data.c +1
-1-static const struct clksel_rate vlynq_fck_core_rates[] = { +static struct clksel_rate vlynq_fck_core_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_242X }, { .div =2 , .val =2 , .flags =RATE_IN_242X }, { .div =3 , .val =3 , .flags =RATE_IN_242X },@@ -1637,7 +1637,7 @@ static const struct clksel_ratevlynq_fck_core_rates[] = {
Quoted 9 lines
Review
Quoted 9 lines
arch/arm/mach-omap2/clock2420_data.c +1
-1{ .div = 0 } }; -static const struct clksel vlynq_fck_clksel[] = { +static struct clksel vlynq_fck_clksel[] = { { .parent = &func_96m_ck, .rates = vlynq_fck_96m_rates }, { .parent = &core_ck, .rates = vlynq_fck_core_rates }, { .parent =NULL }(quoted diff) +0
-0
b/arch/arm/mach-omap2/clock2430_data.cQuoted 61 lines
Quoted 61 lines
index c047dcd..6f08a57 100644
arch/arm/mach-omap2/clock2430_data.c +8
-8@@ -161,17 +161,17 @@ static struct clk apll54_ck = {/* func_54m_ck */ -static const struct clksel_rate func_54m_apll54_rates[] = { +static struct clksel_rate func_54m_apll54_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_24XX }, { .div =0 }, }; -static const struct clksel_rate func_54m_alt_rates[] = { +static struct clksel_rate func_54m_alt_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =0 }, }; -static const struct clksel func_54m_clksel[] = { +static struct clksel func_54m_clksel[] = { { .parent = &apll54_ck, .rates = func_54m_apll54_rates, }, { .parent = &alt_ck, .rates = func_54m_alt_rates, }, { .parent =NULL },@@ -198,17 +198,17 @@ static struct clk core_ck = { };/* func_96m_ck */ -static const struct clksel_rate func_96m_apll96_rates[] = { +static struct clksel_rate func_96m_apll96_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_24XX }, { .div =0 }, }; -static const struct clksel_rate func_96m_alt_rates[] = { +static struct clksel_rate func_96m_alt_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_243X }, { .div =0 }, }; -static const struct clksel func_96m_clksel[] = { +static struct clksel func_96m_clksel[] = { { .parent = &apll96_ck, .rates = func_96m_apll96_rates }, { .parent = &alt_ck, .rates = func_96m_alt_rates }, { .parent =NULL }@@ -228,17 +228,17 @@ static struct clk func_96m_ck = {/* func_48m_ck */ -static const struct clksel_rate func_48m_apll96_rates[] = { +static struct clksel_rate func_48m_apll96_rates[] = { { .div =2 , .val =0 , .flags =RATE_IN_24XX }, { .div =0 }, }; -static const struct clksel_rate func_48m_alt_rates[] = { +static struct clksel_rate func_48m_alt_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =0 }, };
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
arch/arm/mach-omap2/clock2430_data.c static struct clk wdt1_osc_ck = { · line 283
Quoted 7 lines
arch/arm/mach-omap2/clock2430_data.c +1
-1-static const struct clksel func_48m_clksel[] = { +static struct clksel func_48m_clksel[] = { { .parent = &apll96_ck, .rates = func_48m_apll96_rates }, { .parent = &alt_ck, .rates = func_48m_alt_rates }, { .parent =NULL }@@ -283,27 +283,27 @@ static struct clk wdt1_osc_ck = {* harmless since access to those clocks are gated by the struct
clk
Quoted 26 lines
Quoted 26 lines
Quoted 26 lines
Quoted 26 lines
arch/arm/mach-omap2/clock2430_data.c +4
-4* flags fields, which mark them as 2420-only. */ -static const struct clksel_rate common_clkout_src_core_rates[] = { +static struct clksel_rate common_clkout_src_core_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel_rate common_clkout_src_sys_rates[] = { +static struct clksel_rate common_clkout_src_sys_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel_rate common_clkout_src_96m_rates[] = { +static struct clksel_rate common_clkout_src_96m_rates[] = { { .div =1 , .val =2 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel_rate common_clkout_src_54m_rates[] = { +static struct clksel_rate common_clkout_src_54m_rates[] = { { .div =1 , .val =3 , .flags =RATE_IN_24XX }, { .div =0 } };
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
arch/arm/mach-omap2/clock2430_data.c static struct clk wdt1_osc_ck = { · line 307
Quoted 3 lines
arch/arm/mach-omap2/clock2430_data.c +1
-1-static const struct clksel common_clkout_src_clksel[] = { +static struct clksel common_clkout_src_clksel[] = { { .parent = &core_ck, .rates =
common_clkout_src_core_rates },
Quoted 1 line
Quoted 1 line
Quoted 1 line
arch/arm/mach-omap2/clock2430_data.c static struct clk wdt1_osc_ck = { · line 308
Quoted 1 line
arch/arm/mach-omap2/clock2430_data.c +0
-0{ .parent = &sys_ck, .rates =
common_clkout_src_sys_rates },
Quoted 1 line
Quoted 1 line
Quoted 1 line
arch/arm/mach-omap2/clock2430_data.c static struct clk wdt1_osc_ck = { · line 309
Quoted 1 line
arch/arm/mach-omap2/clock2430_data.c +0
-0{ .parent = &func_96m_ck, .rates =
common_clkout_src_96m_rates },
Quoted 11 lines
Quoted 11 lines
Quoted 10 lines
arch/arm/mach-omap2/clock2430_data.c static const struct clksel_rate
Quoted 10 lines
arch/arm/mach-omap2/clock2430_data.c +1
-1@@ -327,7 +327,7 @@ static struct clk sys_clkout_src = { .set_rate = &omap2_clksel_set_rate }; -static const struct clksel_rate common_clkout_rates[] = { +static struct clksel_rate common_clkout_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_24XX }, { .div =2 , .val =1 , .flags =RATE_IN_24XX }, { .div =4 , .val =2 , .flags =RATE_IN_24XX },@@ -336,7 +336,7 @@ static const struct clksel_ratecommon_clkout_rates[] = {
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
arch/arm/mach-omap2/clock2430_data.c static const struct clksel_rate · line 340
Quoted 6 lines
arch/arm/mach-omap2/clock2430_data.c +1
-1{ .div = 0 }, }; -static const struct clksel sys_clkout_clksel[] = { +static struct clksel sys_clkout_clksel[] = { { .parent = &sys_clkout_src, .rates = common_clkout_rates
},
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
arch/arm/mach-omap2/clock2430_data.c +1
-1{ .parent = NULL } };@@ -375,13 +375,13 @@ static struct clk emul_ck = {* - Base divider comes from: CM_CLKSEL_MPU * */ -static const struct clksel_rate mpu_core_rates[] = { +static struct clksel_rate mpu_core_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =2 , .val =2 , .flags =RATE_IN_24XX }, { .div =0 }, };
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
arch/arm/mach-omap2/clock2430_data.c static struct clk mpu_ck = { /* Control cpu */ · line 408
Quoted 7 lines
arch/arm/mach-omap2/clock2430_data.c +1
-1-static const struct clksel mpu_clksel[] = { +static struct clksel mpu_clksel[] = { { .parent = &core_ck, .rates = mpu_core_rates }, { .parent =NULL } };@@ -408,7 +408,7 @@ static struct clk mpu_ck = { /* Control cpu */* controls. The other branch gets further divided by 2 then
possibly
Quoted 29 lines
Quoted 29 lines
Quoted 8 lines
arch/arm/mach-omap2/clock2430_data.c static const struct clksel_rate
Quoted 8 lines
arch/arm/mach-omap2/clock2430_data.c +1
-1* routed into a synchronizer and out of clocks abc. */ -static const struct clksel_rate dsp_fck_core_rates[] = { +static struct clksel_rate dsp_fck_core_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =2 , .val =2 , .flags =RATE_IN_24XX }, { .div =3 , .val =3 , .flags =RATE_IN_24XX },@@ -416,7 +416,7 @@ static const struct clksel_ratedsp_fck_core_rates[] = {
Quoted 20 lines
Quoted 20 lines
arch/arm/mach-omap2/clock2430_data.c +2
-2{ .div = 0 }, }; -static const struct clksel dsp_fck_clksel[] = { +static struct clksel dsp_fck_clksel[] = { { .parent = &core_ck, .rates = dsp_fck_core_rates }, { .parent =NULL } };@@ -435,14 +435,14 @@ static struct clk dsp_fck = { };/* DSP interface clock */ -static const struct clksel_rate dsp_irate_ick_rates[] = { +static struct clksel_rate dsp_irate_ick_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =2 , .val =2 , .flags =RATE_IN_24XX }, { .div =3 , .val =3 , .flags =RATE_IN_243X }, { .div =0 }, };
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
arch/arm/mach-omap2/clock2430_data.c static struct clk iva2_1_ick = { · line 486
Quoted 7 lines
arch/arm/mach-omap2/clock2430_data.c +1
-1-static const struct clksel dsp_irate_ick_clksel[] = { +static struct clksel dsp_irate_ick_clksel[] = { { .parent = &dsp_fck, .rates = dsp_irate_ick_rates }, { .parent =NULL } };@@ -486,14 +486,14 @@ static struct clk iva2_1_ick = {* may very well need notification when the clock changes.
Currently
Quoted 29 lines
Quoted 29 lines
for low
Quoted 10 lines
Quoted 10 lines
arch/arm/mach-omap2/clock2430_data.c +1
-1* operating points, these are taken care of in sleep.S. */ -static const struct clksel_rate core_l3_core_rates[] = { +static struct clksel_rate core_l3_core_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =4 , .val =4 , .flags =RATE_IN_24XX }, { .div =6 , .val =6 , .flags =RATE_IN_24XX }, { .div =0 } };Quoted 6 lines
arch/arm/mach-omap2/clock2430_data.c static struct clk core_l3_ck = { /* Used
Quoted 6 lines
arch/arm/mach-omap2/clock2430_data.c +1
-1-static const struct clksel core_l3_clksel[] = { +static struct clksel core_l3_clksel[] = { { .parent = &core_ck, .rates = core_l3_core_rates }, { .parent =NULL } };@@ -510,14 +510,14 @@ static struct clk core_l3_ck = { /* Usedfor ick and fck, interconnect */
Quoted 11 lines
Quoted 11 lines
arch/arm/mach-omap2/clock2430_data.c +1
-1};/* usb_l4_ick */ -static const struct clksel_rate usb_l4_ick_core_l3_rates[] = { +static struct clksel_rate usb_l4_ick_core_l3_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =2 , .val =2 , .flags =RATE_IN_24XX }, { .div =4 , .val =4 , .flags =RATE_IN_24XX }, { .div =0 } };
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
arch/arm/mach-omap2/clock2430_data.c static struct clk core_l3_ck = { /* Used · line 521
Quoted 3 lines
arch/arm/mach-omap2/clock2430_data.c +1
-1-static const struct clksel usb_l4_ick_clksel[] = { +static struct clksel usb_l4_ick_clksel[] = { { .parent = &core_l3_ck, .rates = usb_l4_ick_core_l3_rates
},
Quoted 32 lines
Quoted 32 lines
Quoted 3 lines
arch/arm/mach-omap2/clock2430_data.c static struct clk usb_l4_ick = { /* FS-USB
Quoted 3 lines
arch/arm/mach-omap2/clock2430_data.c +0
-0{ .parent = NULL }, };@@ -543,13 +543,13 @@ static struct clk usb_l4_ick = { /* FS-USBinterface clock */
Quoted 1 line
arch/arm/mach-omap2/clock2430_data.c static struct clk usb_l4_ick = { /* FS-USB · line 543
Quoted 1 line
arch/arm/mach-omap2/clock2430_data.c +0
-0* functional clocks. Fixed APLL functional source clocks are managed in
Quoted 9 lines
Quoted 9 lines
arch/arm/mach-omap2/clock2430_data.c +1
-1* this domain. */ -static const struct clksel_rate l4_core_l3_rates[] = { +static struct clksel_rate l4_core_l3_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =2 , .val =2 , .flags =RATE_IN_24XX }, { .div =0 } };Quoted 6 lines
arch/arm/mach-omap2/clock2430_data.c static struct clk l4_ck = { /* used
Quoted 6 lines
arch/arm/mach-omap2/clock2430_data.c +1
-1-static const struct clksel l4_clksel[] = { +static struct clksel l4_clksel[] = { { .parent = &core_l3_ck, .rates = l4_core_l3_rates }, { .parent =NULL } };@@ -573,7 +573,7 @@ static struct clk l4_ck = { /* usedboth as an ick and fck */
Quoted 9 lines
arch/arm/mach-omap2/clock2430_data.c static const struct clksel_rate
Quoted 9 lines
arch/arm/mach-omap2/clock2430_data.c +1
-1* * ssr = core/1/2/3/4/5, sst = 1/2 ssr. */ -static const struct clksel_rate ssi_ssr_sst_fck_core_rates[] = { +static struct clksel_rate ssi_ssr_sst_fck_core_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =2 , .val =2 , .flags =RATE_IN_24XX }, { .div =3 , .val =3 , .flags =RATE_IN_24XX },@@ -582,7 +582,7 @@ static const struct clksel_ratessi_ssr_sst_fck_core_rates[] = {
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
arch/arm/mach-omap2/clock2430_data.c static const struct clksel_rate · line 586
Quoted 6 lines
arch/arm/mach-omap2/clock2430_data.c +1
-1{ .div = 0 } }; -static const struct clksel ssi_ssr_sst_fck_clksel[] = { +static struct clksel ssi_ssr_sst_fck_clksel[] = { { .parent = &core_ck, .rates = ssi_ssr_sst_fck_core_rates
},
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
arch/arm/mach-omap2/clock2430_data.c static struct clk ssi_l4_ick = { · line 630
Quoted 6 lines
arch/arm/mach-omap2/clock2430_data.c +0
-0{ .parent = NULL } };@@ -628,7 +628,7 @@ static struct clk ssi_l4_ick = {*/ /* This clksel struct is shared between gfx_3d_fck and gfx_2d_fck
*/
Quoted 103 lines
Quoted 103 lines
Quoted 7 lines
Quoted 7 lines
arch/arm/mach-omap2/clock2430_data.c +1
-1-static const struct clksel gfx_fck_clksel[] = { +static struct clksel gfx_fck_clksel[] = { { .parent = &core_l3_ck, .rates = gfx_l3_rates }, { .parent =NULL }, };@@ -678,7 +678,7 @@ static struct clk gfx_ick = {* MDM_ICLK Quoted 8 lines
arch/arm/mach-omap2/clock2430_data.c static const struct clksel_rate
Quoted 8 lines
arch/arm/mach-omap2/clock2430_data.c +1
-1* These clocks are usable in chassis mode only. */ -static const struct clksel_rate mdm_ick_core_rates[] = { +static struct clksel_rate mdm_ick_core_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_243X }, { .div =4 , .val =4 , .flags =RATE_IN_243X }, { .div =6 , .val =6 , .flags =RATE_IN_243X },@@ -686,7 +686,7 @@ static const struct clksel_ratemdm_ick_core_rates[] = {
Quoted 18 lines
Quoted 18 lines
arch/arm/mach-omap2/clock2430_data.c +2
-2{ .div = 0 } }; -static const struct clksel mdm_ick_clksel[] = { +static struct clksel mdm_ick_clksel[] = { { .parent = &core_ck, .rates = mdm_ick_core_rates }, { .parent =NULL } };@@ -724,12 +724,12 @@ static struct clk mdm_osc_ck = {*/ /* XXX Add RATE_NOT_VALIDATED */ -static const struct clksel_rate dss1_fck_sys_rates[] = { +static struct clksel_rate dss1_fck_sys_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_24XX }, { .div =0 } };Quoted 6 lines
arch/arm/mach-omap2/clock2430_data.c static const struct clksel_rate
Quoted 6 lines
arch/arm/mach-omap2/clock2430_data.c +1
-1-static const struct clksel_rate dss1_fck_core_rates[] = { +static struct clksel_rate dss1_fck_core_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =2 , .val =2 , .flags =RATE_IN_24XX }, { .div =3 , .val =3 , .flags =RATE_IN_24XX },@@ -743,7 +743,7 @@ static const struct clksel_ratedss1_fck_core_rates[] = {
Quoted 24 lines
Quoted 24 lines
arch/arm/mach-omap2/clock2430_data.c +3
-3{ .div = 0 } }; -static const struct clksel dss1_fck_clksel[] = { +static struct clksel dss1_fck_clksel[] = { { .parent = &sys_ck, .rates = dss1_fck_sys_rates }, { .parent = &core_ck, .rates = dss1_fck_core_rates }, { .parent =NULL },@@ -773,17 +773,17 @@ static struct clk dss1_fck = { .recalc = &omap2_clksel_recalc, }; -static const struct clksel_rate dss2_fck_sys_rates[] = { +static struct clksel_rate dss2_fck_sys_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel_rate dss2_fck_48m_rates[] = { +static struct clksel_rate dss2_fck_48m_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =0 } };Quoted 6 lines
arch/arm/mach-omap2/clock2430_data.c static struct clk dss_54m_fck = { /* Alt clk
Quoted 6 lines
arch/arm/mach-omap2/clock2430_data.c +1
-1-static const struct clksel dss2_fck_clksel[] = { +static struct clksel dss2_fck_clksel[] = { { .parent = &sys_ck, .rates = dss2_fck_sys_rates }, { .parent = &func_48m_ck, .rates = dss2_fck_48m_rates }, { .parent =NULL }@@ -819,12 +819,12 @@ static struct clk dss_54m_fck = { /* Alt clkused in power management */
Quoted 1 line
arch/arm/mach-omap2/clock2430_data.c static struct clk dss_54m_fck = { /* Alt clk · line 819
Quoted 1 line
arch/arm/mach-omap2/clock2430_data.c +0
-0* here will likely have an L4 interface parent, and may have multiple
Quoted 29 lines
Quoted 29 lines
arch/arm/mach-omap2/clock2430_data.c +4
-4* functional clock parents. */ -static const struct clksel_rate gpt_alt_rates[] = { +static struct clksel_rate gpt_alt_rates[] = { { .div =1 , .val =2 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel omap24xx_gpt_clksel[] = { +static struct clksel omap24xx_gpt_clksel[] = { { .parent = &func_32k_ck, .rates = gpt_32k_rates }, { .parent = &sys_ck, .rates = gpt_sys_rates }, { .parent = &alt_ck, .rates = gpt_alt_rates },@@ -1130,17 +1130,17 @@ static struct clk mcbsp1_ick = { .recalc = &followparent_recalc, }; -static const struct clksel_rate common_mcbsp_96m_rates[] = { +static struct clksel_rate common_mcbsp_96m_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_24XX }, { .div =0 } }; -static const struct clksel_rate common_mcbsp_mcbsp_rates[] = { +static struct clksel_rate common_mcbsp_mcbsp_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_24XX }, { .div =0 } };
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
arch/arm/mach-omap2/clock2430_data.c static struct clk mcbsp1_ick = { · line 1144
Quoted 3 lines
arch/arm/mach-omap2/clock2430_data.c +1
-1-static const struct clksel mcbsp_fck_clksel[] = { +static struct clksel mcbsp_fck_clksel[] = { { .parent = &func_96m_ck, .rates = common_mcbsp_96m_rates
},
Quoted 1 line
Quoted 1 line
Quoted 1 line
arch/arm/mach-omap2/clock2430_data.c static struct clk mcbsp1_ick = { · line 1145
Quoted 1 line
arch/arm/mach-omap2/clock2430_data.c +0
-0{ .parent = &mcbsp_clks, .rates =
common_mcbsp_mcbsp_rates },
Quoted 46 lines
Quoted 46 lines
Quoted 2 lines
Review
Quoted 2 lines
arch/arm/mach-omap2/clock2430_data.c +0
-0{ .parent = NULL }(quoted diff) +0
-0
b/arch/arm/mach-omap2/clock3xxx_data.cQuoted 43 lines
Quoted 43 lines
index 403a4a1..9c87adb 100644
arch/arm/mach-omap2/clock3xxx_data.c +6
-6@@ -109,37 +109,37 @@ static struct clk virt_38_4m_ck = { .rate = 38400000, }; -static const struct clksel_rate osc_sys_12m_rates[] = { +static struct clksel_rate osc_sys_12m_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_3XXX }, { .div =0 } }; -static const struct clksel_rate osc_sys_13m_rates[] = { +static struct clksel_rate osc_sys_13m_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_3XXX }, { .div =0 } }; -static const struct clksel_rate osc_sys_16_8m_rates[] = { +static struct clksel_rate osc_sys_16_8m_rates[] = { { .div =1 , .val =5 , .flags =RATE_IN_3430ES2PLUS_36XX }, { .div =0 } }; -static const struct clksel_rate osc_sys_19_2m_rates[] = { +static struct clksel_rate osc_sys_19_2m_rates[] = { { .div =1 , .val =2 , .flags =RATE_IN_3XXX }, { .div =0 } }; -static const struct clksel_rate osc_sys_26m_rates[] = { +static struct clksel_rate osc_sys_26m_rates[] = { { .div =1 , .val =3 , .flags =RATE_IN_3XXX }, { .div =0 } }; -static const struct clksel_rate osc_sys_38_4m_rates[] = { +static struct clksel_rate osc_sys_38_4m_rates[] = { { .div =1 , .val =4 , .flags =RATE_IN_3XXX }, { .div =0 } };
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
arch/arm/mach-omap2/clock3xxx_data.c static struct clk virt_38_4m_ck = {
Quoted 5 lines
arch/arm/mach-omap2/clock3xxx_data.c +1
-1-static const struct clksel osc_sys_clksel[] = { +static struct clksel osc_sys_clksel[] = { { .parent = &virt_12m_ck, .rates = osc_sys_12m_rates }, { .parent = &virt_13m_ck, .rates = osc_sys_13m_rates }, { .parent = &virt_16_8m_ck, .rates = osc_sys_16_8m_rates
},
Quoted 18 lines
Quoted 18 lines
Quoted 18 lines
Quoted 18 lines
arch/arm/mach-omap2/clock3xxx_data.c +2
-2@@ -162,13 +162,13 @@ static struct clk osc_sys_ck = { .recalc = &omap2_clksel_recalc, }; -static const struct clksel_rate div2_rates[] = { +static struct clksel_rate div2_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_3XXX }, { .div =2 , .val =2 , .flags =RATE_IN_3XXX }, { .div =0 } }; -static const struct clksel sys_clksel[] = { +static struct clksel sys_clksel[] = { { .parent = &osc_sys_ck, .rates = div2_rates }, { .parent =NULL } };@@ -212,7 +212,7 @@ static struct clk sys_clkout1 = {
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
arch/arm/mach-omap2/clock3xxx_data.c static const struct clksel_rate
Quoted 8 lines
arch/arm/mach-omap2/clock3xxx_data.c +1
-1/* CM CLOCKS */ -static const struct clksel_rate div16_dpll_rates[] = { +static struct clksel_rate div16_dpll_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_3XXX }, { .div =2 , .val =2 , .flags =RATE_IN_3XXX }, { .div =3 , .val =3 , .flags =RATE_IN_3XXX },@@ -232,7 +232,7 @@ static const struct clksel_rate
div16_dpll_rates[]
Quoted 50 lines
Quoted 50 lines
= {
Quoted 11 lines
Quoted 11 lines
arch/arm/mach-omap2/clock3xxx_data.c +1
-1{ .div = 0 } }; -static const struct clksel_rate dpll4_rates[] = { +static struct clksel_rate dpll4_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_3XXX }, { .div =2 , .val =2 , .flags =RATE_IN_3XXX }, { .div =3 , .val =3 , .flags =RATE_IN_3XXX },@@ -318,7 +318,7 @@ static struct clk dpll1_x2_ck = { };Quoted 1 line
arch/arm/mach-omap2/clock3xxx_data.c static struct clk dpll1_x2_ck = { · line 320
Quoted 1 line
arch/arm/mach-omap2/clock3xxx_data.c +0
-0/* On DPLL1, unlike other DPLLs, the divider is downstream from CLKOUTX2 */
Quoted 18 lines
Quoted 18 lines
arch/arm/mach-omap2/clock3xxx_data.c +2
-2-static const struct clksel div16_dpll1_x2m2_clksel[] = { +static struct clksel div16_dpll1_x2m2_clksel[] = { { .parent = &dpll1_x2_ck, .rates = div16_dpll_rates }, { .parent =NULL } };@@ -378,7 +378,7 @@ static struct clk dpll2_ck = { .recalc = &omap3_dpll_recalc, }; -static const struct clksel div16_dpll2_m2x2_clksel[] = { +static struct clksel div16_dpll2_m2x2_clksel[] = { { .parent = &dpll2_ck, .rates = div16_dpll_rates }, { .parent =NULL } };@@ -449,7 +449,7 @@ static struct clk dpll3_x2_ck = { .recalc = &omap3_clkoutx2_recalc, };Quoted 6 lines
arch/arm/mach-omap2/clock3xxx_data.c static const struct clksel_rate
Quoted 6 lines
arch/arm/mach-omap2/clock3xxx_data.c +1
-1-static const struct clksel_rate div31_dpll3_rates[] = { +static struct clksel_rate div31_dpll3_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_3XXX }, { .div =2 , .val =2 , .flags =RATE_IN_3XXX }, { .div =3 , .val =3 , .flags =RATE_IN_3430ES2PLUS_36XX },@@ -484,7 +484,7 @@ static const struct clksel_ratediv31_dpll3_rates[] = {
Quoted 11 lines
Quoted 11 lines
arch/arm/mach-omap2/clock3xxx_data.c +1
-1{ .div = 0 }, }; -static const struct clksel div31_dpll3m2_clksel[] = { +static struct clksel div31_dpll3m2_clksel[] = { { .parent = &dpll3_ck, .rates = div31_dpll3_rates }, { .parent =NULL } };@@ -520,7 +520,7 @@ static struct clk dpll3_m2x2_ck = { };
Quoted 1 line
Quoted 1 line
Quoted 1 line
arch/arm/mach-omap2/clock3xxx_data.c static struct clk dpll3_m2x2_ck = { · line 522
Quoted 1 line
arch/arm/mach-omap2/clock3xxx_data.c +0
-0/* The PWRDN bit is apparently only available on 3430ES2 and above
*/
Quoted 68 lines
Quoted 68 lines
Quoted 25 lines
Quoted 25 lines
arch/arm/mach-omap2/clock3xxx_data.c +3
-3-static const struct clksel div16_dpll3_clksel[] = { +static struct clksel div16_dpll3_clksel[] = { { .parent = &dpll3_ck, .rates = div16_dpll_rates }, { .parent =NULL } };@@ -635,7 +635,7 @@ static struct clk dpll4_x2_ck = { .recalc = &omap3_clkoutx2_recalc, }; -static const struct clksel dpll4_clksel[] = { +static struct clksel dpll4_clksel[] = { { .parent = &dpll4_ck, .rates = dpll4_rates }, { .parent =NULL } };@@ -680,23 +680,23 @@ static struct clk omap_192m_alwon_fck = { .recalc = &followparent_recalc, }; -static const struct clksel_rate omap_96m_alwon_fck_rates[] = { +static struct clksel_rate omap_96m_alwon_fck_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_36XX }, { .div =2 , .val =2 , .flags =RATE_IN_36XX }, { .div =0 } };Quoted 3 lines
arch/arm/mach-omap2/clock3xxx_data.c static struct clk omap_192m_alwon_fck = {
Quoted 3 lines
arch/arm/mach-omap2/clock3xxx_data.c +1
-1-static const struct clksel omap_96m_alwon_fck_clksel[] = { +static struct clksel omap_96m_alwon_fck_clksel[] = { { .parent = &omap_192m_alwon_fck, .rates =
omap_96m_alwon_fck_rates},Quoted 39 lines
Quoted 39 lines
arch/arm/mach-omap2/clock3xxx_data.c +5
-5{ .parent = NULL } }; -static const struct clksel_rate omap_96m_dpll_rates[] = { +static struct clksel_rate omap_96m_dpll_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_3XXX }, { .div =0 } }; -static const struct clksel_rate omap_96m_sys_rates[] = { +static struct clksel_rate omap_96m_sys_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_3XXX }, { .div =0 } };@@ -726,7 +726,7 @@ static struct clk cm_96m_fck = { .recalc = &followparent_recalc, }; -static const struct clksel omap_96m_fck_clksel[] = { +static struct clksel omap_96m_fck_clksel[] = { { .parent = &cm_96m_fck, .rates = omap_96m_dpll_rates }, { .parent = &sys_ck, .rates = omap_96m_sys_rates }, { .parent =NULL }@@ -768,17 +768,17 @@ static struct clk dpll4_m3x2_ck = { .recalc = &omap3_clkoutx2_recalc, }; -static const struct clksel_rate omap_54m_d4m3x2_rates[] = { +static struct clksel_rate omap_54m_d4m3x2_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_3XXX }, { .div =0 } }; -static const struct clksel_rate omap_54m_alt_rates[] = { +static struct clksel_rate omap_54m_alt_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_3XXX }, { .div =0 } };
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
arch/arm/mach-omap2/clock3xxx_data.c static struct clk dpll4_m3x2_ck = {
Quoted 3 lines
arch/arm/mach-omap2/clock3xxx_data.c +1
-1-static const struct clksel omap_54m_clksel[] = { +static struct clksel omap_54m_clksel[] = { { .parent = &dpll4_m3x2_ck, .rates = omap_54m_d4m3x2_rates
},
Quoted 60 lines
Quoted 60 lines
Quoted 60 lines
Quoted 60 lines
arch/arm/mach-omap2/clock3xxx_data.c +8
-8{ .parent = &sys_altclk, .rates = omap_54m_alt_rates }, { .parent = NULL }@@ -794,17 +794,17 @@ static struct clk omap_54m_fck = { .recalc = &omap2_clksel_recalc, }; -static const struct clksel_rate omap_48m_cm96m_rates[] = { +static struct clksel_rate omap_48m_cm96m_rates[] = { { .div =2 , .val =0 , .flags =RATE_IN_3XXX }, { .div =0 } }; -static const struct clksel_rate omap_48m_alt_rates[] = { +static struct clksel_rate omap_48m_alt_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_3XXX }, { .div =0 } }; -static const struct clksel omap_48m_clksel[] = { +static struct clksel omap_48m_clksel[] = { { .parent = &cm_96m_fck, .rates = omap_48m_cm96m_rates }, { .parent = &sys_altclk, .rates = omap_48m_alt_rates }, { .parent =NULL }@@ -953,7 +953,7 @@ static struct clk dpll5_ck = { .recalc = &omap3_dpll_recalc, }; -static const struct clksel div16_dpll5_clksel[] = { +static struct clksel div16_dpll5_clksel[] = { { .parent = &dpll5_ck, .rates = div16_dpll_rates }, { .parent =NULL } };@@ -972,27 +972,27 @@ static struct clk dpll5_m2_ck = {/* CM EXTERNAL CLOCK OUTPUTS */ -static const struct clksel_rate clkout2_src_core_rates[] = { +static struct clksel_rate clkout2_src_core_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_3XXX }, { .div =0 } }; -static const struct clksel_rate clkout2_src_sys_rates[] = { +static struct clksel_rate clkout2_src_sys_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_3XXX }, { .div =0 } }; -static const struct clksel_rate clkout2_src_96m_rates[] = { +static struct clksel_rate clkout2_src_96m_rates[] = { { .div =1 , .val =2 , .flags =RATE_IN_3XXX }, { .div =0 } }; -static const struct clksel_rate clkout2_src_54m_rates[] = { +static struct clksel_rate clkout2_src_54m_rates[] = { { .div =1 , .val =3 , .flags =RATE_IN_3XXX }, { .div =0 } };
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
arch/arm/mach-omap2/clock3xxx_data.c static struct clk dpll5_m2_ck = {
Quoted 3 lines
arch/arm/mach-omap2/clock3xxx_data.c +1
-1-static const struct clksel clkout2_src_clksel[] = { +static struct clksel clkout2_src_clksel[] = { { .parent = &core_ck, .rates =
clkout2_src_core_rates },
Quoted 1 line
Quoted 1 line
Quoted 1 line
arch/arm/mach-omap2/clock3xxx_data.c static struct clk dpll5_m2_ck = { · line 997
Quoted 1 line
arch/arm/mach-omap2/clock3xxx_data.c +0
-0{ .parent = &sys_ck, .rates =
clkout2_src_sys_rates },
Quoted 1 line
Quoted 1 line
Quoted 1 line
arch/arm/mach-omap2/clock3xxx_data.c static struct clk dpll5_m2_ck = { · line 998
Quoted 1 line
arch/arm/mach-omap2/clock3xxx_data.c +0
-0{ .parent = &cm_96m_fck, .rates =
clkout2_src_96m_rates },
Quoted 123 lines
Quoted 123 lines
Quoted 10 lines
arch/arm/mach-omap2/clock3xxx_data.c static const struct clksel_rate
Quoted 10 lines
arch/arm/mach-omap2/clock3xxx_data.c +1
-1@@ -1013,7 +1013,7 @@ static struct clk clkout2_src_ck = { .recalc = &omap2_clksel_recalc, }; -static const struct clksel_rate sys_clkout2_rates[] = { +static struct clksel_rate sys_clkout2_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_3XXX }, { .div =2 , .val =1 , .flags =RATE_IN_3XXX }, { .div =4 , .val =2 , .flags =RATE_IN_3XXX },@@ -1022,7 +1022,7 @@ static const struct clksel_ratesys_clkout2_rates[] = {
Quoted 28 lines
Quoted 28 lines
arch/arm/mach-omap2/clock3xxx_data.c +3
-3{ .div = 0 }, }; -static const struct clksel sys_clkout2_clksel[] = { +static struct clksel sys_clkout2_clksel[] = { { .parent = &clkout2_src_ck, .rates = sys_clkout2_rates }, { .parent =NULL }, };@@ -1050,14 +1050,14 @@ static struct clk corex2_fck = {/* DPLL power domain clock controls */ -static const struct clksel_rate div4_rates[] = { +static struct clksel_rate div4_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_3XXX }, { .div =2 , .val =2 , .flags =RATE_IN_3XXX }, { .div =4 , .val =4 , .flags =RATE_IN_3XXX }, { .div =0 } }; -static const struct clksel div4_core_clksel[] = { +static struct clksel div4_core_clksel[] = { { .parent = &core_ck, .rates = div4_rates }, { .parent =NULL } };@@ -1086,13 +1086,13 @@ static struct clk mpu_ck = { };Quoted 1 line
arch/arm/mach-omap2/clock3xxx_data.c static struct clk mpu_ck = { · line 1088
Quoted 1 line
arch/arm/mach-omap2/clock3xxx_data.c +0
-0/* arm_fck is divided by two when DPLL1 locked; otherwise, passthrough
mpu_ck*/Quoted 34 lines
Quoted 34 lines
arch/arm/mach-omap2/clock3xxx_data.c +4
-4-static const struct clksel_rate arm_fck_rates[] = { +static struct clksel_rate arm_fck_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_3XXX }, { .div =2 , .val =1 , .flags =RATE_IN_3XXX }, { .div =0 }, }; -static const struct clksel arm_fck_clksel[] = { +static struct clksel arm_fck_clksel[] = { { .parent = &mpu_ck, .rates = arm_fck_rates }, { .parent =NULL } };@@ -1145,7 +1145,7 @@ static struct clk iva2_ck = {/* Common interface clocks */ -static const struct clksel div2_core_clksel[] = { +static struct clksel div2_core_clksel[] = { { .parent = &core_ck, .rates = div2_rates }, { .parent =NULL } };@@ -1162,7 +1162,7 @@ static struct clk l3_ick = { .recalc = &omap2_clksel_recalc, }; -static const struct clksel div2_l3_clksel[] = { +static struct clksel div2_l3_clksel[] = { { .parent = &l3_ick, .rates = div2_rates }, { .parent =NULL } };@@ -1180,7 +1180,7 @@ static struct clk l4_ick = { };Quoted 8 lines
arch/arm/mach-omap2/clock3xxx_data.c static struct clk rm_ick = { · line 1201
Quoted 8 lines
arch/arm/mach-omap2/clock3xxx_data.c +1
-1-static const struct clksel div2_l4_clksel[] = { +static struct clksel div2_l4_clksel[] = { { .parent = &l4_ick, .rates = div2_rates }, { .parent =NULL } };@@ -1200,7 +1200,7 @@ static struct clk rm_ick = {/* GFX clocks are in 3430ES1 only. 3430ES2 and later uses the SGX instead */
Quoted 8 lines
Quoted 8 lines
arch/arm/mach-omap2/clock3xxx_data.c +1
-1-static const struct clksel gfx_l3_clksel[] = { +static struct clksel gfx_l3_clksel[] = { { .parent = &l3_ick, .rates = gfx_l3_rates }, { .parent =NULL } };@@ -1257,7 +1257,7 @@ static struct clk gfx_cg2_ck = {Quoted 8 lines
arch/arm/mach-omap2/clock3xxx_data.c static const struct clksel_rate
Quoted 8 lines
arch/arm/mach-omap2/clock3xxx_data.c +1
-1/* SGX power domain - 3430ES2 only */ -static const struct clksel_rate sgx_core_rates[] = { +static struct clksel_rate sgx_core_rates[] = { { .div =2 , .val =5 , .flags =RATE_IN_36XX }, { .div =3 , .val =0 , .flags =RATE_IN_3XXX }, { .div =4 , .val =1 , .flags =RATE_IN_3XXX },@@ -1265,23 +1265,23 @@ static const struct clksel_ratesgx_core_rates[] = {
Quoted 22 lines
Quoted 22 lines
arch/arm/mach-omap2/clock3xxx_data.c +3
-3{ .div = 0 }, }; -static const struct clksel_rate sgx_192m_rates[] = { +static struct clksel_rate sgx_192m_rates[] = { { .div =1 , .val =4 , .flags =RATE_IN_36XX }, { .div =0 }, }; -static const struct clksel_rate sgx_corex2_rates[] = { +static struct clksel_rate sgx_corex2_rates[] = { { .div =3 , .val =6 , .flags =RATE_IN_36XX }, { .div =5 , .val =7 , .flags =RATE_IN_36XX }, { .div =0 }, }; -static const struct clksel_rate sgx_96m_rates[] = { +static struct clksel_rate sgx_96m_rates[] = { { .div =1 , .val =3 , .flags =RATE_IN_3XXX }, { .div =0 }, };
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
arch/arm/mach-omap2/clock3xxx_data.c static const struct clksel_rate sgx_core_rates[] = {
Quoted 5 lines
arch/arm/mach-omap2/clock3xxx_data.c +1
-1-static const struct clksel sgx_clksel[] = { +static struct clksel sgx_clksel[] = { { .parent = &core_ck, .rates = sgx_core_rates }, { .parent = &cm_96m_fck, .rates = sgx_96m_rates }, { .parent = &omap_192m_alwon_fck, .rates = sgx_192m_rates
},
Quoted 25 lines
Quoted 25 lines
Quoted 25 lines
Quoted 25 lines
arch/arm/mach-omap2/clock3xxx_data.c +3
-3@@ -1356,7 +1356,7 @@ static struct clk mad2d_ick = { .recalc = &followparent_recalc, }; -static const struct clksel omap343x_gpt_clksel[] = { +static struct clksel omap343x_gpt_clksel[] = { { .parent = &omap_32k_fck, .rates = gpt_32k_rates }, { .parent = &sys_ck, .rates = gpt_sys_rates }, { .parent =NULL }@@ -1501,17 +1501,17 @@ static struct clk i2c1_fck = {* MCBSP 1 & 5 get their 96MHz clock from core_96m_fck; * MCBSP 2, 3, 4 get their 96MHz clock from per_96m_fck. */ -static const struct clksel_rate common_mcbsp_96m_rates[] = { +static struct clksel_rate common_mcbsp_96m_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_3XXX }, { .div =0 } }; -static const struct clksel_rate common_mcbsp_mcbsp_rates[] = { +static struct clksel_rate common_mcbsp_mcbsp_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_3XXX }, { .div =0 } };
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
arch/arm/mach-omap2/clock3xxx_data.c static struct clk i2c1_fck = {
Quoted 3 lines
arch/arm/mach-omap2/clock3xxx_data.c +1
-1-static const struct clksel mcbsp_15_clksel[] = { +static struct clksel mcbsp_15_clksel[] = { { .parent = &core_96m_fck, .rates = common_mcbsp_96m_rates
},
Quoted 1 line
Quoted 1 line
Quoted 1 line
arch/arm/mach-omap2/clock3xxx_data.c static struct clk i2c1_fck = { · line 1516
Quoted 1 line
arch/arm/mach-omap2/clock3xxx_data.c +0
-0{ .parent = &mcbsp_clks, .rates =
common_mcbsp_mcbsp_rates },
Quoted 15 lines
Quoted 15 lines
Quoted 11 lines
arch/arm/mach-omap2/clock3xxx_data.c static const struct clksel_rate
Quoted 11 lines
arch/arm/mach-omap2/clock3xxx_data.c +1
-1{ .parent = NULL }@@ -1643,7 +1643,7 @@ static struct clk hdq_fck = {/* DPLL3-derived clock */ -static const struct clksel_rate ssi_ssr_corex2_rates[] = { +static struct clksel_rate ssi_ssr_corex2_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_3XXX }, { .div =2 , .val =2 , .flags =RATE_IN_3XXX }, { .div =3 , .val =3 , .flags =RATE_IN_3XXX },@@ -1653,7 +1653,7 @@ static const struct clksel_ratessi_ssr_corex2_rates[] = {
Quoted 3 lines
Quoted 3 lines
arch/arm/mach-omap2/clock3xxx_data.c +0
-0{ .div = 0 } };
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
arch/arm/mach-omap2/clock3xxx_data.c static struct clk ssi_ick_3430es2 = { · line 2078
Quoted 7 lines
arch/arm/mach-omap2/clock3xxx_data.c +1
-1-static const struct clksel ssi_ssr_clksel[] = { +static struct clksel ssi_ssr_clksel[] = { { .parent = &corex2_fck, .rates = ssi_ssr_corex2_rates }, { .parent =NULL } };@@ -2078,7 +2078,7 @@ static struct clk ssi_ick_3430es2 = {/* REVISIT: Technically the TRM claims that this is CORE_CLK
based,
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
arch/arm/mach-omap2/clock3xxx_data.c +1
-1* but l4_ick makes more sense to me */ -static const struct clksel usb_l4_clksel[] = { +static struct clksel usb_l4_clksel[] = { { .parent = &l4_ick, .rates = div2_rates }, { .parent =NULL }, };@@ -2282,7 +2282,7 @@ static struct clk usbhost_ick = {
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
arch/arm/mach-omap2/clock3xxx_data.c static const struct clksel_rate
Quoted 8 lines
arch/arm/mach-omap2/clock3xxx_data.c +1
-1/* WKUP */ -static const struct clksel_rate usim_96m_rates[] = { +static struct clksel_rate usim_96m_rates[] = { { .div =2 , .val =3 , .flags =RATE_IN_3XXX }, { .div =4 , .val =4 , .flags =RATE_IN_3XXX }, { .div =8 , .val =5 , .flags =RATE_IN_3XXX },@@ -2290,7 +2290,7 @@ static const struct clksel_rate
usim_96m_rates[]
Quoted 11 lines
Quoted 11 lines
= {
Quoted 9 lines
arch/arm/mach-omap2/clock3xxx_data.c static const struct clksel_rate
Quoted 9 lines
arch/arm/mach-omap2/clock3xxx_data.c +1
-1{ .div = 0 }, }; -static const struct clksel_rate usim_120m_rates[] = { +static struct clksel_rate usim_120m_rates[] = { { .div =4 , .val =7 , .flags =RATE_IN_3XXX }, { .div =8 , .val =8 , .flags =RATE_IN_3XXX }, { .div =16 , .val =9 , .flags =RATE_IN_3XXX },@@ -2298,7 +2298,7 @@ static const struct clksel_rateusim_120m_rates[] = {
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
arch/arm/mach-omap2/clock3xxx_data.c static const struct clksel_rate usim_120m_rates[] = {
Quoted 7 lines
arch/arm/mach-omap2/clock3xxx_data.c +1
-1{ .div = 0 }, }; -static const struct clksel usim_clksel[] = { +static struct clksel usim_clksel[] = { { .parent = &omap_96m_fck, .rates = usim_96m_rates }, { .parent = &dpll5_m2_ck, .rates = usim_120m_rates
},
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
arch/arm/mach-omap2/clock3xxx_data.c static struct clk mcbsp4_ick = { · line 2855
Quoted 8 lines
arch/arm/mach-omap2/clock3xxx_data.c +1
-1{ .parent = &sys_ck, .rates = div2_rates },@@ -2851,7 +2851,7 @@ static struct clk mcbsp4_ick = { .recalc = &followparent_recalc, }; -static const struct clksel mcbsp_234_clksel[] = { +static struct clksel mcbsp_234_clksel[] = { { .parent = &per_96m_fck, .rates = common_mcbsp_96m_rates
},
Quoted 1 line
Quoted 1 line
Quoted 1 line
arch/arm/mach-omap2/clock3xxx_data.c static struct clk mcbsp4_ick = { · line 2856
Quoted 1 line
arch/arm/mach-omap2/clock3xxx_data.c +0
-0{ .parent = &mcbsp_clks, .rates =
common_mcbsp_mcbsp_rates },
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
arch/arm/mach-omap2/clock3xxx_data.c static struct clk mcbsp4_fck = { · line 2901
Quoted 4 lines
arch/arm/mach-omap2/clock3xxx_data.c +0
-0{ .parent = NULL }@@ -2900,27 +2900,27 @@ static struct clk mcbsp4_fck = {/* More information: ARM Cortex-A8 Technical Reference Manual,
sect
Quoted 26 lines
Quoted 26 lines
10.1 */
Quoted 25 lines
Quoted 25 lines
arch/arm/mach-omap2/clock3xxx_data.c +4
-4-static const struct clksel_rate emu_src_sys_rates[] = { +static struct clksel_rate emu_src_sys_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_3XXX }, { .div =0 }, }; -static const struct clksel_rate emu_src_core_rates[] = { +static struct clksel_rate emu_src_core_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_3XXX }, { .div =0 }, }; -static const struct clksel_rate emu_src_per_rates[] = { +static struct clksel_rate emu_src_per_rates[] = { { .div =1 , .val =2 , .flags =RATE_IN_3XXX }, { .div =0 }, }; -static const struct clksel_rate emu_src_mpu_rates[] = { +static struct clksel_rate emu_src_mpu_rates[] = { { .div =1 , .val =3 , .flags =RATE_IN_3XXX }, { .div =0 }, };
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
arch/arm/mach-omap2/clock3xxx_data.c static struct clk mcbsp4_fck = {
Quoted 3 lines
arch/arm/mach-omap2/clock3xxx_data.c +1
-1-static const struct clksel emu_src_clksel[] = { +static struct clksel emu_src_clksel[] = { { .parent = &sys_ck, .rates = emu_src_sys_rates
},
Quoted 1 line
Quoted 1 line
Quoted 1 line
arch/arm/mach-omap2/clock3xxx_data.c static struct clk mcbsp4_fck = { · line 2924
Quoted 1 line
arch/arm/mach-omap2/clock3xxx_data.c +0
-0{ .parent = &emu_core_alwon_ck, .rates =
emu_src_core_rates },
Quoted 1 line
Quoted 1 line
Quoted 1 line
arch/arm/mach-omap2/clock3xxx_data.c static struct clk mcbsp4_fck = { · line 2925
Quoted 1 line
arch/arm/mach-omap2/clock3xxx_data.c +0
-0{ .parent = &emu_per_alwon_ck, .rates = emu_src_per_rates
},
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
arch/arm/mach-omap2/clock3xxx_data.c static const struct clksel_rate
Quoted 10 lines
arch/arm/mach-omap2/clock3xxx_data.c +1
-1@@ -2944,7 +2944,7 @@ static struct clk emu_src_ck = { .recalc = &omap2_clksel_recalc, }; -static const struct clksel_rate pclk_emu_rates[] = { +static struct clksel_rate pclk_emu_rates[] = { { .div =2 , .val =2 , .flags =RATE_IN_3XXX }, { .div =3 , .val =3 , .flags =RATE_IN_3XXX }, { .div =4 , .val =4 , .flags =RATE_IN_3XXX },@@ -2952,7 +2952,7 @@ static const struct clksel_rate
pclk_emu_rates[]
Quoted 188 lines
Quoted 188 lines
= {
Quoted 46 lines
Quoted 46 lines
arch/arm/mach-omap2/clock3xxx_data.c +5
-5{ .div = 0 }, }; -static const struct clksel pclk_emu_clksel[] = { +static struct clksel pclk_emu_clksel[] = { { .parent = &emu_src_ck, .rates = pclk_emu_rates }, { .parent =NULL }, };@@ -2968,14 +2968,14 @@ static struct clk pclk_fck = { .recalc = &omap2_clksel_recalc, }; -static const struct clksel_rate pclkx2_emu_rates[] = { +static struct clksel_rate pclkx2_emu_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_3XXX }, { .div =2 , .val =2 , .flags =RATE_IN_3XXX }, { .div =3 , .val =3 , .flags =RATE_IN_3XXX }, { .div =0 }, }; -static const struct clksel pclkx2_emu_clksel[] = { +static struct clksel pclkx2_emu_clksel[] = { { .parent = &emu_src_ck, .rates = pclkx2_emu_rates }, { .parent =NULL }, };@@ -2991,7 +2991,7 @@ static struct clk pclkx2_fck = { .recalc = &omap2_clksel_recalc, }; -static const struct clksel atclk_emu_clksel[] = { +static struct clksel atclk_emu_clksel[] = { { .parent = &emu_src_ck, .rates = div2_rates }, { .parent =NULL }, };@@ -3018,14 +3018,14 @@ static struct clk traceclk_src_fck = { .recalc = &omap2_clksel_recalc, }; -static const struct clksel_rate traceclk_rates[] = { +static struct clksel_rate traceclk_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_3XXX }, { .div =2 , .val =2 , .flags =RATE_IN_3XXX }, { .div =4 , .val =4 , .flags =RATE_IN_3XXX }, { .div =0 }, };Quoted 6 lines
Review
Quoted 6 lines
arch/arm/mach-omap2/clock3xxx_data.c +1
-1-static const struct clksel traceclk_clksel[] = { +static struct clksel traceclk_clksel[] = { { .parent = &traceclk_src_fck, .rates = traceclk_rates }, { .parent =NULL }, };(quoted diff) +0
-0
b/arch/arm/mach-omap2/clock44xx_data.cQuoted 73 lines
Quoted 73 lines
index e8cb32f..b02bfae 100644
arch/arm/mach-omap2/clock44xx_data.c +10
-10@@ -127,47 +127,47 @@ static struct clk virt_38400000_ck = { .rate = 38400000, }; -static const struct clksel_rate div_1_0_rates[] = { +static struct clksel_rate div_1_0_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_4430 }, { .div =0 }, }; -static const struct clksel_rate div_1_1_rates[] = { +static struct clksel_rate div_1_1_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_4430 }, { .div =0 }, }; -static const struct clksel_rate div_1_2_rates[] = { +static struct clksel_rate div_1_2_rates[] = { { .div =1 , .val =2 , .flags =RATE_IN_4430 }, { .div =0 }, }; -static const struct clksel_rate div_1_3_rates[] = { +static struct clksel_rate div_1_3_rates[] = { { .div =1 , .val =3 , .flags =RATE_IN_4430 }, { .div =0 }, }; -static const struct clksel_rate div_1_4_rates[] = { +static struct clksel_rate div_1_4_rates[] = { { .div =1 , .val =4 , .flags =RATE_IN_4430 }, { .div =0 }, }; -static const struct clksel_rate div_1_5_rates[] = { +static struct clksel_rate div_1_5_rates[] = { { .div =1 , .val =5 , .flags =RATE_IN_4430 }, { .div =0 }, }; -static const struct clksel_rate div_1_6_rates[] = { +static struct clksel_rate div_1_6_rates[] = { { .div =1 , .val =6 , .flags =RATE_IN_4430 }, { .div =0 }, }; -static const struct clksel_rate div_1_7_rates[] = { +static struct clksel_rate div_1_7_rates[] = { { .div =1 , .val =7 , .flags =RATE_IN_4430 }, { .div =0 }, }; -static const struct clksel sys_clkin_sel[] = { +static struct clksel sys_clkin_sel[] = { { .parent = &virt_12000000_ck, .rates = div_1_1_rates }, { .parent = &virt_13000000_ck, .rates = div_1_2_rates }, { .parent = &virt_16800000_ck, .rates = div_1_3_rates },@@ -221,7 +221,7 @@ static struct clk xclk60motg_ck = {/* Module clocks and DPLL outputs */ -static const struct clksel abe_dpll_bypass_clk_mux_sel[] = { +static struct clksel abe_dpll_bypass_clk_mux_sel[] = { { .parent = &sys_clkin_ck, .rates = div_1_0_rates }, { .parent = &sys_32k_ck, .rates = div_1_1_rates }, { .parent =NULL },@@ -283,7 +283,7 @@ static struct clk dpll_abe_x2_ck = { .recalc = &omap3_clkoutx2_recalc, };Quoted 6 lines
arch/arm/mach-omap2/clock44xx_data.c static const struct clksel_rate
Quoted 6 lines
arch/arm/mach-omap2/clock44xx_data.c +1
-1-static const struct clksel_rate div31_1to31_rates[] = { +static struct clksel_rate div31_1to31_rates[] = { { .div =1 , .val =1 , .flags =RATE_IN_4430 }, { .div =2 , .val =2 , .flags =RATE_IN_4430 }, { .div =3 , .val =3 , .flags =RATE_IN_4430 },@@ -318,7 +318,7 @@ static const struct clksel_ratediv31_1to31_rates[] = {
Quoted 54 lines
Quoted 54 lines
arch/arm/mach-omap2/clock44xx_data.c +6
-6{ .div = 0 }, }; -static const struct clksel dpll_abe_m2x2_div[] = { +static struct clksel dpll_abe_m2x2_div[] = { { .parent = &dpll_abe_x2_ck, .rates = div31_1to31_rates }, { .parent =NULL }, };@@ -343,14 +343,14 @@ static struct clk abe_24m_fclk = { .recalc = &omap_fixed_divisor_recalc, }; -static const struct clksel_rate div3_1to4_rates[] = { +static struct clksel_rate div3_1to4_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_4430 }, { .div =2 , .val =1 , .flags =RATE_IN_4430 }, { .div =4 , .val =2 , .flags =RATE_IN_4430 }, { .div =0 }, }; -static const struct clksel abe_clk_div[] = { +static struct clksel abe_clk_div[] = { { .parent = &dpll_abe_m2x2_ck, .rates = div3_1to4_rates }, { .parent =NULL }, };@@ -367,13 +367,13 @@ static struct clk abe_clk = { .set_rate = &omap2_clksel_set_rate, }; -static const struct clksel_rate div2_1to2_rates[] = { +static struct clksel_rate div2_1to2_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_4430 }, { .div =2 , .val =1 , .flags =RATE_IN_4430 }, { .div =0 }, }; -static const struct clksel aess_fclk_div[] = { +static struct clksel aess_fclk_div[] = { { .parent = &abe_clk, .rates = div2_1to2_rates }, { .parent =NULL }, };@@ -402,7 +402,7 @@ static struct clk dpll_abe_m3x2_ck = { .set_rate = &omap2_clksel_set_rate, }; -static const struct clksel core_hsd_byp_clk_mux_sel[] = { +static struct clksel core_hsd_byp_clk_mux_sel[] = { { .parent = &sys_clkin_ck, .rates = div_1_0_rates }, { .parent = &dpll_abe_m3x2_ck, .rates = div_1_1_rates }, { .parent =NULL },@@ -455,7 +455,7 @@ static struct clk dpll_core_x2_ck = { .recalc = &omap3_clkoutx2_recalc, };
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
arch/arm/mach-omap2/clock44xx_data.c static struct clk dpll_core_x2_ck = {
Quoted 3 lines
arch/arm/mach-omap2/clock44xx_data.c +1
-1-static const struct clksel dpll_core_m6x2_div[] = { +static struct clksel dpll_core_m6x2_div[] = { { .parent = &dpll_core_x2_ck, .rates = div31_1to31_rates
},
Quoted 24 lines
Quoted 24 lines
Quoted 24 lines
Quoted 24 lines
arch/arm/mach-omap2/clock44xx_data.c +2
-2{ .parent = NULL }, };@@ -472,7 +472,7 @@ static struct clk dpll_core_m6x2_ck = { .set_rate = &omap2_clksel_set_rate, }; -static const struct clksel dbgclk_mux_sel[] = { +static struct clksel dbgclk_mux_sel[] = { { .parent = &sys_clkin_ck, .rates = div_1_0_rates }, { .parent = &dpll_core_m6x2_ck, .rates = div_1_1_rates }, { .parent =NULL },@@ -485,7 +485,7 @@ static struct clk dbgclk_mux_ck = { .recalc = &followparent_recalc, }; -static const struct clksel dpll_core_m2_div[] = { +static struct clksel dpll_core_m2_div[] = { { .parent = &dpll_core_ck, .rates = div31_1to31_rates }, { .parent =NULL }, };@@ -522,7 +522,7 @@ static struct clk dpll_core_m5x2_ck = { .set_rate = &omap2_clksel_set_rate, };
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
arch/arm/mach-omap2/clock44xx_data.c static struct clk dpll_core_m5x2_ck = {
Quoted 3 lines
arch/arm/mach-omap2/clock44xx_data.c +1
-1-static const struct clksel div_core_div[] = { +static struct clksel div_core_div[] = { { .parent = &dpll_core_m5x2_ck, .rates = div2_1to2_rates
},
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
arch/arm/mach-omap2/clock44xx_data.c +0
-0{ .parent = NULL }, };@@ -539,7 +539,7 @@ static struct clk div_core_ck = { .set_rate = &omap2_clksel_set_rate, };
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
arch/arm/mach-omap2/clock44xx_data.c static const struct clksel_rate
Quoted 6 lines
arch/arm/mach-omap2/clock44xx_data.c +1
-1-static const struct clksel_rate div4_1to8_rates[] = { +static struct clksel_rate div4_1to8_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_4430 }, { .div =2 , .val =1 , .flags =RATE_IN_4430 }, { .div =4 , .val =2 , .flags =RATE_IN_4430 },@@ -547,7 +547,7 @@ static const struct clksel_rate
div4_1to8_rates[]
Quoted 7 lines
Quoted 7 lines
= {
Quoted 6 lines
arch/arm/mach-omap2/clock44xx_data.c static const struct clksel_rate div4_1to8_rates[] = {
Quoted 6 lines
arch/arm/mach-omap2/clock44xx_data.c +1
-1{ .div = 0 }, }; -static const struct clksel div_iva_hs_clk_div[] = { +static struct clksel div_iva_hs_clk_div[] = { { .parent = &dpll_core_m5x2_ck, .rates = div4_1to8_rates
},
Quoted 69 lines
Quoted 69 lines
Quoted 69 lines
Quoted 69 lines
arch/arm/mach-omap2/clock44xx_data.c +7
-7{ .parent = NULL }, };@@ -596,7 +596,7 @@ static struct clk dll_clk_div_ck = { .recalc = &omap_fixed_divisor_recalc, }; -static const struct clksel dpll_abe_m2_div[] = { +static struct clksel dpll_abe_m2_div[] = { { .parent = &dpll_abe_ck, .rates = div31_1to31_rates }, { .parent =NULL }, };@@ -639,7 +639,7 @@ static struct clk dpll_core_m7x2_ck = { .set_rate = &omap2_clksel_set_rate, }; -static const struct clksel iva_hsd_byp_clk_mux_sel[] = { +static struct clksel iva_hsd_byp_clk_mux_sel[] = { { .parent = &sys_clkin_ck, .rates = div_1_0_rates }, { .parent = &div_iva_hs_clk, .rates = div_1_1_rates }, { .parent =NULL },@@ -694,7 +694,7 @@ static struct clk dpll_iva_x2_ck = { .recalc = &omap3_clkoutx2_recalc, }; -static const struct clksel dpll_iva_m4x2_div[] = { +static struct clksel dpll_iva_m4x2_div[] = { { .parent = &dpll_iva_x2_ck, .rates = div31_1to31_rates }, { .parent =NULL }, };@@ -754,7 +754,7 @@ static struct clk dpll_mpu_ck = { .set_rate = &omap3_noncore_dpll_set_rate, }; -static const struct clksel dpll_mpu_m2_div[] = { +static struct clksel dpll_mpu_m2_div[] = { { .parent = &dpll_mpu_ck, .rates = div31_1to31_rates }, { .parent =NULL }, };@@ -779,7 +779,7 @@ static struct clk per_hs_clk_div_ck = { .recalc = &omap_fixed_divisor_recalc, }; -static const struct clksel per_hsd_byp_clk_mux_sel[] = { +static struct clksel per_hsd_byp_clk_mux_sel[] = { { .parent = &sys_clkin_ck, .rates = div_1_0_rates }, { .parent = &per_hs_clk_div_ck, .rates = div_1_1_rates }, { .parent =NULL },@@ -827,7 +827,7 @@ static struct clk dpll_per_ck = { .set_rate = &omap3_noncore_dpll_set_rate, }; -static const struct clksel dpll_per_m2_div[] = { +static struct clksel dpll_per_m2_div[] = { { .parent = &dpll_per_ck, .rates = div31_1to31_rates }, { .parent =NULL }, };@@ -851,7 +851,7 @@ static struct clk dpll_per_x2_ck = { .recalc = &omap3_clkoutx2_recalc, }; -static const struct clksel dpll_per_m2x2_div[] = { +static struct clksel dpll_per_m2x2_div[] = { { .parent = &dpll_per_x2_ck, .rates = div31_1to31_rates }, { .parent =NULL }, };@@ -969,7 +969,7 @@ static struct clk dpll_unipro_x2_ck = { .recalc = &omap3_clkoutx2_recalc, };
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
arch/arm/mach-omap2/clock44xx_data.c static struct clk dpll_unipro_x2_ck = {
Quoted 3 lines
arch/arm/mach-omap2/clock44xx_data.c +1
-1-static const struct clksel dpll_unipro_m2x2_div[] = { +static struct clksel dpll_unipro_m2x2_div[] = { { .parent = &dpll_unipro_x2_ck, .rates = div31_1to31_rates
},
Quoted 286 lines
Quoted 286 lines
Quoted 286 lines
Quoted 286 lines
arch/arm/mach-omap2/clock44xx_data.c +32
-32{ .parent = NULL }, };@@ -1033,7 +1033,7 @@ static struct clk dpll_usb_clkdcoldo_ck = { .recalc = &followparent_recalc, }; -static const struct clksel dpll_usb_m2_div[] = { +static struct clksel dpll_usb_m2_div[] = { { .parent = &dpll_usb_ck, .rates = div31_1to31_rates }, { .parent =NULL }, };@@ -1050,7 +1050,7 @@ static struct clk dpll_usb_m2_ck = { .set_rate = &omap2_clksel_set_rate, }; -static const struct clksel ducati_clk_mux_sel[] = { +static struct clksel ducati_clk_mux_sel[] = { { .parent = &div_core_ck, .rates = div_1_0_rates }, { .parent = &dpll_per_m6x2_ck, .rates = div_1_1_rates }, { .parent =NULL },@@ -1091,13 +1091,13 @@ static struct clk func_24mc_fclk = { .recalc = &omap_fixed_divisor_recalc, }; -static const struct clksel_rate div2_4to8_rates[] = { +static struct clksel_rate div2_4to8_rates[] = { { .div =4 , .val =0 , .flags =RATE_IN_4430 }, { .div =8 , .val =1 , .flags =RATE_IN_4430 }, { .div =0 }, }; -static const struct clksel func_48m_fclk_div[] = { +static struct clksel func_48m_fclk_div[] = { { .parent = &dpll_per_m2x2_ck, .rates = div2_4to8_rates }, { .parent =NULL }, };@@ -1122,13 +1122,13 @@ static struct clk func_48mc_fclk = { .recalc = &omap_fixed_divisor_recalc, }; -static const struct clksel_rate div2_2to4_rates[] = { +static struct clksel_rate div2_2to4_rates[] = { { .div =2 , .val =0 , .flags =RATE_IN_4430 }, { .div =4 , .val =1 , .flags =RATE_IN_4430 }, { .div =0 }, }; -static const struct clksel func_64m_fclk_div[] = { +static struct clksel func_64m_fclk_div[] = { { .parent = &dpll_per_m4x2_ck, .rates = div2_2to4_rates }, { .parent =NULL }, };@@ -1145,7 +1145,7 @@ static struct clk func_64m_fclk = { .set_rate = &omap2_clksel_set_rate, }; -static const struct clksel func_96m_fclk_div[] = { +static struct clksel func_96m_fclk_div[] = { { .parent = &dpll_per_m2x2_ck, .rates = div2_2to4_rates }, { .parent =NULL }, };@@ -1162,7 +1162,7 @@ static struct clk func_96m_fclk = { .set_rate = &omap2_clksel_set_rate, }; -static const struct clksel hsmmc6_fclk_sel[] = { +static struct clksel hsmmc6_fclk_sel[] = { { .parent = &func_64m_fclk, .rates = div_1_0_rates }, { .parent = &func_96m_fclk, .rates = div_1_1_rates }, { .parent =NULL },@@ -1175,13 +1175,13 @@ static struct clk hsmmc6_fclk = { .recalc = &followparent_recalc, }; -static const struct clksel_rate div2_1to8_rates[] = { +static struct clksel_rate div2_1to8_rates[] = { { .div =1 , .val =0 , .flags =RATE_IN_4430 }, { .div =8 , .val =1 , .flags =RATE_IN_4430 }, { .div =0 }, }; -static const struct clksel init_60m_fclk_div[] = { +static struct clksel init_60m_fclk_div[] = { { .parent = &dpll_usb_m2_ck, .rates = div2_1to8_rates }, { .parent =NULL }, };@@ -1198,7 +1198,7 @@ static struct clk init_60m_fclk = { .set_rate = &omap2_clksel_set_rate, }; -static const struct clksel l3_div_div[] = { +static struct clksel l3_div_div[] = { { .parent = &div_core_ck, .rates = div2_1to2_rates }, { .parent =NULL }, };@@ -1215,7 +1215,7 @@ static struct clk l3_div_ck = { .set_rate = &omap2_clksel_set_rate, }; -static const struct clksel l4_div_div[] = { +static struct clksel l4_div_div[] = { { .parent = &l3_div_ck, .rates = div2_1to2_rates }, { .parent =NULL }, };@@ -1240,7 +1240,7 @@ static struct clk lp_clk_div_ck = { .recalc = &omap_fixed_divisor_recalc, }; -static const struct clksel l4_wkup_clk_mux_sel[] = { +static struct clksel l4_wkup_clk_mux_sel[] = { { .parent = &sys_clkin_ck, .rates = div_1_0_rates }, { .parent = &lp_clk_div_ck, .rates = div_1_1_rates }, { .parent =NULL },@@ -1257,7 +1257,7 @@ static struct clk l4_wkup_clk_mux_ck = { .recalc = &omap2_clksel_recalc, }; -static const struct clksel per_abe_nc_fclk_div[] = { +static struct clksel per_abe_nc_fclk_div[] = { { .parent = &dpll_abe_m2_ck, .rates = div2_1to2_rates }, { .parent =NULL }, };@@ -1274,7 +1274,7 @@ static struct clk per_abe_nc_fclk = { .set_rate = &omap2_clksel_set_rate, }; -static const struct clksel mcasp2_fclk_sel[] = { +static struct clksel mcasp2_fclk_sel[] = { { .parent = &func_96m_fclk, .rates = div_1_0_rates }, { .parent = &per_abe_nc_fclk, .rates = div_1_1_rates }, { .parent =NULL },@@ -1309,7 +1309,7 @@ static struct clk per_abe_24m_fclk = { .recalc = &omap_fixed_divisor_recalc, }; -static const struct clksel pmd_stm_clock_mux_sel[] = { +static struct clksel pmd_stm_clock_mux_sel[] = { { .parent = &sys_clkin_ck, .rates = div_1_0_rates }, { .parent = &dpll_core_m6x2_ck, .rates = div_1_1_rates }, { .parent = &tie_low_clock_ck, .rates = div_1_2_rates },@@ -1330,7 +1330,7 @@ static struct clk pmd_trace_clk_mux_ck = { .recalc = &followparent_recalc, }; -static const struct clksel syc_clk_div_div[] = { +static struct clksel syc_clk_div_div[] = { { .parent = &sys_clkin_ck, .rates = div2_1to2_rates }, { .parent =NULL }, };@@ -1399,7 +1399,7 @@ static struct clk des3des_fck = { .recalc = &followparent_recalc, }; -static const struct clksel dmic_sync_mux_sel[] = { +static struct clksel dmic_sync_mux_sel[] = { { .parent = &abe_24m_fclk, .rates = div_1_0_rates }, { .parent = &syc_clk_div_ck, .rates = div_1_1_rates }, { .parent = &func_24m_clk, .rates = div_1_2_rates },@@ -1417,7 +1417,7 @@ static struct clk dmic_sync_mux_ck = { .recalc = &omap2_clksel_recalc, }; -static const struct clksel func_dmic_abe_gfclk_sel[] = { +static struct clksel func_dmic_abe_gfclk_sel[] = { { .parent = &dmic_sync_mux_ck, .rates = div_1_0_rates }, { .parent = &pad_clks_ck, .rates = div_1_1_rates }, { .parent = &slimbus_clk, .rates = div_1_2_rates },@@ -1531,7 +1531,7 @@ static struct clk emif2_fck = { .recalc = &followparent_recalc, }; -static const struct clksel fdif_fclk_div[] = { +static struct clksel fdif_fclk_div[] = { { .parent = &dpll_per_m4x2_ck, .rates = div3_1to4_rates }, { .parent =NULL }, };@@ -1692,7 +1692,7 @@ static struct clk gpmc_ick = { .recalc = &followparent_recalc, }; -static const struct clksel sgx_clk_mux_sel[] = { +static struct clksel sgx_clk_mux_sel[] = { { .parent = &dpll_core_m7x2_ck, .rates = div_1_0_rates }, { .parent = &dpll_per_m7x2_ck, .rates = div_1_1_rates }, { .parent =NULL },@@ -1723,7 +1723,7 @@ static struct clk hdq1w_fck = { .recalc = &followparent_recalc, }; -static const struct clksel hsi_fclk_div[] = { +static struct clksel hsi_fclk_div[] = { { .parent = &dpll_per_m2x2_ck, .rates = div3_1to4_rates }, { .parent =NULL }, };@@ -1867,7 +1867,7 @@ static struct clk mcasp_sync_mux_ck = { .recalc = &omap2_clksel_recalc, }; -static const struct clksel func_mcasp_abe_gfclk_sel[] = { +static struct clksel func_mcasp_abe_gfclk_sel[] = { { .parent = &mcasp_sync_mux_ck, .rates = div_1_0_rates }, { .parent = &pad_clks_ck, .rates = div_1_1_rates }, { .parent = &slimbus_clk, .rates = div_1_2_rates },@@ -1900,7 +1900,7 @@ static struct clk mcbsp1_sync_mux_ck = { .recalc = &omap2_clksel_recalc, }; -static const struct clksel func_mcbsp1_gfclk_sel[] = { +static struct clksel func_mcbsp1_gfclk_sel[] = { { .parent = &mcbsp1_sync_mux_ck, .rates = div_1_0_rates }, { .parent = &pad_clks_ck, .rates = div_1_1_rates }, { .parent = &slimbus_clk, .rates = div_1_2_rates },@@ -1933,7 +1933,7 @@ static struct clk mcbsp2_sync_mux_ck = { .recalc = &omap2_clksel_recalc, }; -static const struct clksel func_mcbsp2_gfclk_sel[] = { +static struct clksel func_mcbsp2_gfclk_sel[] = { { .parent = &mcbsp2_sync_mux_ck, .rates = div_1_0_rates }, { .parent = &pad_clks_ck, .rates = div_1_1_rates }, { .parent = &slimbus_clk, .rates = div_1_2_rates },@@ -1966,7 +1966,7 @@ static struct clk mcbsp3_sync_mux_ck = { .recalc = &omap2_clksel_recalc, }; -static const struct clksel func_mcbsp3_gfclk_sel[] = { +static struct clksel func_mcbsp3_gfclk_sel[] = { { .parent = &mcbsp3_sync_mux_ck, .rates = div_1_0_rates }, { .parent = &pad_clks_ck, .rates = div_1_1_rates }, { .parent = &slimbus_clk, .rates = div_1_2_rates },@@ -1999,7 +1999,7 @@ static struct clk mcbsp4_sync_mux_ck = { .recalc = &omap2_clksel_recalc, }; -static const struct clksel per_mcbsp4_gfclk_sel[] = { +static struct clksel per_mcbsp4_gfclk_sel[] = { { .parent = &mcbsp4_sync_mux_ck, .rates = div_1_0_rates }, { .parent = &pad_clks_ck, .rates = div_1_1_rates }, { .parent =NULL },@@ -2401,7 +2401,7 @@ static struct clk timer4_fck = { .clkdm_name = "l4_per_clkdm", }; -static const struct clksel timer5_sync_mux_sel[] = { +static struct clksel timer5_sync_mux_sel[] = { { .parent = &syc_clk_div_ck, .rates = div_1_0_rates }, { .parent = &sys_32k_ck, .rates = div_1_1_rates }, { .parent =NULL },@@ -2532,7 +2532,7 @@ static struct clk usb_host_fs_fck = { .recalc = &followparent_recalc, }; -static const struct clksel utmi_p1_gfclk_sel[] = { +static struct clksel utmi_p1_gfclk_sel[] = { { .parent = &init_60m_fclk, .rates = div_1_0_rates }, { .parent = &xclk60mhsp1_ck, .rates = div_1_1_rates }, { .parent =NULL },@@ -2559,7 +2559,7 @@ static struct clk usb_host_hs_utmi_p1_clk = { .recalc = &followparent_recalc, }; -static const struct clksel utmi_p2_gfclk_sel[] = { +static struct clksel utmi_p2_gfclk_sel[] = { { .parent = &init_60m_fclk, .rates = div_1_0_rates }, { .parent = &xclk60mhsp2_ck, .rates = div_1_1_rates }, { .parent =NULL },@@ -2656,7 +2656,7 @@ static struct clk usb_host_hs_fck = { .recalc = &followparent_recalc, }; -static const struct clksel otg_60m_gfclk_sel[] = { +static struct clksel otg_60m_gfclk_sel[] = { { .parent = &utmi_phy_clkout_ck, .rates = div_1_0_rates }, { .parent = &xclk60motg_ck, .rates = div_1_1_rates }, { .parent =NULL },@@ -2743,13 +2743,13 @@ static struct clk usb_tll_hs_ick = { .recalc = &followparent_recalc, }; -static const struct clksel_rate div2_14to18_rates[] = { +static struct clksel_rate div2_14to18_rates[] = { { .div =14 , .val =0 , .flags =RATE_IN_4430 }, { .div =18 , .val =1 , .flags =RATE_IN_4430 }, { .div =0 }, };
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
arch/arm/mach-omap2/clock44xx_data.c static struct clk usb_tll_hs_ick = {
Quoted 3 lines
arch/arm/mach-omap2/clock44xx_data.c +1
-1-static const struct clksel usim_fclk_div[] = { +static struct clksel usim_fclk_div[] = { { .parent = &dpll_per_m4x2_ck, .rates = div2_14to18_rates
},
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
arch/arm/mach-omap2/clock44xx_data.c static struct clk wd_timer3_fck = { · line 2811
Quoted 9 lines
arch/arm/mach-omap2/clock44xx_data.c +1
-1{ .parent = NULL }, };@@ -2807,7 +2807,7 @@ static struct clk wd_timer3_fck = { };/* Remaining optional clocks */ -static const struct clksel stm_clk_div_div[] = { +static struct clksel stm_clk_div_div[] = { { .parent = &pmd_stm_clock_mux_ck, .rates =
div3_1to4_rates },
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
arch/arm/mach-omap2/clock44xx_data.c static struct clk stm_clk_div_ck = { · line 2828
Quoted 9 lines
arch/arm/mach-omap2/clock44xx_data.c +1
-1{ .parent = NULL }, };@@ -2824,7 +2824,7 @@ static struct clk stm_clk_div_ck = { .set_rate = &omap2_clksel_set_rate, }; -static const struct clksel trace_clk_div_div[] = { +static struct clksel trace_clk_div_div[] = { { .parent = &pmd_trace_clk_mux_ck, .rates =
div3_1to4_rates },
Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
arch/arm/mach-omap2/clock44xx_data.c +1
-1{ .parent = NULL }, };@@ -2843,7 +2843,7 @@ static struct clk trace_clk_div_ck = {/* SCRM aux clk nodes */ -static const struct clksel auxclk_sel[] = { +static struct clksel auxclk_sel[] = { { .parent = &sys_clkin_ck, .rates = div_1_0_rates }, { .parent = &dpll_core_m3x2_ck, .rates = div_1_1_rates }, { .parent = &dpll_per_m3x2_ck, .rates = div_1_2_rates },@@ -2927,7 +2927,7 @@ static struct clk auxclk5_ck = { .enable_bit = OMAP4_ENABLE_SHIFT, };
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Review
Quoted 6 lines
arch/arm/mach-omap2/clock44xx_data.c +1
-1-static const struct clksel auxclkreq_sel[] = { +static struct clksel auxclkreq_sel[] = { { .parent = &auxclk0_ck, .rates = div_1_0_rates }, { .parent = &auxclk1_ck, .rates = div_1_1_rates }, { .parent = &auxclk2_ck, .rates = div_1_2_rates },(quoted diff) +0
-0
b/arch/arm/plat-omap/clock.c
Quoted 27 lines
Quoted 27 lines
Quoted 27 lines
Quoted 27 lines
index fc62fb5..9bfd193 100644
arch/arm/plat-omap/clock.c +10
-1@@ -308,6 +308,16 @@ void clk_enable_init_clocks(void) } } +static struct clk *_omap_clk_get_by_name (const char *name) +{ +struct clk *c; + +list_for_each_entry (c, &clocks, node) +if (!strcmp (c->name, name)) +return c; +return NULL ; +} +/** * omap_clk_get_by_name - locate OMAP struct clk by its name * @name: name of the struct clk to locate @@ -318,21 +328,45 @@ void clk_enable_init_clocks(void)*/ struct clk *omap_clk_get_by_name (const char *name) { -struct clk *c;struct clk *ret =NULL ;
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
arch/arm/plat-omap/clock.c void clk_enable_init_clocks(void)
Quoted 8 lines
arch/arm/plat-omap/clock.c +7
-0mutex_lock (&clocks_mutex); + ret =_omap_clk_get_by_name (name); +mutex_unlock (&clocks_mutex); + +return ret; +} + +static inline void omap_init_dpll_data_clk_pts(struct dpll_data
*dd)
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
arch/arm/plat-omap/clock.c void clk_enable_init_clocks(void)
Quoted 3 lines
arch/arm/plat-omap/clock.c +3
-0+{ +if (!dd->clk_ref && dd->clk_ref_name) + dd->clk_ref =
_omap_clk_get_by_name(dd->clk_ref_name);
Quoted 9 lines
Quoted 9 lines
Quoted 2 lines
arch/arm/plat-omap/clock.c void clk_enable_init_clocks(void) · line 345
Quoted 2 lines
arch/arm/plat-omap/clock.c +2
-0+if (!dd->clk_bypass && dd->clk_bypass_name) + dd->clk_bypass =
_omap_clk_get_by_name(dd->clk_bypass_name);Quoted 6 lines
arch/arm/plat-omap/clock.c void clk_enable_init_clocks(void)
Quoted 6 lines
arch/arm/plat-omap/clock.c +6
-0+} + +static inline void omap_init_clksel_clk_pts (struct clksel *clks) +{ +if (!clks->parent && clks->parent_name) + clks->parent =
_omap_clk_get_by_name(clks->parent_name);
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
arch/arm/plat-omap/clock.c +7
-0+} + +void omap_init_clk_pts (void ) +{ +struct clk *c; + +mutex_lock (&clocks_mutex);
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
arch/arm/plat-omap/clock.c void clk_enable_init_clocks(void)
Quoted 7 lines
arch/arm/plat-omap/clock.c +2
-4list_for_each_entry (c, &clocks, node) { -if (!strcmp (c->name, name)) { - ret = c; -break ; - } +if (!c->parent && c->parent_name) + c->parent =
_omap_clk_get_by_name(c->parent_name);
Quoted 21 lines
Quoted 21 lines
Quoted 6 lines
Quoted 6 lines
arch/arm/plat-omap/clock.c +4
-0+if (c->dpll_data) +omap_init_dpll_data_clk_pts (c->dpll_data); +if (c->clksel) +omap_init_clksel_clk_pts (c->clksel); }Quoted 7 lines
Review
Quoted 7 lines
arch/arm/plat-omap/clock.c +0
-2mutex_unlock (&clocks_mutex); - -return ret; }/* (quoted diff) +0
-0
b/arch/arm/plat-omap/include/plat/clock.hQuoted 6 lines
arch/arm/plat-omap/include/plat/clock.h struct clksel_rate { · line 86
Quoted 6 lines
index 8eb0ada..dc0d9fd 100644
arch/arm/plat-omap/include/plat/clock.h +0
-0@@ -85,6 +85,7 @@ struct clksel_rate {/** * struct clksel - available parent clocks, and a pointer to their divisors
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
arch/arm/plat-omap/include/plat/clock.h struct clksel_rate {
Quoted 5 lines
arch/arm/plat-omap/include/plat/clock.h +1
-0* @parent: struct clk * to a possible parent clock +* @parent_name: Name of the possible parent clock * @rates: available divisors for this parent clock * * A struct clksel is always associated with one or more struct
clks
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
arch/arm/plat-omap/include/plat/clock.h +1
-0@@ -92,6 +93,7 @@ struct clksel_rate {*/ struct clksel {struct clk *parent; +const char *parent_name;const struct clksel_rate *rates; };
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
arch/arm/plat-omap/include/plat/clock.h struct clksel { · line 105
Quoted 4 lines
arch/arm/plat-omap/include/plat/clock.h +0
-0@@ -101,7 +103,9 @@ struct clksel {* @mult_mask: mask of the DPLL M bitfield in @mult_div1_reg * @div1_mask: mask of the DPLL N bitfield in @mult_div1_reg * @clk_bypass: struct clk pointer to the clock's bypass clock
input
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
arch/arm/plat-omap/include/plat/clock.h struct clksel { · line 107
Quoted 2 lines
arch/arm/plat-omap/include/plat/clock.h +1
-0+* @clk_bypass_name: Name of the clock's bypass clock input * @clk_ref: struct clk pointer to the clock's reference clock
input
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
arch/arm/plat-omap/include/plat/clock.h struct clksel {
Quoted 4 lines
arch/arm/plat-omap/include/plat/clock.h +1
-0+* @clk_ref_name: Name of the clock's reference clock input * @control_reg: register containing the DPLL mode bitfield * @enable_mask: mask of the DPLL mode bitfield in @control_reg * @rate_tolerance: maximum variance allowed from target rate (in
Hz)
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
arch/arm/plat-omap/include/plat/clock.h +2
-0@@ -143,7 +147,9 @@ struct dpll_data {u32 mult_mask;u32 div1_mask;struct clk *clk_bypass; +const char *clk_bypass_name;struct clk *clk_ref; +const char *clk_ref_name;void __iomem *control_reg;u32 enable_mask;
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
arch/arm/plat-omap/include/plat/clock.h struct clk { · line 241
Quoted 8 lines
arch/arm/plat-omap/include/plat/clock.h +1
-0unsigned int rate_tolerance;@@ -230,6 +236,7 @@ struct clk {const struct clkops *ops;const char *name;struct clk *parent; +const char *parent_name;struct list_head children;struct list_head sibling;/* node for
children */
Quoted 21 lines
Quoted 21 lines
Quoted 11 lines
arch/arm/plat-omap/include/plat/clock.h extern void clk_init_cpufreq_table(struct
Quoted 11 lines
arch/arm/plat-omap/include/plat/clock.h +1
-1unsigned long rate;@@ -245,7 +252,7 @@ struct clk {#ifdef CONFIG_ARCH_OMAP2PLUS void __iomem *clksel_reg;u32 clksel_mask; -const struct clksel *clksel; +struct clksel *clksel;struct dpll_data *dpll_data;const char *clkdm_name;struct clockdomain *clkdm;@@ -292,7 +299,7 @@ extern void clk_init_cpufreq_table(struct
cpufreq_frequency_table**table);Quoted 1 line
arch/arm/plat-omap/include/plat/clock.h extern void clk_init_cpufreq_table(struct · line 299
Quoted 1 line
arch/arm/plat-omap/include/plat/clock.h +0
-0extern void clk_exit_cpufreq_table(struct cpufreq_frequency_table**table);
Quoted 7 lines
Quoted 7 lines
arch/arm/plat-omap/include/plat/clock.h +1
-1#endif extern struct clk *omap_clk_get_by_name (const char *name); - +extern void omap_init_clk_pts (void );extern const struct clkops clkops_null;extern struct clk dummy_ck;
Hi Paul,
Quoted 7 lines
-----Original Message-----
From: Rajendra Nayak [mailto:[email protected]]
Sent: Wednesday, January 19, 2011 7:44 PM
To: [email protected]
Cc: [email protected]; [email protected]; Rajendra Nayak
Subject: [RFC 0/3] Use clknames to reference parent/bypass/ref clks
Quoted 5 lines
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.
Did you get a chance to look at this RFC series?
I was waiting to hear from you before I repost
based on Felipe and Kevin's comments on the
patches.
Regards,
Rajendra
Quoted 7 lines
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.
Quoted 5 lines
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()
Quoted 1 line
[ 0.000000] clock: Could not find fieldval 0 for clock dpll2_fck
parent core_ck
Quoted 2 lines
[ 0.000000] Modules linked in: [ 0.000000] [<c006208c>] (unwind_backtrace+0x0/0xe4) from
[<c0092bfc>] (warn_slowpath_common+0x4c/0x64)
Quoted 1 line
[ 0.000000] [<c0092bfc>] (warn_slowpath_common+0x4c/0x64) from
[<c0092c94>]
Quoted 2 lines
(
warn_slowpath_fmt+0x2c/0x3c)[ 0.000000] [<c0092c94>] (warn_slowpath_fmt+0x2c/0x3c) from
[<c0073dc4>] (omap2_clksel_recalc+0xd4/0xe4)
Quoted 1 line
[ 0.000000] [<c0073dc4>] (omap2_clksel_recalc+0xd4/0xe4) from
[<c0077e1c>] (propagate_rate+0x24/0x50)
Quoted 1 line
[ 0.000000] [<c0077e1c>] (propagate_rate+0x24/0x50) from [<c0077e28>]
(propagate_rate+0x30/0x50)
Quoted 10 lines
[ 0.000000] ---[ end trace 1b75b31a2719ed1d ]---Rajendra Nayak (3):
OMAP: clocks: Use clk names instead of clk pointers
OMAP3: PM: FixCLK_SRCmask for IVA2 and MPU on 3430ES2
OMAP4: clocks: Remove unused clksel definitionsarch/arm/mach-omap2/clock2420_data.c | 86 +++++++------- arch/arm/mach-omap2/clock2430_data.c | 88 ++++++++-------- arch/arm/mach-omap2/clock3xxx_data.c | 183
+++++++++++++++++--------------
Quoted 5 lines
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(-)