Searched refs:wdog_base (Results 1 – 3 of 3) sorted by relevance
/openbmc/qemu/tests/qtest/ |
H A D | cmsdk-apb-watchdog-test.c | 43 hwaddr wdog_base; member 61 .wdog_base = WDOG_BASE, 66 .wdog_base = WDOG_BASE_MPS2, 84 hwaddr wdog_base = args->wdog_base; in test_watchdog() local 89 g_assert_cmpuint(readl(wdog_base + WDOGRIS), ==, 0); in test_watchdog() 91 writel(wdog_base + WDOGCONTROL, 1); in test_watchdog() 92 writel(wdog_base + WDOGLOAD, 1000); in test_watchdog() 96 g_assert_cmpuint(readl(wdog_base + WDOGRIS), ==, 0); in test_watchdog() 97 g_assert_cmpuint(readl(wdog_base + WDOGVALUE), ==, 500); in test_watchdog() 101 g_assert_cmpuint(readl(wdog_base + WDOGRIS), ==, 1); in test_watchdog() [all …]
|
/openbmc/linux/arch/arm/mach-imx/ |
H A D | system.c | 26 static void __iomem *wdog_base; variable 35 if (!wdog_base) in mxc_restart() 42 imx_writew(wcr_enable, wdog_base); in mxc_restart() 50 imx_writew(wcr_enable, wdog_base); in mxc_restart() 51 imx_writew(wcr_enable, wdog_base); in mxc_restart() 68 wdog_base = base; in mxc_arch_reset_init()
|
/openbmc/u-boot/arch/arm/mach-imx/mx7ulp/ |
H A D | soc.c | 68 static void disable_wdog(u32 wdog_base) in disable_wdog() argument 70 writel(UNLOCK_WORD0, (wdog_base + 0x04)); in disable_wdog() 71 writel(UNLOCK_WORD1, (wdog_base + 0x04)); in disable_wdog() 72 writel(0x0, (wdog_base + 0x0C)); /* Set WIN to 0 */ in disable_wdog() 73 writel(0x400, (wdog_base + 0x08)); /* Set timeout to default 0x400 */ in disable_wdog() 74 writel(0x120, (wdog_base + 0x00)); /* Disable it and set update */ in disable_wdog() 76 writel(REFRESH_WORD0, (wdog_base + 0x04)); /* Refresh the CNT */ in disable_wdog() 77 writel(REFRESH_WORD1, (wdog_base + 0x04)); in disable_wdog()
|