Nico Huber has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/31503
Change subject: drivers/intel/gma: Add `new-pch.asl` for Skylake+
......................................................................
drivers/intel/gma: Add `new-pch.asl` for Skylake+
This should work as `pch.asl` equivalent for Skylake and later
platforms.
Untested.
Change-Id: I0b21d9a0288f0f8d6cb0a4776909bffdae7576f5
Signed-off-by: Nico Huber <nico.huber(a)secunet.com>
---
A src/drivers/intel/gma/acpi/new-pch.asl
1 file changed, 42 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/03/31503/1
diff --git a/src/drivers/intel/gma/acpi/new-pch.asl b/src/drivers/intel/gma/acpi/new-pch.asl
new file mode 100644
index 0000000..b24a350
--- /dev/null
+++ b/src/drivers/intel/gma/acpi/new-pch.asl
@@ -0,0 +1,42 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2007-2009 coresystems GmbH
+ *
+ * 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.
+ */
+
+Device (GFX0)
+{
+ Name (_ADR, 0x00020000)
+
+ OperationRegion (GFXC, PCI_Config, 0x00, 0x0100)
+ Field (GFXC, DWordAcc, NoLock, Preserve)
+ {
+ Offset (0x10),
+ BAR0, 64,
+ Offset (0xe4),
+ ASLE, 32,
+ Offset (0xfc),
+ ASLS, 32,
+ }
+
+ OperationRegion (GFRG, SystemMemory, And (BAR0, 0xfffffffffffffff0), 0x400000)
+ Field (GFRG, DWordAcc, NoLock, Preserve)
+ {
+ Offset (0xc8254),
+ BCLV, 16,
+ BCLM, 16
+ }
+
+#include "configure_brightness_levels.asl"
+#include "common.asl"
+}
--
To view, visit https://review.coreboot.org/c/coreboot/+/31503
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I0b21d9a0288f0f8d6cb0a4776909bffdae7576f5
Gerrit-Change-Number: 31503
Gerrit-PatchSet: 1
Gerrit-Owner: Nico Huber <nico.h(a)gmx.de>
Gerrit-MessageType: newchange
Johnny Lin has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/38995 )
Change subject: mb/ocp/tiogapass: Enable IPMI KCS
......................................................................
mb/ocp/tiogapass: Enable IPMI KCS
Tested on OCP Tioga Pass.
Signed-off-by: Johnny Lin <johnny_lin(a)wiwynn.com>
Change-Id: I3678973736a675ed22b5bc9da20a2ca947220f4b
---
M src/mainboard/ocp/tiogapass/Kconfig
M src/mainboard/ocp/tiogapass/devicetree.cb
2 files changed, 10 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/95/38995/1
diff --git a/src/mainboard/ocp/tiogapass/Kconfig b/src/mainboard/ocp/tiogapass/Kconfig
index ab0f789..41abb65 100644
--- a/src/mainboard/ocp/tiogapass/Kconfig
+++ b/src/mainboard/ocp/tiogapass/Kconfig
@@ -26,6 +26,7 @@
select SOC_INTEL_XEON_SP
select MAINBOARD_USES_FSP2_0
select FSP_CAR
+ select IPMI_KCS
config MAINBOARD_DIR
string
diff --git a/src/mainboard/ocp/tiogapass/devicetree.cb b/src/mainboard/ocp/tiogapass/devicetree.cb
index 3ac0f56..decb81b 100644
--- a/src/mainboard/ocp/tiogapass/devicetree.cb
+++ b/src/mainboard/ocp/tiogapass/devicetree.cb
@@ -53,6 +53,8 @@
register "coherency_support" = "1"
register "ats_support" = "1"
+ register "gen2_dec" = "0x000c0ca1" # IPMI KCS
+
device cpu_cluster 0 on
device lapic 0 on end
end
@@ -83,7 +85,13 @@
device pci 17.0 on end # Intel Corporation C620 Series Chipset Family SATA Controller [AHCI mode]
device pci 1c.0 on end # PCI bridge: Intel Corporation C620 Series Chipset Family PCI Express Root Port #1
device pci 1c.4 on end # PCI bridge: Intel Corporation C620 Series Chipset Family PCI Express Root Port #5
- device pci 1f.0 on end # Intel Corporation C621 Series Chipset LPC/eSPI Controller
+ device pci 1f.0 on
+ chip drivers/ipmi # BMC KCS
+ device pnp ca2.0 on end
+ register "bmc_i2c_address" = "0x20"
+ register "bmc_boot_timeout" = "60"
+ end
+ end # Intel Corporation C621 Series Chipset LPC/eSPI Controller
device pci 1f.2 on end # Intel Corporation C620 Series Chipset Family Power Management Controller
device pci 1f.4 on end # Intel Corporation C620 Series Chipset Family SMBus
device pci 1f.5 on end # Intel Corporation C620 Series Chipset Family SPI Controller
--
To view, visit https://review.coreboot.org/c/coreboot/+/38995
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I3678973736a675ed22b5bc9da20a2ca947220f4b
Gerrit-Change-Number: 38995
Gerrit-PatchSet: 1
Gerrit-Owner: Johnny Lin
Gerrit-MessageType: newchange
Johnny Lin has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/38994 )
Change subject: soc/intel/xeon_sp: Enable LPC generic IO decode range
......................................................................
soc/intel/xeon_sp: Enable LPC generic IO decode range
To use Intel common block LPC function that enables
the IO ranges defined in devicetree.cb.
Tested on OCP Tioga Pass with BMC LPC working.
Signed-off-by: Johnny Lin <johnny_lin(a)wiwynn.com>
Change-Id: I675489d3c66dad259e4101a17300176f6c0e8bd8
---
M src/soc/intel/xeon_sp/Makefile.inc
M src/soc/intel/xeon_sp/bootblock/bootblock.c
A src/soc/intel/xeon_sp/bootblock/pch.c
M src/soc/intel/xeon_sp/chip.h
A src/soc/intel/xeon_sp/include/soc/bootblock.h
M src/soc/intel/xeon_sp/lpc.c
6 files changed, 80 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/94/38994/1
diff --git a/src/soc/intel/xeon_sp/Makefile.inc b/src/soc/intel/xeon_sp/Makefile.inc
index c4db44c..3e7dadb 100644
--- a/src/soc/intel/xeon_sp/Makefile.inc
+++ b/src/soc/intel/xeon_sp/Makefile.inc
@@ -26,6 +26,8 @@
subdirs-$(CONFIG_HAVE_SMI_HANDLER) += ../../../cpu/x86/smm
bootblock-y += bootblock/bootblock.c
+bootblock-y += bootblock/pch.c
+bootblock-y += lpc.c
bootblock-y += spi.c
postcar-y += soc_util.c
diff --git a/src/soc/intel/xeon_sp/bootblock/bootblock.c b/src/soc/intel/xeon_sp/bootblock/bootblock.c
index 15435fa..835f03c 100644
--- a/src/soc/intel/xeon_sp/bootblock/bootblock.c
+++ b/src/soc/intel/xeon_sp/bootblock/bootblock.c
@@ -21,6 +21,7 @@
#include <intelblocks/rtc.h>
#include <intelblocks/fast_spi.h>
#include <soc/iomap.h>
+#include <soc/bootblock.h>
#include <spi-generic.h>
#include <timestamp.h>
#include <console/console.h>
@@ -55,6 +56,7 @@
void bootblock_soc_early_init(void)
{
fast_spi_early_init(SPI_BASE_ADDRESS);
+ pch_early_iorange_init();
}
void bootblock_soc_init(void)
diff --git a/src/soc/intel/xeon_sp/bootblock/pch.c b/src/soc/intel/xeon_sp/bootblock/pch.c
new file mode 100644
index 0000000..6b7b27d
--- /dev/null
+++ b/src/soc/intel/xeon_sp/bootblock/pch.c
@@ -0,0 +1,25 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2014 Google Inc.
+ * Copyright (C) 2015-2019 Intel Corporation.
+ * Copyright (C) 2020 Wiwynn Corp.
+ *
+ * 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.
+ */
+
+#include <intelblocks/lpc_lib.h>
+#include <soc/bootblock.h>
+
+void pch_early_iorange_init(void)
+{
+ /* Program generic IO Decode Range */
+ pch_enable_lpc();
+}
diff --git a/src/soc/intel/xeon_sp/chip.h b/src/soc/intel/xeon_sp/chip.h
index 046c746..fda6498 100644
--- a/src/soc/intel/xeon_sp/chip.h
+++ b/src/soc/intel/xeon_sp/chip.h
@@ -82,6 +82,12 @@
uint32_t vtd_support;
uint32_t coherency_support;
uint32_t ats_support;
+
+ /* Generic IO decode ranges */
+ uint32_t gen1_dec;
+ uint32_t gen2_dec;
+ uint32_t gen3_dec;
+ uint32_t gen4_dec;
};
extern struct chip_operations soc_intel_xeon_sp_ops;
diff --git a/src/soc/intel/xeon_sp/include/soc/bootblock.h b/src/soc/intel/xeon_sp/include/soc/bootblock.h
new file mode 100644
index 0000000..77f3516
--- /dev/null
+++ b/src/soc/intel/xeon_sp/include/soc/bootblock.h
@@ -0,0 +1,22 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2016 Intel Corporation
+ * Copyright (C) 2020 Wiwynn Corp.
+ *
+ * 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.
+ */
+
+#ifndef _SOC_BOOTBLOCK_H_
+#define _SOC_BOOTBLOCK_H_
+
+void pch_early_iorange_init(void);
+
+#endif
diff --git a/src/soc/intel/xeon_sp/lpc.c b/src/soc/intel/xeon_sp/lpc.c
index d4e5d9d..0bd81b4 100644
--- a/src/soc/intel/xeon_sp/lpc.c
+++ b/src/soc/intel/xeon_sp/lpc.c
@@ -18,8 +18,12 @@
#include <console/console.h>
#include <arch/ioapic.h>
#include <intelblocks/lpc_lib.h>
+#include <intelblocks/pcr.h>
#include <soc/soc_util.h>
#include <soc/iomap.h>
+#include <soc/pcr_ids.h>
+
+#include "chip.h"
static const struct lpc_mmio_range xeon_lpc_fixed_mmio_ranges[] = {
{ 0, 0 }
@@ -30,6 +34,25 @@
return xeon_lpc_fixed_mmio_ranges;
}
+void soc_get_gen_io_dec_range(const struct device *dev, uint32_t *gen_io_dec)
+{
+ const config_t *config = config_of(dev);
+
+ gen_io_dec[0] = config->gen1_dec;
+ gen_io_dec[1] = config->gen2_dec;
+ gen_io_dec[2] = config->gen3_dec;
+ gen_io_dec[3] = config->gen4_dec;
+}
+
+void soc_setup_dmi_pcr_io_dec(uint32_t *gen_io_dec)
+{
+ /* Mirror these same settings in DMI PCR */
+ pcr_write32(PID_DMI, PCR_DMI_LPCLGIR1, gen_io_dec[0]);
+ pcr_write32(PID_DMI, PCR_DMI_LPCLGIR2, gen_io_dec[1]);
+ pcr_write32(PID_DMI, PCR_DMI_LPCLGIR3, gen_io_dec[2]);
+ pcr_write32(PID_DMI, PCR_DMI_LPCLGIR4, gen_io_dec[3]);
+}
+
void lpc_soc_init(struct device *dev)
{
printk(BIOS_SPEW, "pch: lpc_init\n");
--
To view, visit https://review.coreboot.org/c/coreboot/+/38994
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I675489d3c66dad259e4101a17300176f6c0e8bd8
Gerrit-Change-Number: 38994
Gerrit-PatchSet: 1
Gerrit-Owner: Johnny Lin
Gerrit-MessageType: newchange
Michał Żygowski has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/38851 )
Change subject: mb/pcengines/*/devicetree: remove non-existing NCT5104d LDN 0xe
......................................................................
mb/pcengines/*/devicetree: remove non-existing NCT5104d LDN 0xe
Nuvoton NCT5104d has no LDN 0xe according to its datasheet.
Signed-off-by: Michał Żygowski <michal.zygowski(a)3mdeb.com>
Change-Id: I0d34218d88b779b08c380d2396ff9ab9253597fa
---
M src/mainboard/pcengines/apu1/devicetree.cb
M src/mainboard/pcengines/apu2/variants/apu2/devicetree.cb
M src/mainboard/pcengines/apu2/variants/apu3/devicetree.cb
M src/mainboard/pcengines/apu2/variants/apu4/devicetree.cb
M src/mainboard/pcengines/apu2/variants/apu5/devicetree.cb
5 files changed, 0 insertions(+), 5 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/51/38851/1
diff --git a/src/mainboard/pcengines/apu1/devicetree.cb b/src/mainboard/pcengines/apu1/devicetree.cb
index ece40bb..c280c4c 100644
--- a/src/mainboard/pcengines/apu1/devicetree.cb
+++ b/src/mainboard/pcengines/apu1/devicetree.cb
@@ -71,7 +71,6 @@
device pnp 2e.007 off end
device pnp 2e.107 off end
device pnp 2e.607 off end
- device pnp 2e.e off end
end
chip drivers/pc80/tpm
device pnp 0c31.0 on end
diff --git a/src/mainboard/pcengines/apu2/variants/apu2/devicetree.cb b/src/mainboard/pcengines/apu2/variants/apu2/devicetree.cb
index 66f3a48..fee5051 100644
--- a/src/mainboard/pcengines/apu2/variants/apu2/devicetree.cb
+++ b/src/mainboard/pcengines/apu2/variants/apu2/devicetree.cb
@@ -73,7 +73,6 @@
device pnp 2e.007 on end
device pnp 2e.107 on end
device pnp 2e.607 off end
- device pnp 2e.e off end
end # SIO NCT5104D
chip drivers/pc80/tpm
device pnp 0c31.0 on end
diff --git a/src/mainboard/pcengines/apu2/variants/apu3/devicetree.cb b/src/mainboard/pcengines/apu2/variants/apu3/devicetree.cb
index 2806fd6..66a3b6f 100644
--- a/src/mainboard/pcengines/apu2/variants/apu3/devicetree.cb
+++ b/src/mainboard/pcengines/apu2/variants/apu3/devicetree.cb
@@ -73,7 +73,6 @@
device pnp 2e.007 on end
device pnp 2e.107 on end
device pnp 2e.607 off end
- device pnp 2e.e off end
end # SIO NCT5104D
end # LPC 0x439d
diff --git a/src/mainboard/pcengines/apu2/variants/apu4/devicetree.cb b/src/mainboard/pcengines/apu2/variants/apu4/devicetree.cb
index e28422d..d19b546 100644
--- a/src/mainboard/pcengines/apu2/variants/apu4/devicetree.cb
+++ b/src/mainboard/pcengines/apu2/variants/apu4/devicetree.cb
@@ -73,7 +73,6 @@
device pnp 2e.007 on end
device pnp 2e.107 on end
device pnp 2e.607 off end
- device pnp 2e.e off end
end # SIO NCT5104D
end # LPC 0x439d
diff --git a/src/mainboard/pcengines/apu2/variants/apu5/devicetree.cb b/src/mainboard/pcengines/apu2/variants/apu5/devicetree.cb
index 21667eb..c5b20d3 100644
--- a/src/mainboard/pcengines/apu2/variants/apu5/devicetree.cb
+++ b/src/mainboard/pcengines/apu2/variants/apu5/devicetree.cb
@@ -69,7 +69,6 @@
device pnp 2e.007 off end
device pnp 2e.107 off end
device pnp 2e.607 off end
- device pnp 2e.e off end
end # SIO NCT5104D
chip drivers/pc80/tpm
device pnp 0c31.0 on end
--
To view, visit https://review.coreboot.org/c/coreboot/+/38851
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I0d34218d88b779b08c380d2396ff9ab9253597fa
Gerrit-Change-Number: 38851
Gerrit-PatchSet: 1
Gerrit-Owner: Michał Żygowski <michal.zygowski(a)3mdeb.com>
Gerrit-MessageType: newchange