1 /* 2 * Copyright (c) 2017, Impinj, Inc. 3 * 4 * i.MX2 Watchdog IP block 5 * 6 * Author: Andrey Smirnov <andrew.smirnov@gmail.com> 7 * 8 * This work is licensed under the terms of the GNU GPL, version 2 or later. 9 * See the COPYING file in the top-level directory. 10 */ 11 12 #ifndef IMX2_WDT_H 13 #define IMX2_WDT_H 14 15 #include "hw/sysbus.h" 16 17 #define TYPE_IMX2_WDT "imx2.wdt" 18 #define IMX2_WDT(obj) OBJECT_CHECK(IMX2WdtState, (obj), TYPE_IMX2_WDT) 19 20 enum IMX2WdtRegisters { 21 IMX2_WDT_WCR = 0x0000, 22 IMX2_WDT_REG_NUM = 0x0008 / sizeof(uint16_t) + 1, 23 }; 24 25 26 typedef struct IMX2WdtState { 27 /* <private> */ 28 SysBusDevice parent_obj; 29 30 MemoryRegion mmio; 31 } IMX2WdtState; 32 33 #endif /* IMX2_WDT_H */ 34