Home
last modified time | relevance | path

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

/openbmc/u-boot/arch/arm/mach-davinci/
H A Dreset.c16 struct davinci_timer *const wdttimer = in reset_cpu() local
18 writel(0x08, &wdttimer->tgcr); in reset_cpu()
19 writel(readl(&wdttimer->tgcr) | 0x03, &wdttimer->tgcr); in reset_cpu()
20 writel(0, &wdttimer->tim12); in reset_cpu()
21 writel(0, &wdttimer->tim34); in reset_cpu()
22 writel(0, &wdttimer->prd12); in reset_cpu()
23 writel(0, &wdttimer->prd34); in reset_cpu()
24 writel(readl(&wdttimer->tcr) | 0x40, &wdttimer->tcr); in reset_cpu()
25 writel(readl(&wdttimer->wdtcr) | 0x4000, &wdttimer->wdtcr); in reset_cpu()
26 writel(0xa5c64000, &wdttimer->wdtcr); in reset_cpu()
[all …]
H A Dtimer.c99 static struct davinci_timer * const wdttimer = variable
107 writel(0x0, &wdttimer->tcr); in davinci_hw_watchdog_enable()
108 writel(0x0, &wdttimer->tgcr); in davinci_hw_watchdog_enable()
111 writel(CONFIG_SYS_WDT_PERIOD_LOW, &wdttimer->prd12); in davinci_hw_watchdog_enable()
113 writel(2 << 22, &wdttimer->tcr); in davinci_hw_watchdog_enable()
114 writel(0x0, &wdttimer->tim12); in davinci_hw_watchdog_enable()
115 writel(0x0, &wdttimer->tim34); in davinci_hw_watchdog_enable()
117 writel(0xa5c64000, &wdttimer->wdtcr); in davinci_hw_watchdog_enable()
119 writel(0xda7e4000, &wdttimer->wdtcr); in davinci_hw_watchdog_enable()
124 writel(0xa5c64000, &wdttimer->wdtcr); in davinci_hw_watchdog_reset()
[all …]