[PATCH 2/2] drivers: clk: st: authorize propagate rate change for clockgenD0

From: Gabriel FERNANDEZ
Date: Tue May 13 2014 - 07:59:51 EST


This patch allows the spread of change rate only for clockgenD0
clocks.

Signed-off-by: Gabriel Fernandez <gabriel.fernandez@xxxxxx>
---
arch/arm/boot/dts/stih407-clock.dtsi | 1 +
drivers/clk/st/clk-flexgen.c | 2 ++
2 files changed, 3 insertions(+)

diff --git a/arch/arm/boot/dts/stih407-clock.dtsi b/arch/arm/boot/dts/stih407-clock.dtsi
index 5f1c83c..7fad261 100644
--- a/arch/arm/boot/dts/stih407-clock.dtsi
+++ b/arch/arm/boot/dts/stih407-clock.dtsi
@@ -204,6 +204,7 @@
"CLK_PCM_1",
"CLK_PCM_2",
"CLK_SPDIFF";
+ set-rate-parent;
};
};

diff --git a/drivers/clk/st/clk-flexgen.c b/drivers/clk/st/clk-flexgen.c
index f3ed700..5629988 100644
--- a/drivers/clk/st/clk-flexgen.c
+++ b/drivers/clk/st/clk-flexgen.c
@@ -306,6 +306,8 @@ void __init st_of_flexgen_setup(struct device_node *np)
if (*clk_name == '\0')
continue;

+ flex_flags = of_clk_get_flags(np);
+
clk = clk_register_flexgen(clk_name, parents, num_parents,
reg, rlock, i, flex_flags);

--
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/