2 * Copyright (C) 2016 Stefan Roese <sr@denx.de>
4 * SPDX-License-Identifier: GPL-2.0+
7 #ifndef _NUVOTON_NCT6102D_H_
8 #define _NUVOTON_NCT6102D_H_
10 /* I/O address of Nuvoton Super IO chip */
11 #define NCT6102D_IO_PORT 0x4e
13 /* Extended Function Enable Registers */
14 #define NCT_EFER (NCT6102D_IO_PORT + 0)
15 /* Extended Function Index Register (same as EFER) */
16 #define NCT_EFIR (NCT6102D_IO_PORT + 0)
17 /* Extended Function Data Register */
18 #define NCT_EFDR (NCT_EFIR + 1)
20 #define NCT_LD_SELECT_REG 0x07
22 /* Logical device number */
23 #define NCT6102D_LD_UARTA 0x02
24 #define NCT6102D_LD_WDT 0x08
26 #define NCT6102D_UARTA_ENABLE 0x30
27 #define NCT6102D_WDT_TIMEOUT 0xf1
29 #define NCT_ENTRY_KEY 0x87
30 #define NCT_EXIT_KEY 0xaa
32 int nct6102d_wdt_disable(void);
34 #endif /* _NUVOTON_NCT6102D_H_ */