Home
last modified time | relevance | path

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

/openbmc/qemu/hw/watchdog/
H A Dwdt_aspeed.c34 #define WDT_RESET_WIDTH (0x18 / 4) macro
84 case WDT_RESET_WIDTH: in aspeed_wdt_read()
85 return s->regs[WDT_RESET_WIDTH]; in aspeed_wdt_read()
186 case WDT_RESET_WIDTH: in aspeed_wdt_write()
190 s->regs[WDT_RESET_WIDTH] &= ~awc->ext_pulse_width_mask; in aspeed_wdt_write()
191 s->regs[WDT_RESET_WIDTH] |= data & awc->ext_pulse_width_mask; in aspeed_wdt_write()
246 s->regs[WDT_RESET_WIDTH] = 0xFF; in aspeed_wdt_reset()
345 s->regs[WDT_RESET_WIDTH] |= WDT_RESET_WIDTH_ACTIVE_HIGH; in aspeed_2500_wdt_reset_pulse()
347 s->regs[WDT_RESET_WIDTH] &= ~WDT_RESET_WIDTH_ACTIVE_HIGH; in aspeed_2500_wdt_reset_pulse()
349 s->regs[WDT_RESET_WIDTH] |= WDT_RESET_WIDTH_PUSH_PULL; in aspeed_2500_wdt_reset_pulse()
[all …]
/openbmc/linux/drivers/watchdog/
H A Daspeed_wdt.c109 #define WDT_RESET_WIDTH 0x18 macro
409 u32 reg = readl(wdt->base + WDT_RESET_WIDTH); in aspeed_wdt_probe()
417 writel(reg, wdt->base + WDT_RESET_WIDTH); in aspeed_wdt_probe()
425 writel(reg, wdt->base + WDT_RESET_WIDTH); in aspeed_wdt_probe()
458 writel(duration - 1, wdt->base + WDT_RESET_WIDTH); in aspeed_wdt_probe()