[18/21] ARM: mvebu: Add a fixed 0Hz clock to represent NAND clock

Submitted by Ezequiel Garcia on Sept. 19, 2013, 4:01 p.m.

Details

Message ID 1379606505-2529-19-git-send-email-ezequiel.garcia@free-electrons.com
State Superseded
Headers show

Commit Message

Ezequiel Garcia Sept. 19, 2013, 4:01 p.m.
The NAND controller in Armada 370 and Armada XP SoC has an input clock
that's either 125 MHz or 200 MHz. As a temporary representation, this
commit adds a 0Hz fixed-clock compatible DT node.

Not-Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
---
Of course, this is not intended for inclusion and I'm adding it to the
series only to allow the driver's probe() to get the clock.

This clock shouldn't be used anywhere, which means we must set
"marvell,keep-config" parameter in the NAND device tree node.

 arch/arm/boot/dts/armada-370-xp.dtsi | 9 +++++++++
 1 file changed, 9 insertions(+)

Patch hide | download patch | download mbox

diff --git a/arch/arm/boot/dts/armada-370-xp.dtsi b/arch/arm/boot/dts/armada-370-xp.dtsi
index 90b1176..2e00da4 100644
--- a/arch/arm/boot/dts/armada-370-xp.dtsi
+++ b/arch/arm/boot/dts/armada-370-xp.dtsi
@@ -37,6 +37,15 @@ 
 		};
 	};
 
+	clocks {
+		/* NAND reference clock */
+		nandclk: nd_clk {
+			compatible = "fixed-clock";
+			#clock-cells = <0>;
+			clock-frequency = <0>;
+		};
+	};
+
 	soc {
 		#address-cells = <1>;
 		#size-cells = <1>;