Felix Held | 14be0da | 2014-07-19 00:24:06 +0200 | [diff] [blame] | 1 | /* |
| 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 Held | 14be0da | 2014-07-19 00:24:06 +0200 | [diff] [blame] | 15 | */ |
| 16 | |
| 17 | #ifndef SUPERIO_NUVOTON_NCT5572D |
| 18 | #define SUPERIO_NUVOTON_NCT5572D |
| 19 | |
| 20 | /* Logical Device Numbers (LDN). */ |
Kyösti Mälkki | 3b01cf1 | 2015-10-27 18:00:57 +0200 | [diff] [blame] | 21 | #define NCT5572D_FDC 0x00 |
| 22 | #define NCT5572D_PP 0x01 |
Felix Held | 14be0da | 2014-07-19 00:24:06 +0200 | [diff] [blame] | 23 | #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älkki | 3b01cf1 | 2015-10-27 18:00:57 +0200 | [diff] [blame] | 40 | #define NCT5572D_GPIO4 ((2 << 8) | NCT5572D_GPIO235_V) |
Felix Held | 14be0da | 2014-07-19 00:24:06 +0200 | [diff] [blame] | 41 | #define NCT5572D_GPIO5 ((3 << 8) | NCT5572D_GPIO235_V) |
| 42 | #define NCT5572D_GPIO6 ((1 << 8) | NCT5572D_GPIO689_V) |
Kyösti Mälkki | 3b01cf1 | 2015-10-27 18:00:57 +0200 | [diff] [blame] | 43 | #define NCT5572D_GPIO7 ((2 << 8) | NCT5572D_GPIO689_V) |
Felix Held | 14be0da | 2014-07-19 00:24:06 +0200 | [diff] [blame] | 44 | #define NCT5572D_GPIO8 ((3 << 8) | NCT5572D_GPIO689_V) |
| 45 | #define NCT5572D_GPIO9 ((4 << 8) | NCT5572D_GPIO689_V) |
| 46 | |
| 47 | #endif /* SUPERIO_NUVOTON_NCT5572D */ |