watchdog: ulp_wdog: guard reset_cpu with condition check
There will be build error if CONFIG_SYSRESET is enabled, so guard the reset_cpu with condition check here Signed-off-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Stefan Roese <sr@denx.de>
This commit is contained in:
parent
33866e9409
commit
fee8cf214a
1 changed files with 2 additions and 0 deletions
|
@ -122,6 +122,7 @@ void hw_watchdog_init(void)
|
||||||
ulp_watchdog_init(wdog, CONFIG_WATCHDOG_TIMEOUT_MSECS);
|
ulp_watchdog_init(wdog, CONFIG_WATCHDOG_TIMEOUT_MSECS);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if !CONFIG_IS_ENABLED(SYSRESET)
|
||||||
void reset_cpu(void)
|
void reset_cpu(void)
|
||||||
{
|
{
|
||||||
struct wdog_regs *wdog = (struct wdog_regs *)WDOG_BASE_ADDR;
|
struct wdog_regs *wdog = (struct wdog_regs *)WDOG_BASE_ADDR;
|
||||||
|
@ -159,6 +160,7 @@ void reset_cpu(void)
|
||||||
|
|
||||||
while (1);
|
while (1);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static int ulp_wdt_start(struct udevice *dev, u64 timeout_ms, ulong flags)
|
static int ulp_wdt_start(struct udevice *dev, u64 timeout_ms, ulong flags)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue