2 * ASPEED Watchdog Controller
4 * Copyright (C) 2016-2017 IBM Corp.
6 * This code is licensed under the GPL version 2 or later. See the
7 * COPYING file in the top-level directory.
12 #include "hw/sysbus.h"
14 #define TYPE_ASPEED_WDT "aspeed.wdt"
15 #define ASPEED_WDT(obj) \
16 OBJECT_CHECK(AspeedWDTState, (obj), TYPE_ASPEED_WDT)
18 #define ASPEED_WDT_REGS_MAX (0x20 / 4)
20 typedef struct AspeedWDTState
{
22 SysBusDevice parent_obj
;
27 uint32_t regs
[ASPEED_WDT_REGS_MAX
];
31 uint32_t ext_pulse_width_mask
;
34 #endif /* ASPEED_WDT_H */