mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-05-04 18:08:42 +00:00
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:
parent
2a16502339
commit
19e3644528
2 changed files with 2 additions and 8 deletions
|
@ -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)
|
||||||
|
|
||||||
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 @@
|
||||||
|
|
||||||
|
|
||||||
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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue