intel: Fix watchdog driver structure

Signed-off-by: Hadi Asyrafi <muhammad.hadi.asyrafi.abdul.halim@intel.com>
Change-Id: I0ffccca7ea83bff35c9f149d7054cd610a59ec01
This commit is contained in:
Hadi Asyrafi 2019-06-17 12:02:18 +08:00
parent 2a16502339
commit 19e3644528
2 changed files with 2 additions and 8 deletions

View File

@ -28,10 +28,10 @@ void watchdog_info(void)
void watchdog_status(void)
{
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));
} 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)
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);
}

View File

@ -32,7 +32,6 @@
void watchdog_init(int watchdog_clk);
void watchdog_enable(void);
void watchdog_info(void);
void watchdog_status(void);
void watchdog_sw_rst(void);