xref: /openbmc/u-boot/include/nuvoton_nct6102d.h (revision fabbeb33)
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * Copyright (C) 2016 Stefan Roese <sr@denx.de>
4  */
5 
6 #ifndef _NUVOTON_NCT6102D_H_
7 #define _NUVOTON_NCT6102D_H_
8 
9 /* I/O address of Nuvoton Super IO chip */
10 #define NCT6102D_IO_PORT	0x4e
11 
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)
18 
19 #define NCT_LD_SELECT_REG	0x07
20 
21 /* Logical device number */
22 #define NCT6102D_LD_UARTA	0x02
23 #define NCT6102D_LD_WDT		0x08
24 
25 #define NCT6102D_UARTA_ENABLE	0x30
26 #define NCT6102D_WDT_TIMEOUT	0xf1
27 
28 #define NCT_ENTRY_KEY		0x87
29 #define NCT_EXIT_KEY		0xaa
30 
31 int nct6102d_wdt_disable(void);
32 
33 #endif /* _NUVOTON_NCT6102D_H_ */
34