X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-arm%2Farch-ixp4xx%2Fsystem.h;h=73589aad8dd60218f1c83e50743c155af33e453e;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=8a78b96464b637ba9af2e37487f06cad3cfbae0f;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/include/asm-arm/arch-ixp4xx/system.h b/include/asm-arm/arch-ixp4xx/system.h index 8a78b9646..73589aad8 100644 --- a/include/asm-arm/arch-ixp4xx/system.h +++ b/include/asm-arm/arch-ixp4xx/system.h @@ -31,13 +31,12 @@ static inline void arch_reset(char mode) /* set the "key" register to enable access to * "timer" and "enable" registers */ - *IXP4XX_OSWK = 0x482e; + *IXP4XX_OSWK = IXP4XX_WDT_KEY; - /* write 0 to the timer register for an immidiate reset */ + /* write 0 to the timer register for an immediate reset */ *IXP4XX_OSWT = 0; - /* disable watchdog interrupt, enable reset, enable count */ - *IXP4XX_OSWE = 0x3; + *IXP4XX_OSWE = IXP4XX_WDT_RESET_ENABLE | IXP4XX_WDT_COUNT_ENABLE; } }