linux/include/linux/mfd/wm831x/watchdog.h
<<
>>
Prefs
   1/* SPDX-License-Identifier: GPL-2.0-or-later */
   2/*
   3 * include/linux/mfd/wm831x/watchdog.h -- Watchdog for WM831x
   4 *
   5 * Copyright 2009 Wolfson Microelectronics PLC.
   6 *
   7 * Author: Mark Brown <broonie@opensource.wolfsonmicro.com>
   8 */
   9
  10#ifndef __MFD_WM831X_WATCHDOG_H__
  11#define __MFD_WM831X_WATCHDOG_H__
  12
  13
  14/*
  15 * R16388 (0x4004) - Watchdog
  16 */
  17#define WM831X_WDOG_ENA                         0x8000  /* WDOG_ENA */
  18#define WM831X_WDOG_ENA_MASK                    0x8000  /* WDOG_ENA */
  19#define WM831X_WDOG_ENA_SHIFT                       15  /* WDOG_ENA */
  20#define WM831X_WDOG_ENA_WIDTH                        1  /* WDOG_ENA */
  21#define WM831X_WDOG_DEBUG                       0x4000  /* WDOG_DEBUG */
  22#define WM831X_WDOG_DEBUG_MASK                  0x4000  /* WDOG_DEBUG */
  23#define WM831X_WDOG_DEBUG_SHIFT                     14  /* WDOG_DEBUG */
  24#define WM831X_WDOG_DEBUG_WIDTH                      1  /* WDOG_DEBUG */
  25#define WM831X_WDOG_RST_SRC                     0x2000  /* WDOG_RST_SRC */
  26#define WM831X_WDOG_RST_SRC_MASK                0x2000  /* WDOG_RST_SRC */
  27#define WM831X_WDOG_RST_SRC_SHIFT                   13  /* WDOG_RST_SRC */
  28#define WM831X_WDOG_RST_SRC_WIDTH                    1  /* WDOG_RST_SRC */
  29#define WM831X_WDOG_SLPENA                      0x1000  /* WDOG_SLPENA */
  30#define WM831X_WDOG_SLPENA_MASK                 0x1000  /* WDOG_SLPENA */
  31#define WM831X_WDOG_SLPENA_SHIFT                    12  /* WDOG_SLPENA */
  32#define WM831X_WDOG_SLPENA_WIDTH                     1  /* WDOG_SLPENA */
  33#define WM831X_WDOG_RESET                       0x0800  /* WDOG_RESET */
  34#define WM831X_WDOG_RESET_MASK                  0x0800  /* WDOG_RESET */
  35#define WM831X_WDOG_RESET_SHIFT                     11  /* WDOG_RESET */
  36#define WM831X_WDOG_RESET_WIDTH                      1  /* WDOG_RESET */
  37#define WM831X_WDOG_SECACT_MASK                 0x0300  /* WDOG_SECACT - [9:8] */
  38#define WM831X_WDOG_SECACT_SHIFT                     8  /* WDOG_SECACT - [9:8] */
  39#define WM831X_WDOG_SECACT_WIDTH                     2  /* WDOG_SECACT - [9:8] */
  40#define WM831X_WDOG_PRIMACT_MASK                0x0030  /* WDOG_PRIMACT - [5:4] */
  41#define WM831X_WDOG_PRIMACT_SHIFT                    4  /* WDOG_PRIMACT - [5:4] */
  42#define WM831X_WDOG_PRIMACT_WIDTH                    2  /* WDOG_PRIMACT - [5:4] */
  43#define WM831X_WDOG_TO_MASK                     0x0007  /* WDOG_TO - [2:0] */
  44#define WM831X_WDOG_TO_SHIFT                         0  /* WDOG_TO - [2:0] */
  45#define WM831X_WDOG_TO_WIDTH                         3  /* WDOG_TO - [2:0] */
  46
  47#endif
  48