From f3e50fc68186fbfa93f77d05f182bf0435e745ab Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Sat, 15 Dec 2018 21:38:39 +0100 Subject: mb/foxconn/g41s-k: Add g41m variant Was tested with the following: - 2 DIMM slots - USB - Ethernet NIC - automatic fan control - Libgfxinit with VGA, DVI (HDMI slot unpopulated) - PS2 Keyboard - SATA - PEG - S3 resume What does not work: - Using the second DIMM slot on a channel G41 can only handle 2 ranks per channel and on this mainboard 1 rank per DIMM slot. Supporting this would require too much raminit rework and is not worth it (at least for me) Change-Id: I67784038ef929f561b82365f00db70a69c024321 Signed-off-by: Arthur Heymans Reviewed-on: https://review.coreboot.org/c/30242 Tested-by: build bot (Jenkins) Reviewed-by: Angel Pons --- .../foxconn/g41s-k/acpi/ich7_pci_irqs.asl | 46 ---------------------- src/mainboard/foxconn/g41s-k/acpi/superio.asl | 4 ++ 2 files changed, 4 insertions(+), 46 deletions(-) delete mode 100644 src/mainboard/foxconn/g41s-k/acpi/ich7_pci_irqs.asl (limited to 'src/mainboard/foxconn/g41s-k/acpi') diff --git a/src/mainboard/foxconn/g41s-k/acpi/ich7_pci_irqs.asl b/src/mainboard/foxconn/g41s-k/acpi/ich7_pci_irqs.asl deleted file mode 100644 index 9d10d81d69..0000000000 --- a/src/mainboard/foxconn/g41s-k/acpi/ich7_pci_irqs.asl +++ /dev/null @@ -1,46 +0,0 @@ -/* - * This file is part of the coreboot project. - * - * Copyright (C) 2017 Arthur Heymans - * Copyright (C) 2017 Samuel Holland - * - * 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; version 2 of the License. - * - * 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. - */ - -/* - * This is board specific information: - * IRQ routing for the 0:1e.0 PCI bridge of the ICH7 - */ - -If (PICM) { - Return (Package() { - Package() { 0x0000ffff, 0, 0, 0x10}, - Package() { 0x0000ffff, 1, 0, 0x11}, - Package() { 0x0000ffff, 2, 0, 0x12}, - Package() { 0x0000ffff, 3, 0, 0x13}, - - Package() { 0x0001ffff, 0, 0, 0x11}, - Package() { 0x0001ffff, 1, 0, 0x12}, - Package() { 0x0001ffff, 2, 0, 0x13}, - Package() { 0x0001ffff, 3, 0, 0x10}, - }) -} Else { - Return (Package() { - Package() { 0x0000ffff, 0, \_SB.PCI0.LPCB.LNKA, 0}, - Package() { 0x0000ffff, 1, \_SB.PCI0.LPCB.LNKB, 0}, - Package() { 0x0000ffff, 2, \_SB.PCI0.LPCB.LNKC, 0}, - Package() { 0x0000ffff, 3, \_SB.PCI0.LPCB.LNKD, 0}, - - Package() { 0x0001ffff, 0, \_SB.PCI0.LPCB.LNKB, 0}, - Package() { 0x0001ffff, 1, \_SB.PCI0.LPCB.LNKC, 0}, - Package() { 0x0001ffff, 2, \_SB.PCI0.LPCB.LNKD, 0}, - Package() { 0x0001ffff, 3, \_SB.PCI0.LPCB.LNKA, 0}, - }) -} diff --git a/src/mainboard/foxconn/g41s-k/acpi/superio.asl b/src/mainboard/foxconn/g41s-k/acpi/superio.asl index 3811c2f1ad..9432aca833 100644 --- a/src/mainboard/foxconn/g41s-k/acpi/superio.asl +++ b/src/mainboard/foxconn/g41s-k/acpi/superio.asl @@ -26,10 +26,14 @@ #define SUPERIO_DEV SIO0 #define SUPERIO_PNP_BASE 0x2e #define IT8720F_SHOW_SP1 1 +#if IS_ENABLED(CONFIG_BOARD_FOXCONN_G41S_K) #define IT8720F_SHOW_SP2 1 +#endif #define IT8720F_SHOW_EC 1 #define IT8720F_SHOW_KBCK 1 #define IT8720F_SHOW_KBCM 1 #define IT8720F_SHOW_GPIO 1 +#if IS_ENABLED(CONFIG_BOARD_FOXCONN_G41S_K) #define IT8720F_SHOW_CIR 1 +#endif #include -- cgit v1.2.3