Home | History | Annotate | Line # | Download | only in bfin
dv-bfin_wdog.h revision 1.1.1.10
      1       1.1  christos /* Blackfin Watchdog (WDOG) model.
      2       1.1  christos 
      3  1.1.1.10  christos    Copyright (C) 2010-2024 Free Software Foundation, Inc.
      4       1.1  christos    Contributed by Analog Devices, Inc.
      5       1.1  christos 
      6       1.1  christos    This file is part of simulators.
      7       1.1  christos 
      8       1.1  christos    This program is free software; you can redistribute it and/or modify
      9       1.1  christos    it under the terms of the GNU General Public License as published by
     10       1.1  christos    the Free Software Foundation; either version 3 of the License, or
     11       1.1  christos    (at your option) any later version.
     12       1.1  christos 
     13       1.1  christos    This program is distributed in the hope that it will be useful,
     14       1.1  christos    but WITHOUT ANY WARRANTY; without even the implied warranty of
     15       1.1  christos    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     16       1.1  christos    GNU General Public License for more details.
     17       1.1  christos 
     18       1.1  christos    You should have received a copy of the GNU General Public License
     19       1.1  christos    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
     20       1.1  christos 
     21       1.1  christos #ifndef DV_BFIN_WDOG_H
     22       1.1  christos #define DV_BFIN_WDOG_H
     23       1.1  christos 
     24       1.1  christos /* WDOG_CTL */
     25       1.1  christos #define WDEV            0x0006  /* event generated on roll over */
     26       1.1  christos #define WDEV_RESET      0x0000  /* generate reset event on roll over */
     27       1.1  christos #define WDEV_NMI        0x0002  /* generate NMI event on roll over */
     28       1.1  christos #define WDEV_GPI        0x0004  /* generate GP IRQ on roll over */
     29       1.1  christos #define WDEV_NONE       0x0006  /* no event on roll over */
     30       1.1  christos #define WDEN            0x0FF0  /* enable watchdog */
     31       1.1  christos #define WDDIS           0x0AD0  /* disable watchdog */
     32       1.1  christos #define WDRO            0x8000  /* watchdog rolled over latch */
     33       1.1  christos 
     34       1.1  christos #endif
     35