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