Fabio Estevam | cd847ab | 2015-10-03 14:20:59 -0300 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2015 Freescale Semiconductor, Inc. |
| 3 | * |
| 4 | * SPDX-License-Identifier: GPL-2.0+ |
| 5 | */ |
| 6 | |
| 7 | struct watchdog_regs { |
| 8 | u16 wcr; /* Control */ |
| 9 | u16 wsr; /* Service */ |
| 10 | u16 wrsr; /* Reset Status */ |
| 11 | }; |
| 12 | |
| 13 | #define WCR_WDZST 0x01 |
| 14 | #define WCR_WDBG 0x02 |
| 15 | #define WCR_WDE 0x04 |
| 16 | #define WCR_WDT 0x08 |
| 17 | #define WCR_SRS 0x10 |
Ross Parker | feaada1 | 2016-08-02 08:08:07 +0000 | [diff] [blame] | 18 | #define WCR_WDA 0x20 |
Fabio Estevam | cd847ab | 2015-10-03 14:20:59 -0300 | [diff] [blame] | 19 | #define SET_WCR_WT(x) (x << 8) |
Andrey Skvortsov | 46ddf2c | 2015-12-20 21:09:58 +0300 | [diff] [blame] | 20 | #define WCR_WT_MSK SET_WCR_WT(0xFF) |