[PATCH] mx51: Add a dummy clock to watchdog

Fabio Estevam fabioestevam at yahoo.com
Mon Nov 15 14:59:06 EST 2010


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

Create a dummy clock structure and register the watchdog clock. 

Signed-off-by: Fabio Estevam <fabio.estevam at freescale.com>
---
 arch/arm/mach-mx5/clock-mx51.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-mx5/clock-mx51.c b/arch/arm/mach-mx5/clock-mx51.c
index 8ac36d8..7c8f9d4 100644
--- a/arch/arm/mach-mx5/clock-mx51.c
+++ b/arch/arm/mach-mx5/clock-mx51.c
@@ -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)
-- 
1.6.0.4



      



More information about the linux-arm-kernel mailing list