diff options
author | Max Krummenacher <max.krummenacher@toradex.com> | 2012-11-27 12:59:19 +0100 |
---|---|---|
committer | Max Krummenacher <max.krummenacher@toradex.com> | 2012-11-28 12:59:29 +0100 |
commit | a651939a1503b7be18f27d1085f6dada29e605f6 (patch) | |
tree | f54234bea0ac5397021a4bce3c4e7224ad695903 | |
parent | 9680bdaeeb0af9d41f6b96ce45dc72b268a6aafa (diff) |
ap20.c: - fix use of interleaved use of struct pll vs. struct pll_simple here this use did not show any adverse effects
-rw-r--r-- | arch/arm/cpu/armv7/tegra-common/ap20.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/arch/arm/cpu/armv7/tegra-common/ap20.c b/arch/arm/cpu/armv7/tegra-common/ap20.c index 65a9dd3b3e8..15c72a038a0 100644 --- a/arch/arm/cpu/armv7/tegra-common/ap20.c +++ b/arch/arm/cpu/armv7/tegra-common/ap20.c @@ -171,7 +171,7 @@ static void adjust_pllp_out_freqs(void) writel(reg, &pll->pll_out_b); } -static int pllx_set_rate(struct clk_pll *pll , u32 divn, u32 divm, u32 divp, +static int pllx_set_rate(struct clk_pll_simple *pll , u32 divn, u32 divm, u32 divp, u32 cpcon) { u32 reg; @@ -198,13 +198,10 @@ static int pllx_set_rate(struct clk_pll *pll , u32 divn, u32 divm, u32 divp, return 0; } -/* U-Boot treats all errors as warnings, &clkrst->crc_pll[CLOCK_ID_XCPU] uses - a subscript out of range. The pragma disables the warning */ -#pragma GCC diagnostic warning "-Warray-bounds" void ap20_init_pllx(int slow) { struct clk_rst_ctlr *clkrst = (struct clk_rst_ctlr *)NV_PA_CLK_RST_BASE; - struct clk_pll *pll = &clkrst->crc_pll[CLOCK_ID_XCPU]; + struct clk_pll_simple *pll = &clkrst->crc_pll_simple[CLOCK_ID_XCPU - CLOCK_ID_FIRST_SIMPLE]; int chip_type; enum clock_osc_freq osc; struct clk_pll_table *sel; |