Searched refs:gms0 (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/drivers/watchdog/
H A Dm54xx_wdt.c46 unsigned int gms0; wdt_enable() local
49 gms0 = __raw_readl(MCF_GPT_GMS0); wdt_enable()
50 if (gms0 & MCF_GPT_GMS_TMS_GPIO) wdt_enable()
51 gms0 &= (MCF_GPT_GMS_TMS_GPIO | MCF_GPT_GMS_GPIO_MASK wdt_enable()
54 gms0 = MCF_GPT_GMS_TMS_GPIO | MCF_GPT_GMS_OD; wdt_enable()
55 __raw_writel(gms0, MCF_GPT_GMS0); wdt_enable()
58 gms0 |= MCF_GPT_GMS_OCPW(0xA5) | MCF_GPT_GMS_WDEN | MCF_GPT_GMS_CE; wdt_enable()
59 __raw_writel(gms0, MCF_GPT_GMS0); wdt_enable()
64 unsigned int gms0; wdt_disable() local
67 gms0 = __raw_readl(MCF_GPT_GMS0); wdt_disable()
68 gms0 &= ~(MCF_GPT_GMS_WDEN | MCF_GPT_GMS_CE); wdt_disable()
69 __raw_writel(gms0, MCF_GPT_GMS0); wdt_disable()
74 unsigned int gms0; wdt_keepalive() local
76 gms0 = __raw_readl(MCF_GPT_GMS0); wdt_keepalive()
77 gms0 |= MCF_GPT_GMS_OCPW(0xA5); wdt_keepalive()
78 __raw_writel(gms0, MCF_GPT_GMS0); wdt_keepalive()

Completed in 81 milliseconds