diff options
| author | Gabriel FERNANDEZ <gabriel.fernandez@st.com> | 2014-07-15 11:20:29 -0400 |
|---|---|---|
| committer | Mike Turquette <mturquette@linaro.org> | 2014-07-29 01:37:04 -0400 |
| commit | aaa65d7777b70529c5caef07299861824836859d (patch) | |
| tree | c4c4fb11df5c5a481dd658516ec9cad9952475ea | |
| parent | 58de9b8e7fd463ad89dcc2c38f4c95f932d6797d (diff) | |
clk: st: STiH407: Support for clockgenA9
The patch added support for DT registration of ClockGenA9
It includes c32 type PLL.
Signed-off-by: Gabriel Fernandez <gabriel.fernandez@linaro.org>
Signed-off-by: Olivier Bideau <olivier.bideau@st.com>
Acked-by: Peter Griffin <peter.griffin@linaro.org>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
| -rw-r--r-- | drivers/clk/st/clkgen-pll.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/clk/st/clkgen-pll.c b/drivers/clk/st/clkgen-pll.c index 5327a7474c53..29769d79e306 100644 --- a/drivers/clk/st/clkgen-pll.c +++ b/drivers/clk/st/clkgen-pll.c | |||
| @@ -216,6 +216,18 @@ static const struct clkgen_pll_data st_pll3200c32_407_c0_1 = { | |||
| 216 | .ops = &stm_pll3200c32_ops, | 216 | .ops = &stm_pll3200c32_ops, |
| 217 | }; | 217 | }; |
| 218 | 218 | ||
| 219 | static const struct clkgen_pll_data st_pll3200c32_407_a9 = { | ||
| 220 | /* 407 A9 */ | ||
| 221 | .pdn_status = CLKGEN_FIELD(0x1a8, 0x1, 0), | ||
| 222 | .locked_status = CLKGEN_FIELD(0x87c, 0x1, 0), | ||
| 223 | .ndiv = CLKGEN_FIELD(0x1b0, C32_NDIV_MASK, 0), | ||
| 224 | .idf = CLKGEN_FIELD(0x1a8, C32_IDF_MASK, 25), | ||
| 225 | .num_odfs = 1, | ||
| 226 | .odf = { CLKGEN_FIELD(0x1b0, C32_ODF_MASK, 8) }, | ||
| 227 | .odf_gate = { CLKGEN_FIELD(0x1ac, 0x1, 28) }, | ||
| 228 | .ops = &stm_pll3200c32_ops, | ||
| 229 | }; | ||
| 230 | |||
| 219 | /** | 231 | /** |
| 220 | * DOC: Clock Generated by PLL, rate set and enabled by bootloader | 232 | * DOC: Clock Generated by PLL, rate set and enabled by bootloader |
| 221 | * | 233 | * |
| @@ -618,6 +630,10 @@ static struct of_device_id c32_pll_of_match[] = { | |||
| 618 | .compatible = "st,stih407-plls-c32-c0_1", | 630 | .compatible = "st,stih407-plls-c32-c0_1", |
| 619 | .data = &st_pll3200c32_407_c0_1, | 631 | .data = &st_pll3200c32_407_c0_1, |
| 620 | }, | 632 | }, |
| 633 | { | ||
| 634 | .compatible = "st,stih407-plls-c32-a9", | ||
| 635 | .data = &st_pll3200c32_407_a9, | ||
| 636 | }, | ||
| 621 | {} | 637 | {} |
| 622 | }; | 638 | }; |
| 623 | 639 | ||
