blob: a122550a2cda226a8719b5023ada450961382073 [file] [log] [blame]
Stefan Roese4cf9e462016-07-19 07:45:46 +02001/*
2 * Copyright (C) 2016 Stefan Roese <sr@denx.de>
3 *
4 * SPDX-License-Identifier: GPL-2.0+
5 */
6
7#ifndef _NUVOTON_NCT6102D_H_
8#define _NUVOTON_NCT6102D_H_
9
10/* I/O address of Nuvoton Super IO chip */
11#define NCT6102D_IO_PORT 0x4e
12
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)
19
20#define NCT_LD_SELECT_REG 0x07
21
22/* Logical device number */
23#define NCT6102D_LD_UARTA 0x02
24#define NCT6102D_LD_WDT 0x08
25
26#define NCT6102D_UARTA_ENABLE 0x30
27#define NCT6102D_WDT_TIMEOUT 0xf1
28
29#define NCT_ENTRY_KEY 0x87
30#define NCT_EXIT_KEY 0xaa
31
32int nct6102d_wdt_disable(void);
33
34#endif /* _NUVOTON_NCT6102D_H_ */