mx27: 16-bit wide watchdog registers

Make the watchdog registers 16-bit wide, as they are according to TRM.

Signed-off-by: Leonid Iziumtsev <leonid.iziumtsev@se.atlascopco.com>
Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
This commit is contained in:
Leonid Iziumtsev 2016-03-20 14:10:55 +01:00 committed by Stefano Babic
parent 8fb9eea565
commit f7440928e6
2 changed files with 7 additions and 7 deletions

View File

@ -27,14 +27,14 @@ void reset_cpu(ulong ignored)
{ {
struct wdog_regs *regs = (struct wdog_regs *)IMX_WDT_BASE; struct wdog_regs *regs = (struct wdog_regs *)IMX_WDT_BASE;
/* Disable watchdog and set Time-Out field to 0 */ /* Disable watchdog and set Time-Out field to 0 */
writel(0x00000000, &regs->wcr); writew(0x0000, &regs->wcr);
/* Write Service Sequence */ /* Write Service Sequence */
writel(0x00005555, &regs->wsr); writew(0x5555, &regs->wsr);
writel(0x0000AAAA, &regs->wsr); writew(0xAAAA, &regs->wsr);
/* Enable watchdog */ /* Enable watchdog */
writel(WCR_WDE, &regs->wcr); writew(WCR_WDE, &regs->wcr);
while (1); while (1);
/*NOTREACHED*/ /*NOTREACHED*/

View File

@ -106,9 +106,9 @@ struct esdramc_regs {
/* Watchdog Registers*/ /* Watchdog Registers*/
struct wdog_regs { struct wdog_regs {
u32 wcr; u16 wcr;
u32 wsr; u16 wsr;
u32 wstr; u16 wstr;
}; };
/* PLL registers */ /* PLL registers */