aboutsummaryrefslogtreecommitdiff
path: root/src/superio/winbond/w83667hg-a/w83667hg-a.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/superio/winbond/w83667hg-a/w83667hg-a.h')
-rw-r--r--src/superio/winbond/w83667hg-a/w83667hg-a.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/src/superio/winbond/w83667hg-a/w83667hg-a.h b/src/superio/winbond/w83667hg-a/w83667hg-a.h
new file mode 100644
index 0000000000..2a8c5110b0
--- /dev/null
+++ b/src/superio/winbond/w83667hg-a/w83667hg-a.h
@@ -0,0 +1,48 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2014 Felix Held <felix-coreboot@felixheld.de>
+ * Copyright (C) 2015 Raptor Engineering
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ */
+
+#ifndef SUPERIO_WINBOND_W83667HG_A
+#define SUPERIO_WINBOND_W83667HG_A
+
+/* Logical Device Numbers (LDN). */
+#define W83667HG_A_FDC 0x00
+#define W83667HG_A_PP 0x01
+#define W83667HG_A_SP1 0x02 /* Com1 */
+#define W83667HG_A_SP2 0x03 /* Com2 */
+#define W83667HG_A_KBC 0x05
+#define W83667HG_A_SPI 0x06
+#define W83667HG_A_GPIO6789_V 0x07
+#define W83667HG_A_WDT1 0x08
+#define W83667HG_A_GPIO2345_V 0x09
+#define W83667HG_A_ACPI 0x0A
+#define W83667HG_A_HWM_TSI 0x0B /* HW monitor/SB-TSI/deep S5 */
+#define W83667HG_A_PECI 0x0C
+#define W83667HG_A_VID_BUSSEL 0x0D /* VID and BUSSEL */
+#define W83667HG_A_GPIO_PP_OD 0x0F /* GPIO Push-Pull/Open drain select */
+
+/* virtual LDN for GPIO */
+#define W83667HG_A_GPIO1 ((1 << 8) | W83667HG_A_WDT1)
+#define W83667HG_A_GPIO2 ((0 << 8) | W83667HG_A_GPIO2345_V)
+#define W83667HG_A_GPIO3 ((1 << 8) | W83667HG_A_GPIO2345_V)
+#define W83667HG_A_GPIO4 ((2 << 8) | W83667HG_A_GPIO2345_V)
+#define W83667HG_A_GPIO5 ((3 << 8) | W83667HG_A_GPIO2345_V)
+#define W83667HG_A_GPIO6 ((1 << 8) | W83667HG_A_GPIO6789_V)
+#define W83667HG_A_GPIO7 ((2 << 8) | W83667HG_A_GPIO6789_V)
+#define W83667HG_A_GPIO8 ((3 << 8) | W83667HG_A_GPIO6789_V)
+#define W83667HG_A_GPIO9 ((4 << 8) | W83667HG_A_GPIO6789_V)
+
+#endif /* SUPERIO_WINBOND_W83667HG_A */