s5p: watchdog: use accessor function
authorMinkyu Kang <mk7.kang@samsung.com>
Thu, 19 Aug 2010 06:41:20 +0000 (15:41 +0900)
committerMinkyu Kang <mk7.kang@samsung.com>
Thu, 19 Aug 2010 06:41:20 +0000 (15:41 +0900)
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
arch/arm/cpu/armv7/s5p-common/usb_downloader.c
arch/arm/include/asm/arch-s5pc1xx/cpu.h
arch/arm/include/asm/arch-s5pc2xx/cpu.h

index e747541..5392e86 100644 (file)
@@ -49,12 +49,7 @@ extern void s5pc_fimd_window_off(unsigned int win_id);
 
 void s5pc1xx_wdt_reset(void)
 {
-       unsigned long wdt_base;
-
-       if (cpu_is_s5pc110())
-               wdt_base = S5PC110_WATCHDOG_BASE;
-       else
-               wdt_base = S5PC100_WATCHDOG_BASE;
+       unsigned long wdt_base = samsung_get_base_watchdog();
 
        /*
         * WTCON
index 27d57a4..87c5059 100644 (file)
@@ -102,6 +102,7 @@ SAMSUNG_BASE(timer, PWMTIMER_BASE)
 SAMSUNG_BASE(uart, UART_BASE)
 SAMSUNG_BASE(usb_phy, USBPHY_BASE)
 SAMSUNG_BASE(usb_otg, USBOTG_BASE)
+SAMSUNG_BASE(watchdog, WATCHDOG_BASE)
 
 extern unsigned int s5p_cpu_rev;
 
index 57f2e47..47554bb 100644 (file)
@@ -77,6 +77,7 @@ SAMSUNG_BASE(timer, PWMTIMER_BASE)
 SAMSUNG_BASE(uart, UART_BASE)
 SAMSUNG_BASE(usb_phy, USBPHY_BASE)
 SAMSUNG_BASE(usb_otg, USBOTG_BASE)
+SAMSUNG_BASE(watchdog, WATCHDOG_BASE)
 
 extern unsigned int s5p_cpu_rev;