/external/u-boot/drivers/watchdog/ |
D | ulp_wdog.c | 45 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 …]
|
D | imx_watchdog.c | 18 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/ |
D | board.c | 290 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/ |
D | warp7.c | 134 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/ |
D | soc.c | 70 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/ |
D | davinci_mmc.c | 86 uint wdog = WATCHDOG_COUNT; local 88 while (--wdog && ((get_val(®s->mmcst1) & status) != status)) 94 if (wdog == 0) 103 uint wdog = WATCHDOG_COUNT; local 105 while (--wdog && (get_val(®s->mmcst1) & MMCST1_BUSY)) 108 if (wdog == 0) 118 uint wdog = WATCHDOG_COUNT; local 121 while (wdog--) {
|
/external/arm-trusted-firmware/plat/imx/common/ |
D | imx_wdog.c | 14 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/ |
D | soc.c | 357 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()
|
D | psci-mx7.c | 239 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/ |
D | timer.h | 70 struct sunxi_wdog wdog; /* 0x90 */ member 81 struct sunxi_wdog wdog[5]; /* We have 5 watchdogs */ member
|
/external/u-boot/board/freescale/imx8mn_evk/ |
D | spl.c | 72 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/ |
D | imx8mq_evk.c | 45 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/ |
D | cl-som-imx7.c | 302 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/ |
D | spl.c | 74 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/ |
D | pico-imx7d.c | 251 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/ |
D | mx7dsabresd.c | 353 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/ |
D | cpu_init.c | 41 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/ |
D | sys_proto.h | 10 void set_wdog_reset(struct wdog_regs *wdog);
|
/external/u-boot/arch/arm/include/asm/arch-imx8m/ |
D | sys_proto.h | 11 void set_wdog_reset(struct wdog_regs *wdog);
|
/external/u-boot/arch/arm/mach-bcm283x/include/mach/ |
D | wdog.h | 18 u32 wdog; member
|
/external/u-boot/arch/arm/cpu/armv7/ls102xa/ |
D | cpu.c | 374 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/ |
D | reset.c | 46 writel(BCM2835_WDOG_PASSWORD | timeout, &wdog_regs->wdog); in __reset_cpu()
|
/external/u-boot/arch/m68k/cpu/mcf532x/ |
D | cpu_init.c | 212 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/ |
D | imx7s.dtsi | 433 wdog1: wdog@30280000 { 440 wdog2: wdog@30290000 { 448 wdog3: wdog@302a0000 { 456 wdog4: wdog@302b0000 {
|
D | imx7ulp.dtsi | 351 wdog1: wdog@403D0000 { 366 wdog2: wdog@40430000 {
|