aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/clk
diff options
context:
space:
mode:
authorGabriel FERNANDEZ <gabriel.fernandez@st.com>2014-02-27 10:24:19 -0500
committerMike Turquette <mturquette@linaro.org>2014-03-25 18:59:23 -0400
commitab35dc139aed41f5e527910193f0d3c3d73a36fc (patch)
tree10cb5f59e578f394cc1f7e2dbada7aa04f41ae21 /drivers/clk
parentec8d27b41e3b513b15c4554d9bb02ba10e0861a4 (diff)
clk: st: Support for A9 MUX clocks
The patch supports the A9-mux clocks used by ClockGenA9 A9-mux clock : Multiplexer inside ClockGenA9. A9 clock can be driven by either PLL or External clock (with an optional divide-by-2). This is implemented as 3-parent clock : PLL, Ext-clk OR Ext-clk/2 Signed-off-by: Pankaj Dev <pankaj.dev@st.com> Signed-off-by: Mike Turquette <mturquette@linaro.org>
Diffstat (limited to 'drivers/clk')
-rw-r--r--drivers/clk/st/clkgen-mux.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/drivers/clk/st/clkgen-mux.c b/drivers/clk/st/clkgen-mux.c
index 7ccff620a2fe..a329906d1e81 100644
--- a/drivers/clk/st/clkgen-mux.c
+++ b/drivers/clk/st/clkgen-mux.c
@@ -570,6 +570,17 @@ static struct clkgen_mux_data clkgen_mux_c_vcc_sd_416 = {
570 .lock = &clkgenf_lock, 570 .lock = &clkgenf_lock,
571}; 571};
572 572
573static struct clkgen_mux_data stih415_a9_mux_data = {
574 .offset = 0,
575 .shift = 1,
576 .width = 2,
577};
578static struct clkgen_mux_data stih416_a9_mux_data = {
579 .offset = 0,
580 .shift = 0,
581 .width = 2,
582};
583
573static struct of_device_id mux_of_match[] = { 584static struct of_device_id mux_of_match[] = {
574 { 585 {
575 .compatible = "st,stih416-clkgenc-vcc-hd", 586 .compatible = "st,stih416-clkgenc-vcc-hd",
@@ -591,6 +602,14 @@ static struct of_device_id mux_of_match[] = {
591 .compatible = "st,stih416-clkgenf-vcc-sd", 602 .compatible = "st,stih416-clkgenf-vcc-sd",
592 .data = &clkgen_mux_c_vcc_sd_416, 603 .data = &clkgen_mux_c_vcc_sd_416,
593 }, 604 },
605 {
606 .compatible = "st,stih415-clkgen-a9-mux",
607 .data = &stih415_a9_mux_data,
608 },
609 {
610 .compatible = "st,stih416-clkgen-a9-mux",
611 .data = &stih416_a9_mux_data,
612 },
594 {} 613 {}
595}; 614};
596 615