Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Fabio Estevam | f532727 | 2015-10-03 14:20:59 -0300 | [diff] [blame] | 2 | /* |
| 3 | * (C) Copyright 2015 Freescale Semiconductor, Inc. |
Fabio Estevam | f532727 | 2015-10-03 14:20:59 -0300 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | struct watchdog_regs { |
| 7 | u16 wcr; /* Control */ |
| 8 | u16 wsr; /* Service */ |
| 9 | u16 wrsr; /* Reset Status */ |
| 10 | }; |
| 11 | |
| 12 | #define WCR_WDZST 0x01 |
| 13 | #define WCR_WDBG 0x02 |
| 14 | #define WCR_WDE 0x04 |
| 15 | #define WCR_WDT 0x08 |
| 16 | #define WCR_SRS 0x10 |
Wolfgang Denk | 0cf207e | 2021-09-27 17:42:39 +0200 | [diff] [blame] | 17 | #define WCR_WDA 0x20 |
Fabio Estevam | f532727 | 2015-10-03 14:20:59 -0300 | [diff] [blame] | 18 | #define SET_WCR_WT(x) (x << 8) |
Andrey Skvortsov | 587c3f8 | 2015-12-20 21:09:58 +0300 | [diff] [blame] | 19 | #define WCR_WT_MSK SET_WCR_WT(0xFF) |