Skip to contentSkip to conversation

mx51: Add a dummy clock to watchdog

PATCH New Fabio Estevam 1 participant 1 message Nov 15, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mx51: Add a dummy clock to watchdog

On MX51 there is no watchdog clock entry in the CCM block.

Create a dummy clock structure and register the watchdog clock.

---
 arch/arm/mach-mx5/clock-mx51.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
arch/arm/mach-mx5/clock-mx51.c +5 -0
index 8ac36d8..7c8f9d4 100644
@@ -819,6 +819,10 @@ static struct clk emi_slow_clk = {
 	.get_rate = clk_emi_slow_get_rate,
 };
 
+static struct clk dummy_clk = {
+	.id = 0,
+};
+
 #define DEFINE_CLOCK_CCGR(name, i, er, es, pfx, p, s)	\
 	static struct clk name = {			\
 		.id		= i,			\
@@ -1082,6 +1086,7 @@ static struct clk_lookup lookups[] = {
 	_REGISTER_CLOCK("sdhci-esdhc-imx.0", NULL, esdhc1_clk)
 	_REGISTER_CLOCK("sdhci-esdhc-imx.1", NULL, esdhc2_clk)
 	_REGISTER_CLOCK(NULL, "cpu_clk", cpu_clk)
+	_REGISTER_CLOCK("imx-wdt.0", NULL, dummy_clk)
 };
 
 static void clk_tree_init(void)
Signature · 1 line
1.6.0.4