blob: e04abf3cbc45141007418e6993f66fdc30f045b6 [file] [log] [blame]
Felix Held14be0da2014-07-19 00:24:06 +02001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright (C) 2014 Felix Held <felix-coreboot@felixheld.de>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
Felix Held14be0da2014-07-19 00:24:06 +020015 */
16
17#ifndef SUPERIO_NUVOTON_NCT5572D
18#define SUPERIO_NUVOTON_NCT5572D
19
20/* Logical Device Numbers (LDN). */
Kyösti Mälkki3b01cf12015-10-27 18:00:57 +020021#define NCT5572D_FDC 0x00
22#define NCT5572D_PP 0x01
Felix Held14be0da2014-07-19 00:24:06 +020023#define NCT5572D_SP1 0x02 /* Com1 */
24#define NCT5572D_IR 0x03
25#define NCT5572D_KBC 0x05
26#define NCT5572D_CIR 0x06
27#define NCT5572D_GPIO689_V 0x07
28#define NCT5572D_WDT1 0x08
29#define NCT5572D_GPIO235_V 0x09
30#define NCT5572D_ACPI 0x0A
31#define NCT5572D_HWM_TSI_FPLED 0x0B /* HW monitor/SB-TSI/front LED/deep S5 */
32#define NCT5572D_PECI 0x0C
33#define NCT5572D_SUSLED 0x0D /* marked as reserved, but described */
34#define NCT5572D_CIRWKUP 0x0E /* CIR wakeup */
35#define NCT5572D_GPIO_PP_OD 0x0F /* GPIO Push-Pull/Open drain select */
36
37/* virtual LDN for GPIO */
38#define NCT5572D_GPIO2 ((0 << 8) | NCT5572D_GPIO235_V)
39#define NCT5572D_GPIO3 ((1 << 8) | NCT5572D_GPIO235_V)
Kyösti Mälkki3b01cf12015-10-27 18:00:57 +020040#define NCT5572D_GPIO4 ((2 << 8) | NCT5572D_GPIO235_V)
Felix Held14be0da2014-07-19 00:24:06 +020041#define NCT5572D_GPIO5 ((3 << 8) | NCT5572D_GPIO235_V)
42#define NCT5572D_GPIO6 ((1 << 8) | NCT5572D_GPIO689_V)
Kyösti Mälkki3b01cf12015-10-27 18:00:57 +020043#define NCT5572D_GPIO7 ((2 << 8) | NCT5572D_GPIO689_V)
Felix Held14be0da2014-07-19 00:24:06 +020044#define NCT5572D_GPIO8 ((3 << 8) | NCT5572D_GPIO689_V)
45#define NCT5572D_GPIO9 ((4 << 8) | NCT5572D_GPIO689_V)
46
47#endif /* SUPERIO_NUVOTON_NCT5572D */