[PATCH v2] watchdog: imx: use clk_get to acquire the watchdogclock

Fabio Estevam fabio.estevam at freescale.com
Tue Dec 7 12:16:15 EST 2010


Hi Sascha,

On 12/7/2010 2:49 PM, Sascha Hauer wrote:
...
> I should have seen this happen. This breaks i.MX1 reset which uses
> imx-wdt.0.

I think it doesn´t break current mx1 reset mechanism. Please see the 
code below (arcm/arm/plat-mxc/system.c):

	if (cpu_is_mx1()) {
		wcr_enable = (1 << 0);
	} else {
		struct clk *clk;

		clk = clk_get_sys("imx2-wdt.0", NULL);
		if (!IS_ERR(clk))
			clk_enable(clk);
		wcr_enable = (1 << 2);
	}

For mx1 the clk_get_sys function is not called.

Regards,

Fabio Estevam





More information about the linux-arm-kernel mailing list