Commit 19e36445 authored by Hadi Asyrafi's avatar Hadi Asyrafi
Browse files

intel: Fix watchdog driver structure


Signed-off-by: default avatarHadi Asyrafi <muhammad.hadi.asyrafi.abdul.halim@intel.com>
Change-Id: I0ffccca7ea83bff35c9f149d7054cd610a59ec01
parent 2a165023
...@@ -28,10 +28,10 @@ void watchdog_info(void) ...@@ -28,10 +28,10 @@ void watchdog_info(void)
void watchdog_status(void) void watchdog_status(void)
{ {
if (mmio_read_32(WDT_CR) & 1) { if (mmio_read_32(WDT_CR) & 1) {
INFO("Watchdog Timer in currently enabled\n"); INFO("Watchdog Timer is currently enabled\n");
INFO("Current Counter : 0x%x\r\n", mmio_read_32(WDT_CCVR)); INFO("Current Counter : 0x%x\r\n", mmio_read_32(WDT_CCVR));
} else { } else {
INFO("Watchdog Timer in currently disabled\n"); INFO("Watchdog Timer is currently disabled\n");
} }
} }
...@@ -49,10 +49,5 @@ void watchdog_init(int watchdog_clk) ...@@ -49,10 +49,5 @@ void watchdog_init(int watchdog_clk)
mmio_write_32(WDT_TORR, (cycles_i << 4) | cycles_i); mmio_write_32(WDT_TORR, (cycles_i << 4) | cycles_i);
watchdog_enable();
}
void watchdog_enable(void)
{
mmio_write_32(WDT_CR, WDT_CR_RMOD|WDT_CR_EN); mmio_write_32(WDT_CR, WDT_CR_RMOD|WDT_CR_EN);
} }
...@@ -32,7 +32,6 @@ ...@@ -32,7 +32,6 @@
void watchdog_init(int watchdog_clk); void watchdog_init(int watchdog_clk);
void watchdog_enable(void);
void watchdog_info(void); void watchdog_info(void);
void watchdog_status(void); void watchdog_status(void);
void watchdog_sw_rst(void); void watchdog_sw_rst(void);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment