Commit 11516e3e authored by Paul Walmsley's avatar Paul Walmsley Committed by Tony Lindgren

3430 clock: 3430 clock: combine div2_rates

Several 3430 clocks have separate, identical clksel_rate structures
that pass through the full parent rate, or divide it by 2 - combine
these structures.
Signed-off-by: default avatarPaul Walmsley <paul@pwsan.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 36c1b2bd
...@@ -151,14 +151,14 @@ static struct clk osc_sys_ck = { ...@@ -151,14 +151,14 @@ static struct clk osc_sys_ck = {
.recalc = &omap2_clksel_recalc, .recalc = &omap2_clksel_recalc,
}; };
static const struct clksel_rate sys_osc_rates[] = { static const struct clksel_rate div2_rates[] = {
{ .div = 1, .val = 1, .flags = RATE_IN_343X | DEFAULT_RATE }, { .div = 1, .val = 1, .flags = RATE_IN_343X | DEFAULT_RATE },
{ .div = 2, .val = 2, .flags = RATE_IN_343X }, { .div = 2, .val = 2, .flags = RATE_IN_343X },
{ .div = 0 } { .div = 0 }
}; };
static const struct clksel sys_clksel[] = { static const struct clksel sys_clksel[] = {
{ .parent = &osc_sys_ck, .rates = sys_osc_rates }, { .parent = &osc_sys_ck, .rates = div2_rates },
{ .parent = NULL } { .parent = NULL }
}; };
...@@ -307,12 +307,6 @@ static const struct clksel_rate div16_dpll_rates[] = { ...@@ -307,12 +307,6 @@ static const struct clksel_rate div16_dpll_rates[] = {
{ .div = 0 } { .div = 0 }
}; };
static const struct clksel_rate div2_rates[] = {
{ .div = 1, .val = 1, .flags = RATE_IN_343X | DEFAULT_RATE },
{ .div = 2, .val = 2, .flags = RATE_IN_343X },
{ .div = 0 },
};
static const struct clksel div2_dpll3m2_clksel[] = { static const struct clksel div2_dpll3m2_clksel[] = {
{ .parent = &dpll3_ck, .rates = div2_rates }, { .parent = &dpll3_ck, .rates = div2_rates },
{ .parent = NULL } { .parent = NULL }
...@@ -1362,14 +1356,8 @@ static struct clk ssi_ick = { ...@@ -1362,14 +1356,8 @@ static struct clk ssi_ick = {
/* REVISIT: Technically the TRM claims that this is CORE_CLK based, /* REVISIT: Technically the TRM claims that this is CORE_CLK based,
* but l4_ick makes more sense to me */ * but l4_ick makes more sense to me */
static const struct clksel_rate usb_l4_l4_rates[] = {
{ .div = 1, .val = 1, .flags = RATE_IN_343X | DEFAULT_RATE },
{ .div = 2, .val = 2, .flags = RATE_IN_343X },
{ .div = 0 }
};
static const struct clksel usb_l4_clksel[] = { static const struct clksel usb_l4_clksel[] = {
{ .parent = &l4_ick, .rates = usb_l4_l4_rates }, { .parent = &l4_ick, .rates = div2_rates },
{ .parent = NULL }, { .parent = NULL },
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment