From 988ee17fd2486415e8be4ebf49f57b5a1b97e685 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Tue, 24 Nov 2015 14:11:57 -0600 Subject: superio/winbond/w83667hg-a: Add support for W83667HG-A The KGPE-D16 and KCMA-D8 use a Winbond W83667HG-A SuperIO. While the Nuvoton NCT5572D is effectively the same core, and a close enough match to get things working initially, the W83667HG-A has a different LDN mapping and several extra features that require a separate support driver. Clone the Nuvoton NCT5572D and modify according to the W83667HG-A datasheet, version 1.4. Change-Id: I707ba2e40a22d41cd813003d84a82cb20304f55b Signed-off-by: Timothy Pearson Reviewed-on: https://review.coreboot.org/13156 Tested-by: build bot (Jenkins) Tested-by: Raptor Engineering Automated Test Stand Reviewed-by: Felix Held --- src/superio/winbond/w83667hg-a/w83667hg-a.h | 48 +++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 src/superio/winbond/w83667hg-a/w83667hg-a.h (limited to 'src/superio/winbond/w83667hg-a/w83667hg-a.h') 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 + * 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 */ -- cgit v1.2.3