aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/kontron/bsl6/variants/boxer26
diff options
context:
space:
mode:
authorNico Huber <nico.huber@secunet.com>2017-04-20 15:36:46 +0200
committerNico Huber <nico.h@gmx.de>2020-08-04 15:20:19 +0000
commit0ccfa6805fc453b581ae3fa3306655ef1a4c3e95 (patch)
treea6b79b9b7d93bc786b2077403dc846b044bbcb76 /src/mainboard/kontron/bsl6/variants/boxer26
parente0e28908d27451e85339d24f1fcf96091a1cd168 (diff)
mb/kontron/bsl6: Add new Skylake COMe module
Add Kontron/bSL6 together with Siemens/Boxer26, a baseboard for the bSL6. The plain bSL6 variant received little testing and only during early development. The Boxer26 variant is actively used and fully tested. The latest rebase was boot tested with FILO and Linux 4.19. Change-Id: If2b6a3f1e9dd095463f1f1521068b9f66a9189c5 Signed-off-by: Nico Huber <nico.huber@secunet.com> Signed-off-by: Felix Singer <felix.singer@secunet.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/29480 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/kontron/bsl6/variants/boxer26')
-rw-r--r--src/mainboard/kontron/bsl6/variants/boxer26/gma-mainboard.ads13
-rw-r--r--src/mainboard/kontron/bsl6/variants/boxer26/overridetree.cb58
-rw-r--r--src/mainboard/kontron/bsl6/variants/boxer26/romstage.c25
3 files changed, 96 insertions, 0 deletions
diff --git a/src/mainboard/kontron/bsl6/variants/boxer26/gma-mainboard.ads b/src/mainboard/kontron/bsl6/variants/boxer26/gma-mainboard.ads
new file mode 100644
index 0000000000..ea4750aa13
--- /dev/null
+++ b/src/mainboard/kontron/bsl6/variants/boxer26/gma-mainboard.ads
@@ -0,0 +1,13 @@
+-- SPDX-License-Identifier: GPL-2.0-or-later
+
+with HW.GFX.GMA;
+with HW.GFX.GMA.Display_Probing;
+
+use HW.GFX.GMA;
+use HW.GFX.GMA.Display_Probing;
+
+private package GMA.Mainboard is
+
+ ports : constant Port_List := (DP2, HDMI2, others => Disabled);
+
+end GMA.Mainboard;
diff --git a/src/mainboard/kontron/bsl6/variants/boxer26/overridetree.cb b/src/mainboard/kontron/bsl6/variants/boxer26/overridetree.cb
new file mode 100644
index 0000000000..9dd57e1987
--- /dev/null
+++ b/src/mainboard/kontron/bsl6/variants/boxer26/overridetree.cb
@@ -0,0 +1,58 @@
+# SPDX-License-Identifier: GPL-2.0-only
+
+chip soc/intel/skylake
+
+ register "SkipExtGfxScan" = "1"
+
+ device domain 0 on
+ device pci 1c.0 off end # PCI Express Port 1
+ device pci 1c.1 off end # PCI Express Port 2
+ device pci 1c.2 off end # PCI Express Port 3
+ device pci 1c.3 off end # PCI Express Port 4
+ device pci 1d.3 off end # PCI Express Port 12
+ device pci 1f.0 on
+ chip ec/kontron/kempld
+ device generic 1.0 on # I2C
+ chip drivers/i2c/lm96000
+ register "vin[1].low" = "1140*100/116"
+ register "vin[1].high" = "1260*100/116"
+ register "vin[0].low" = "1810"
+ register "vin[0].high" = "2000"
+ register "vin[2].low" = "3140"
+ register "vin[2].high" = "3470"
+ register "vin[3].low" = "4750"
+ register "vin[3].high" = "5250"
+ register "vin[4].low" = "11400"
+ register "vin[4].high" = "12600"
+
+ register "fan_in[0].low" = "3240"
+ register "fan_in[1].low" = "3240"
+
+ register "fan[0].mode" = "LM96000_FAN_MANUAL"
+ register "fan[0].spinup" = "LM96000_SPINUP_250MS"
+ register "fan[0].freq" = "LM96000_PWM_25_7KHZ"
+ register "fan[0].duty_cycle" = "100"
+
+ register "fan[1].mode" = "LM96000_FAN_MANUAL"
+ register "fan[1].spinup" = "LM96000_SPINUP_250MS"
+ register "fan[1].freq" = "LM96000_PWM_25_7KHZ"
+ register "fan[1].duty_cycle" = "100"
+
+ device i2c 0x2c on end
+ end
+ chip drivers/secunet/dmi
+ device i2c 0x57 on end # Serial EEPROM
+ end
+ end
+ end
+ end # LPC Interface
+ device pci 1f.4 on
+ chip drivers/i2c/nct7802y
+ register "fan[1].mode" = "FAN_MANUAL"
+ register "fan[1].duty_cycle" = "100"
+ end
+ end # SMBus
+ device pci 1f.5 on end # PCH SPI
+ device pci 1f.6 on end # GbE # Debug
+ end
+end
diff --git a/src/mainboard/kontron/bsl6/variants/boxer26/romstage.c b/src/mainboard/kontron/bsl6/variants/boxer26/romstage.c
new file mode 100644
index 0000000000..9c14d84ea7
--- /dev/null
+++ b/src/mainboard/kontron/bsl6/variants/boxer26/romstage.c
@@ -0,0 +1,25 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#include <option.h>
+#include <stdint.h>
+#include <console/console.h>
+#include <pc80/mc146818rtc.h>
+#include <fsp/soc_binding.h>
+
+#include "../../variant.h"
+
+void variant_memory_init_params(FSPM_UPD *const mupd)
+{
+ char nvram_var[] = "ethernetx";
+ unsigned int i;
+
+ for (i = 0; i < 3; ++i) {
+ u8 eth_enable = 1;
+ nvram_var[sizeof(nvram_var) - 2] = '1' + i;
+ get_option(&eth_enable, nvram_var);
+ if (!eth_enable) {
+ printk(BIOS_INFO, "Disabling ethernet%u.\n", 1 + i);
+ mupd->FspmConfig.PcieRpEnableMask &= ~(1 << (i + 8));
+ }
+ }
+}