Home
last modified time | relevance | path

Searched refs:WDT_RELOAD_VALUE (Results 1 – 2 of 2) sorted by relevance

/openbmc/qemu/hw/watchdog/
H A Dwdt_aspeed.c24 #define WDT_RELOAD_VALUE (0x04 / 4) macro
75 case WDT_RELOAD_VALUE: in aspeed_wdt_read()
76 return s->regs[WDT_RELOAD_VALUE]; in aspeed_wdt_read()
112 reload = muldiv64(s->regs[WDT_RELOAD_VALUE], NANOSECONDS_PER_SECOND, in aspeed_wdt_reload()
115 reload = s->regs[WDT_RELOAD_VALUE] * 1000ULL; in aspeed_wdt_reload()
125 uint64_t reload = s->regs[WDT_RELOAD_VALUE] * 1000ULL; in aspeed_wdt_reload_1mhz()
164 case WDT_RELOAD_VALUE: in aspeed_wdt_write()
165 s->regs[WDT_RELOAD_VALUE] = data; in aspeed_wdt_write()
169 s->regs[WDT_STATUS] = s->regs[WDT_RELOAD_VALUE]; in aspeed_wdt_write()
243 s->regs[WDT_RELOAD_VALUE] = awc->default_reload_value; in aspeed_wdt_reset()
/openbmc/linux/drivers/watchdog/
H A Daspeed_wdt.c65 #define WDT_RELOAD_VALUE 0x04 macro
134 writel(count, wdt->base + WDT_RELOAD_VALUE); in aspeed_wdt_enable()
177 writel(actual * WDT_RATE_1MHZ, wdt->base + WDT_RELOAD_VALUE); in aspeed_wdt_set_timeout()