Home
last modified time | relevance | path

Searched refs:wdog (Results 1 – 25 of 42) sorted by relevance

12

/external/u-boot/drivers/watchdog/
Dulp_wdog.c45 struct wdog_regs *wdog = (struct wdog_regs *)WDOG_BASE_ADDR; in hw_watchdog_set_timeout() local
47 writel(val, &wdog->toval); in hw_watchdog_set_timeout()
52 struct wdog_regs *wdog = (struct wdog_regs *)WDOG_BASE_ADDR; in hw_watchdog_reset() local
54 writel(REFRESH_WORD0, &wdog->cnt); in hw_watchdog_reset()
55 writel(REFRESH_WORD1, &wdog->cnt); in hw_watchdog_reset()
61 struct wdog_regs *wdog = (struct wdog_regs *)WDOG_BASE_ADDR; in hw_watchdog_init() local
63 writel(UNLOCK_WORD0, &wdog->cnt); in hw_watchdog_init()
64 writel(UNLOCK_WORD1, &wdog->cnt); in hw_watchdog_init()
66 val = readb(&wdog->cs2); in hw_watchdog_init()
68 writeb(val, &wdog->cs2); in hw_watchdog_init()
[all …]
Dimx_watchdog.c18 static void imx_watchdog_expire_now(struct watchdog_regs *wdog, bool ext_reset) in imx_watchdog_expire_now() argument
28 writew(wcr, &wdog->wcr); in imx_watchdog_expire_now()
29 writew(wcr, &wdog->wcr); in imx_watchdog_expire_now()
30 writew(wcr, &wdog->wcr); in imx_watchdog_expire_now()
43 struct watchdog_regs *wdog = (struct watchdog_regs *)WDOG1_BASE_ADDR; in reset_cpu() local
45 imx_watchdog_expire_now(wdog, true); in reset_cpu()
50 static void imx_watchdog_reset(struct watchdog_regs *wdog) in imx_watchdog_reset() argument
53 writew(0x5555, &wdog->wsr); in imx_watchdog_reset()
54 writew(0xaaaa, &wdog->wsr); in imx_watchdog_reset()
58 static void imx_watchdog_init(struct watchdog_regs *wdog, bool ext_reset) in imx_watchdog_init() argument
[all …]
/external/u-boot/arch/arm/mach-sunxi/
Dboard.c290 static const struct sunxi_wdog *wdog = in reset_cpu() local
291 &((struct sunxi_timer_reg *)SUNXI_TIMER_BASE)->wdog; in reset_cpu()
294 writel(WDT_MODE_RESET_EN | WDT_MODE_EN, &wdog->mode); in reset_cpu()
295 writel(WDT_CTRL_KEY | WDT_CTRL_RESTART, &wdog->ctl); in reset_cpu()
299 writel(WDT_MODE_RESET_EN | WDT_MODE_EN, &wdog->mode); in reset_cpu()
304 static const struct sunxi_wdog *wdog = in reset_cpu()
307 static const struct sunxi_wdog *wdog = in reset_cpu()
308 ((struct sunxi_timer_reg *)SUNXI_TIMER_BASE)->wdog; in reset_cpu()
311 writel(WDT_CFG_RESET, &wdog->cfg); in reset_cpu()
312 writel(WDT_MODE_EN, &wdog->mode); in reset_cpu()
[all …]
/external/u-boot/board/warp7/
Dwarp7.c134 struct wdog_regs *wdog = (struct wdog_regs *)WDOG1_BASE_ADDR; in board_late_init() local
142 set_wdog_reset(wdog); in board_late_init()
148 clrsetbits_le16(&wdog->wcr, 0, 0x10); in board_late_init()
/external/u-boot/arch/arm/mach-imx/imx8m/
Dsoc.c70 void set_wdog_reset(struct wdog_regs *wdog) in set_wdog_reset() argument
79 setbits_le16(&wdog->wcr, WDOG_WDT_MASK | WDOG_WDZST_MASK); in set_wdog_reset()
385 struct watchdog_regs *wdog = (struct watchdog_regs *)addr; in reset_cpu() local
388 wdog = (struct watchdog_regs *)WDOG1_BASE_ADDR; in reset_cpu()
391 writew((WCR_WDE | WCR_SRS), &wdog->wcr); in reset_cpu()
/external/u-boot/drivers/mmc/
Ddavinci_mmc.c86 uint wdog = WATCHDOG_COUNT; local
88 while (--wdog && ((get_val(&regs->mmcst1) & status) != status))
94 if (wdog == 0)
103 uint wdog = WATCHDOG_COUNT; local
105 while (--wdog && (get_val(&regs->mmcst1) & MMCST1_BUSY))
108 if (wdog == 0)
118 uint wdog = WATCHDOG_COUNT; local
121 while (wdog--) {
/external/arm-trusted-firmware/plat/imx/common/
Dimx_wdog.c14 struct wdog_regs *wdog = (struct wdog_regs *)base; in imx_wdog_power_down() local
16 mmio_write_16((uintptr_t)&wdog->wmcr, 0); in imx_wdog_power_down()
/external/u-boot/arch/arm/mach-imx/mx7/
Dsoc.c357 void set_wdog_reset(struct wdog_regs *wdog) in set_wdog_reset() argument
359 u32 reg = readw(&wdog->wcr); in set_wdog_reset()
365 reg = readw(&wdog->wcr); in set_wdog_reset()
372 writew(reg, &wdog->wcr); in set_wdog_reset()
Dpsci-mx7.c239 struct wdog_regs *wdog = (struct wdog_regs *)WDOG1_BASE_ADDR; in psci_system_reset() local
244 writew(WCR_WDE, &wdog->wcr); in psci_system_reset()
/external/u-boot/arch/arm/include/asm/arch-sunxi/
Dtimer.h70 struct sunxi_wdog wdog; /* 0x90 */ member
81 struct sunxi_wdog wdog[5]; /* We have 5 watchdogs */ member
/external/u-boot/board/freescale/imx8mn_evk/
Dspl.c72 struct wdog_regs *wdog = (struct wdog_regs *)WDOG1_BASE_ADDR; in board_early_init_f() local
76 set_wdog_reset(wdog); in board_early_init_f()
/external/u-boot/board/freescale/imx8mq_evk/
Dimx8mq_evk.c45 struct wdog_regs *wdog = (struct wdog_regs *)WDOG1_BASE_ADDR; in board_early_init_f() local
48 set_wdog_reset(wdog); in board_early_init_f()
/external/u-boot/board/compulab/cl-som-imx7/
Dcl-som-imx7.c302 struct wdog_regs *wdog = (struct wdog_regs *)WDOG1_BASE_ADDR; in cl_som_imx7_setup_wdog() local
305 set_wdog_reset(wdog); in cl_som_imx7_setup_wdog()
310 clrsetbits_le16(&wdog->wcr, 0, 0x10); in cl_som_imx7_setup_wdog()
/external/u-boot/board/freescale/imx8mm_evk/
Dspl.c74 struct wdog_regs *wdog = (struct wdog_regs *)WDOG1_BASE_ADDR; in board_early_init_f() local
78 set_wdog_reset(wdog); in board_early_init_f()
/external/u-boot/board/technexion/pico-imx7d/
Dpico-imx7d.c251 struct wdog_regs *wdog = (struct wdog_regs *)WDOG1_BASE_ADDR; in board_late_init() local
255 set_wdog_reset(wdog); in board_late_init()
261 clrsetbits_le16(&wdog->wcr, 0, 0x10); in board_late_init()
/external/u-boot/board/freescale/mx7dsabresd/
Dmx7dsabresd.c353 struct wdog_regs *wdog = (struct wdog_regs *)WDOG1_BASE_ADDR; in board_late_init() local
357 set_wdog_reset(wdog); in board_late_init()
363 clrsetbits_le16(&wdog->wcr, 0, 0x10); in board_late_init()
/external/u-boot/arch/m68k/cpu/mcf523x/
Dcpu_init.c41 wdog_t *wdog = (wdog_t *) MMAP_WDOG; in cpu_init_f() local
46 out_be16(&wdog->cr, 0); in cpu_init_f()
/external/u-boot/arch/arm/include/asm/arch-mx7/
Dsys_proto.h10 void set_wdog_reset(struct wdog_regs *wdog);
/external/u-boot/arch/arm/include/asm/arch-imx8m/
Dsys_proto.h11 void set_wdog_reset(struct wdog_regs *wdog);
/external/u-boot/arch/arm/mach-bcm283x/include/mach/
Dwdog.h18 u32 wdog; member
/external/u-boot/arch/arm/cpu/armv7/ls102xa/
Dcpu.c374 struct watchdog_regs *wdog = (struct watchdog_regs *)WDOG1_BASE_ADDR; in reset_cpu() local
376 clrbits_be16(&wdog->wcr, WCR_SRS); in reset_cpu()
/external/u-boot/arch/arm/mach-bcm283x/
Dreset.c46 writel(BCM2835_WDOG_PASSWORD | timeout, &wdog_regs->wdog); in __reset_cpu()
/external/u-boot/arch/m68k/cpu/mcf532x/
Dcpu_init.c212 wdog_t *wdog = (wdog_t *) MMAP_WDOG; in cpu_init_f() local
215 out_be16(&wdog->cr, 0); in cpu_init_f()
/external/u-boot/arch/arm/dts/
Dimx7s.dtsi433 wdog1: wdog@30280000 {
440 wdog2: wdog@30290000 {
448 wdog3: wdog@302a0000 {
456 wdog4: wdog@302b0000 {
Dimx7ulp.dtsi351 wdog1: wdog@403D0000 {
366 wdog2: wdog@40430000 {

12