Commit ab35dc13 authored by Gabriel FERNANDEZ's avatar Gabriel FERNANDEZ Committed by Mike Turquette
Browse files

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: default avatarPankaj Dev <pankaj.dev@st.com>
Signed-off-by: default avatarMike Turquette <mturquette@linaro.org>
parent ec8d27b4
...@@ -570,6 +570,17 @@ static struct clkgen_mux_data clkgen_mux_c_vcc_sd_416 = { ...@@ -570,6 +570,17 @@ static struct clkgen_mux_data clkgen_mux_c_vcc_sd_416 = {
.lock = &clkgenf_lock, .lock = &clkgenf_lock,
}; };
static struct clkgen_mux_data stih415_a9_mux_data = {
.offset = 0,
.shift = 1,
.width = 2,
};
static struct clkgen_mux_data stih416_a9_mux_data = {
.offset = 0,
.shift = 0,
.width = 2,
};
static struct of_device_id mux_of_match[] = { static struct of_device_id mux_of_match[] = {
{ {
.compatible = "st,stih416-clkgenc-vcc-hd", .compatible = "st,stih416-clkgenc-vcc-hd",
...@@ -591,6 +602,14 @@ static struct of_device_id mux_of_match[] = { ...@@ -591,6 +602,14 @@ static struct of_device_id mux_of_match[] = {
.compatible = "st,stih416-clkgenf-vcc-sd", .compatible = "st,stih416-clkgenf-vcc-sd",
.data = &clkgen_mux_c_vcc_sd_416, .data = &clkgen_mux_c_vcc_sd_416,
}, },
{
.compatible = "st,stih415-clkgen-a9-mux",
.data = &stih415_a9_mux_data,
},
{
.compatible = "st,stih416-clkgen-a9-mux",
.data = &stih416_a9_mux_data,
},
{} {}
}; };
......
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