cpu/x86/smm/pci_resource_store: Store DEV/VEN ID
[coreboot2.git] / src / superio / nuvoton / nct5572d / nct5572d.h
blob805344593c5af0ba6a07850cf6e0a123233b3350
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 #ifndef SUPERIO_NUVOTON_NCT5572D
4 #define SUPERIO_NUVOTON_NCT5572D
6 /* Logical Device Numbers (LDN). */
7 #define NCT5572D_FDC 0x00
8 #define NCT5572D_PP 0x01
9 #define NCT5572D_SP1 0x02 /* Com1 */
10 #define NCT5572D_IR 0x03
11 #define NCT5572D_KBC 0x05
12 #define NCT5572D_CIR 0x06
13 #define NCT5572D_GPIO689_V 0x07
14 #define NCT5572D_WDT1 0x08
15 #define NCT5572D_GPIO235_V 0x09
16 #define NCT5572D_ACPI 0x0A
17 #define NCT5572D_HWM_TSI_FPLED 0x0B /* HW monitor/SB-TSI/front LED/deep S5 */
18 #define NCT5572D_PECI 0x0C
19 #define NCT5572D_SUSLED 0x0D /* marked as reserved, but described */
20 #define NCT5572D_CIRWKUP 0x0E /* CIR wakeup */
21 #define NCT5572D_GPIO_PP_OD 0x0F /* GPIO Push-Pull/Open drain select */
23 /* virtual LDN for GPIO */
24 #define NCT5572D_GPIO2 ((0 << 8) | NCT5572D_GPIO235_V)
25 #define NCT5572D_GPIO3 ((1 << 8) | NCT5572D_GPIO235_V)
26 #define NCT5572D_GPIO4 ((2 << 8) | NCT5572D_GPIO235_V)
27 #define NCT5572D_GPIO5 ((3 << 8) | NCT5572D_GPIO235_V)
28 #define NCT5572D_GPIO6 ((1 << 8) | NCT5572D_GPIO689_V)
29 #define NCT5572D_GPIO7 ((2 << 8) | NCT5572D_GPIO689_V)
30 #define NCT5572D_GPIO8 ((3 << 8) | NCT5572D_GPIO689_V)
31 #define NCT5572D_GPIO9 ((4 << 8) | NCT5572D_GPIO689_V)
33 #endif /* SUPERIO_NUVOTON_NCT5572D */