|
@@ -41,7 +41,7 @@ struct clockgen_pll_div {
|
|
};
|
|
};
|
|
|
|
|
|
struct clockgen_pll {
|
|
struct clockgen_pll {
|
|
- struct clockgen_pll_div div[4];
|
|
|
|
|
|
+ struct clockgen_pll_div div[8];
|
|
};
|
|
};
|
|
|
|
|
|
#define CLKSEL_VALID 1
|
|
#define CLKSEL_VALID 1
|
|
@@ -1127,6 +1127,13 @@ static void __init create_one_pll(struct clockgen *cg, int idx)
|
|
struct clk *clk;
|
|
struct clk *clk;
|
|
int ret;
|
|
int ret;
|
|
|
|
|
|
|
|
+ /*
|
|
|
|
+ * For platform PLL, there are 8 divider clocks.
|
|
|
|
+ * For core PLL, there are 4 divider clocks at most.
|
|
|
|
+ */
|
|
|
|
+ if (idx != PLATFORM_PLL && i >= 4)
|
|
|
|
+ break;
|
|
|
|
+
|
|
snprintf(pll->div[i].name, sizeof(pll->div[i].name),
|
|
snprintf(pll->div[i].name, sizeof(pll->div[i].name),
|
|
"cg-pll%d-div%d", idx, i + 1);
|
|
"cg-pll%d-div%d", idx, i + 1);
|
|
|
|
|