X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=drivers%2Fwatchdog%2Fat91sam9_wdt.c;h=80dad07d84eed751905341cf6a2833b215b288c8;hb=b9589ec1a3cd789d09ad0594db82f4140756cf2e;hp=25afae748d611cdb47123899ed2d693b1de279ad;hpb=fd4e49c18901a50b1648235f26da1e8caa0f8764;p=u-boot diff --git a/drivers/watchdog/at91sam9_wdt.c b/drivers/watchdog/at91sam9_wdt.c index 25afae748d..80dad07d84 100644 --- a/drivers/watchdog/at91sam9_wdt.c +++ b/drivers/watchdog/at91sam9_wdt.c @@ -21,7 +21,7 @@ #include #include #include -#include +#include #include /* @@ -42,7 +42,7 @@ static int at91_wdt_settimeout(unsigned int timeout) { unsigned int reg; - at91_wdt_t *wd = (at91_wdt_t *) AT91_WDT_BASE; + at91_wdt_t *wd = (at91_wdt_t *) ATMEL_BASE_WDT; /* Check if disabled */ if (readl(&wd->mr) & AT91_WDT_MR_WDDIS) { @@ -69,7 +69,7 @@ static int at91_wdt_settimeout(unsigned int timeout) void hw_watchdog_reset(void) { - at91_wdt_t *wd = (at91_wdt_t *) AT91_WDT_BASE; + at91_wdt_t *wd = (at91_wdt_t *) ATMEL_BASE_WDT; writel(AT91_WDT_CR_WDRSTT | AT91_WDT_CR_KEY, &wd->cr); }