Home
last modified time | relevance | path

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

/openbmc/qemu/tests/qtest/
H A Dsifive-e-aon-watchdog-test.c37 #define WDOG_BASE (0x10000000) macro
51 qtest_writel(qts, WDOG_BASE + WDOGKEY, SIFIVE_E_AON_WDOGKEY); in test_init()
52 qtest_writel(qts, WDOG_BASE + WDOGCOUNT, 0); in test_init()
54 qtest_writel(qts, WDOG_BASE + WDOGKEY, SIFIVE_E_AON_WDOGKEY); in test_init()
55 qtest_writel(qts, WDOG_BASE + WDOGCFG, 0); in test_init()
57 qtest_writel(qts, WDOG_BASE + WDOGKEY, SIFIVE_E_AON_WDOGKEY); in test_init()
58 qtest_writel(qts, WDOG_BASE + WDOGCMP0, 0xBEEF); in test_init()
68 tmp = qtest_readl(qts, WDOG_BASE + WDOGCOUNT); in test_wdogcount()
69 qtest_writel(qts, WDOG_BASE + WDOGCOUNT, 0xBEEF); in test_wdogcount()
70 g_assert(qtest_readl(qts, WDOG_BASE + WDOGCOUNT) == tmp); in test_wdogcount()
[all …]
H A Dcmsdk-apb-watchdog-test.c22 #define WDOG_BASE 0x40000000 macro
61 .wdog_base = WDOG_BASE,
135 g_assert_cmpuint(readl(WDOG_BASE + WDOGRIS), ==, 0); in test_clock_change()
137 writel(WDOG_BASE + WDOGCONTROL, 1); in test_clock_change()
138 writel(WDOG_BASE + WDOGLOAD, 1000); in test_clock_change()
142 g_assert_cmpuint(readl(WDOG_BASE + WDOGRIS), ==, 0); in test_clock_change()
143 g_assert_cmpuint(readl(WDOG_BASE + WDOGVALUE), ==, 500); in test_clock_change()
153 g_assert_cmpuint(readl(WDOG_BASE + WDOGRIS), ==, 1); in test_clock_change()
155 g_assert_cmpuint(readl(WDOG_BASE + WDOGVALUE), ==, 0); in test_clock_change()
159 g_assert_cmpuint(readl(WDOG_BASE + WDOGVALUE), ==, 1000); in test_clock_change()
[all …]