summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Żygowski <michal.zygowski@3mdeb.com>2022-02-20 23:27:18 +0100
committerMichał Żygowski <michal.zygowski@3mdeb.com>2022-03-25 09:26:40 +0000
commit7e8b597093b1e312532be2e64a5744c53a89e0c0 (patch)
tree8067f4494db18d7b38aa920406c09fb57b56a24a
parentb017a43a6d31d2babd6170b6adf7712506f776c2 (diff)
mb/dell: Convert OptiPlex 9010 into directory with variants
New boards like Dell Precision T1650 will be added as variants, in subsequent commit. They share most of the code, except some EC initialization tables, PCIe port configuration and subsystem ID. Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com> Change-Id: I4075f0ae3b24892fcc2be07061a01f8070659239 Reviewed-on: https://review.coreboot.org/c/coreboot/+/62211 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Krystian Hebel <krystian.hebel@3mdeb.com>
-rw-r--r--src/mainboard/dell/optiplex_9010/Kconfig.name2
-rw-r--r--src/mainboard/dell/snb_ivb_workstations/Kconfig (renamed from src/mainboard/dell/optiplex_9010/Kconfig)28
-rw-r--r--src/mainboard/dell/snb_ivb_workstations/Kconfig.name4
-rw-r--r--src/mainboard/dell/snb_ivb_workstations/Makefile.inc (renamed from src/mainboard/dell/optiplex_9010/Makefile.inc)10
-rw-r--r--src/mainboard/dell/snb_ivb_workstations/acpi/ec.asl (renamed from src/mainboard/dell/optiplex_9010/acpi/ec.asl)0
-rw-r--r--src/mainboard/dell/snb_ivb_workstations/acpi/platform.asl (renamed from src/mainboard/dell/optiplex_9010/acpi/platform.asl)0
-rw-r--r--src/mainboard/dell/snb_ivb_workstations/acpi/superio.asl (renamed from src/mainboard/dell/optiplex_9010/acpi/superio.asl)0
-rw-r--r--src/mainboard/dell/snb_ivb_workstations/board_info.txt (renamed from src/mainboard/dell/optiplex_9010/board_info.txt)0
-rw-r--r--src/mainboard/dell/snb_ivb_workstations/cmos.default (renamed from src/mainboard/dell/optiplex_9010/cmos.default)0
-rw-r--r--src/mainboard/dell/snb_ivb_workstations/cmos.layout (renamed from src/mainboard/dell/optiplex_9010/cmos.layout)0
-rw-r--r--src/mainboard/dell/snb_ivb_workstations/dsdt.asl (renamed from src/mainboard/dell/optiplex_9010/dsdt.asl)0
-rw-r--r--src/mainboard/dell/snb_ivb_workstations/early_init.c (renamed from src/mainboard/dell/optiplex_9010/early_init.c)2
-rw-r--r--src/mainboard/dell/snb_ivb_workstations/gma-mainboard.ads (renamed from src/mainboard/dell/optiplex_9010/gma-mainboard.ads)0
-rw-r--r--src/mainboard/dell/snb_ivb_workstations/gpio.c (renamed from src/mainboard/dell/optiplex_9010/gpio.c)0
-rw-r--r--src/mainboard/dell/snb_ivb_workstations/hda_verb.c0
-rw-r--r--src/mainboard/dell/snb_ivb_workstations/mainboard.c (renamed from src/mainboard/dell/optiplex_9010/mainboard.c)7
-rw-r--r--src/mainboard/dell/snb_ivb_workstations/romstage.c (renamed from src/mainboard/dell/optiplex_9010/romstage.c)2
-rw-r--r--src/mainboard/dell/snb_ivb_workstations/sch5545_ec.c (renamed from src/mainboard/dell/optiplex_9010/sch5545_ec.c)246
-rw-r--r--src/mainboard/dell/snb_ivb_workstations/sch5545_ec_early.c (renamed from src/mainboard/dell/optiplex_9010/sch5545_ec_early.c)2
-rw-r--r--src/mainboard/dell/snb_ivb_workstations/smihandler.c (renamed from src/mainboard/dell/optiplex_9010/smihandler.c)0
-rw-r--r--src/mainboard/dell/snb_ivb_workstations/variants/baseboard/devicetree.cb (renamed from src/mainboard/dell/optiplex_9010/devicetree.cb)14
-rw-r--r--src/mainboard/dell/snb_ivb_workstations/variants/baseboard/include/baseboard/sch5545_ec.h (renamed from src/mainboard/dell/optiplex_9010/sch5545_ec.h)17
-rw-r--r--src/mainboard/dell/snb_ivb_workstations/variants/optiplex_9010_sff/data.vbt (renamed from src/mainboard/dell/optiplex_9010/data.vbt)bin4281 -> 4281 bytes
-rw-r--r--src/mainboard/dell/snb_ivb_workstations/variants/optiplex_9010_sff/hda_verb.c (renamed from src/mainboard/dell/optiplex_9010/hda_verb.c)0
-rw-r--r--src/mainboard/dell/snb_ivb_workstations/variants/optiplex_9010_sff/include/variant/sch5545_ec_tables.h237
-rw-r--r--src/mainboard/dell/snb_ivb_workstations/variants/optiplex_9010_sff/overridetree.cb14
26 files changed, 317 insertions, 268 deletions
diff --git a/src/mainboard/dell/optiplex_9010/Kconfig.name b/src/mainboard/dell/optiplex_9010/Kconfig.name
deleted file mode 100644
index 96707c2890..0000000000
--- a/src/mainboard/dell/optiplex_9010/Kconfig.name
+++ /dev/null
@@ -1,2 +0,0 @@
-config BOARD_DELL_OPTIPLEX_9010
- bool "OptiPlex 9010 SFF"
diff --git a/src/mainboard/dell/optiplex_9010/Kconfig b/src/mainboard/dell/snb_ivb_workstations/Kconfig
index 01edd243fc..5d64fd7c10 100644
--- a/src/mainboard/dell/optiplex_9010/Kconfig
+++ b/src/mainboard/dell/snb_ivb_workstations/Kconfig
@@ -1,17 +1,11 @@
-if BOARD_DELL_OPTIPLEX_9010
-
-config IGNORE_IASL_MISSING_DEPENDENCY
- def_bool y
-
-config BOARD_SPECIFIC_OPTIONS
- def_bool y
+config BOARD_DELL_SNB_IVB_WORKSTATIONS
+ def_bool n
select BOARD_ROMSIZE_KB_12288
select HAVE_ACPI_RESUME
select HAVE_ACPI_TABLES
select INTEL_INT15
select NORTHBRIDGE_INTEL_SANDYBRIDGE
select SERIRQ_CONTINUOUS_MODE
- select SOUTHBRIDGE_INTEL_C216
select USE_NATIVE_RAMINIT
select MAINBOARD_HAS_LPC_TPM
select MAINBOARD_HAS_TPM1
@@ -24,11 +18,25 @@ config BOARD_SPECIFIC_OPTIONS
select PCIEXP_L1_SUB_STATE
select DRIVERS_UART_8250IO
+if BOARD_DELL_SNB_IVB_WORKSTATIONS
+
+config IGNORE_IASL_MISSING_DEPENDENCY
+ def_bool y
+
config MAINBOARD_DIR
- default "dell/optiplex_9010"
+ default "dell/snb_ivb_workstations"
config MAINBOARD_PART_NUMBER
- default "OptiPlex 9010"
+ default "OptiPlex 9010" if BOARD_DELL_OPTIPLEX_9010
+
+config VARIANT_DIR
+ default "optiplex_9010_sff" if BOARD_DELL_OPTIPLEX_9010
+
+config DEVICETREE
+ default "variants/baseboard/devicetree.cb"
+
+config OVERRIDE_DEVICETREE
+ default "variants/\$(CONFIG_VARIANT_DIR)/overridetree.cb"
config DRAM_RESET_GATE_GPIO
int
diff --git a/src/mainboard/dell/snb_ivb_workstations/Kconfig.name b/src/mainboard/dell/snb_ivb_workstations/Kconfig.name
new file mode 100644
index 0000000000..51b7030a04
--- /dev/null
+++ b/src/mainboard/dell/snb_ivb_workstations/Kconfig.name
@@ -0,0 +1,4 @@
+config BOARD_DELL_OPTIPLEX_9010
+ bool "OptiPlex 9010 SFF"
+ select BOARD_DELL_SNB_IVB_WORKSTATIONS
+ select SOUTHBRIDGE_INTEL_BD82X6X
diff --git a/src/mainboard/dell/optiplex_9010/Makefile.inc b/src/mainboard/dell/snb_ivb_workstations/Makefile.inc
index 964a7af97a..a53d8c19d3 100644
--- a/src/mainboard/dell/optiplex_9010/Makefile.inc
+++ b/src/mainboard/dell/snb_ivb_workstations/Makefile.inc
@@ -9,12 +9,20 @@ romstage-y += early_init.c
bootblock-y += sch5545_ec_early.c
romstage-y += sch5545_ec.c
-
ramstage-y += sch5545_ec.c
+
ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += gma-mainboard.ads
+ramstage-y += variants/$(VARIANT_DIR)/hda_verb.c
+
ifeq ($(CONFIG_INCLUDE_SMSC_SCH5545_EC_FW),y)
cbfs-files-y += sch5545_ecfw.bin
sch5545_ecfw.bin-file := $(call strip_quotes,$(CONFIG_SMSC_SCH5545_EC_FW_FILE))
sch5545_ecfw.bin-type := raw
endif
+
+subdirs-y += variants/baseboard
+CPPFLAGS_common += -I$(src)/mainboard/$(MAINBOARDDIR)/variants/baseboard/include
+
+subdirs-y += variants/$(VARIANT_DIR)
+CPPFLAGS_common += -I$(src)/mainboard/$(MAINBOARDDIR)/variants/$(VARIANT_DIR)/include
diff --git a/src/mainboard/dell/optiplex_9010/acpi/ec.asl b/src/mainboard/dell/snb_ivb_workstations/acpi/ec.asl
index e69de29bb2..e69de29bb2 100644
--- a/src/mainboard/dell/optiplex_9010/acpi/ec.asl
+++ b/src/mainboard/dell/snb_ivb_workstations/acpi/ec.asl
diff --git a/src/mainboard/dell/optiplex_9010/acpi/platform.asl b/src/mainboard/dell/snb_ivb_workstations/acpi/platform.asl
index f890b5af54..f890b5af54 100644
--- a/src/mainboard/dell/optiplex_9010/acpi/platform.asl
+++ b/src/mainboard/dell/snb_ivb_workstations/acpi/platform.asl
diff --git a/src/mainboard/dell/optiplex_9010/acpi/superio.asl b/src/mainboard/dell/snb_ivb_workstations/acpi/superio.asl
index fa1dfcf726..fa1dfcf726 100644
--- a/src/mainboard/dell/optiplex_9010/acpi/superio.asl
+++ b/src/mainboard/dell/snb_ivb_workstations/acpi/superio.asl
diff --git a/src/mainboard/dell/optiplex_9010/board_info.txt b/src/mainboard/dell/snb_ivb_workstations/board_info.txt
index f49f3ba416..f49f3ba416 100644
--- a/src/mainboard/dell/optiplex_9010/board_info.txt
+++ b/src/mainboard/dell/snb_ivb_workstations/board_info.txt
diff --git a/src/mainboard/dell/optiplex_9010/cmos.default b/src/mainboard/dell/snb_ivb_workstations/cmos.default
index ccc7e64625..ccc7e64625 100644
--- a/src/mainboard/dell/optiplex_9010/cmos.default
+++ b/src/mainboard/dell/snb_ivb_workstations/cmos.default
diff --git a/src/mainboard/dell/optiplex_9010/cmos.layout b/src/mainboard/dell/snb_ivb_workstations/cmos.layout
index cff6004fec..cff6004fec 100644
--- a/src/mainboard/dell/optiplex_9010/cmos.layout
+++ b/src/mainboard/dell/snb_ivb_workstations/cmos.layout
diff --git a/src/mainboard/dell/optiplex_9010/dsdt.asl b/src/mainboard/dell/snb_ivb_workstations/dsdt.asl
index fa9cb86402..fa9cb86402 100644
--- a/src/mainboard/dell/optiplex_9010/dsdt.asl
+++ b/src/mainboard/dell/snb_ivb_workstations/dsdt.asl
diff --git a/src/mainboard/dell/optiplex_9010/early_init.c b/src/mainboard/dell/snb_ivb_workstations/early_init.c
index 2ffdf1664a..4a381df937 100644
--- a/src/mainboard/dell/optiplex_9010/early_init.c
+++ b/src/mainboard/dell/snb_ivb_workstations/early_init.c
@@ -7,7 +7,7 @@
#include <superio/smsc/sch5545/sch5545.h>
#include <superio/smsc/sch5545/sch5545_emi.h>
-#include "sch5545_ec.h"
+#include <baseboard/sch5545_ec.h>
const struct southbridge_usb_port mainboard_usb_ports[] = {
{ 1, 6, 0 },
diff --git a/src/mainboard/dell/optiplex_9010/gma-mainboard.ads b/src/mainboard/dell/snb_ivb_workstations/gma-mainboard.ads
index 74b50645e6..74b50645e6 100644
--- a/src/mainboard/dell/optiplex_9010/gma-mainboard.ads
+++ b/src/mainboard/dell/snb_ivb_workstations/gma-mainboard.ads
diff --git a/src/mainboard/dell/optiplex_9010/gpio.c b/src/mainboard/dell/snb_ivb_workstations/gpio.c
index d01e6221a6..d01e6221a6 100644
--- a/src/mainboard/dell/optiplex_9010/gpio.c
+++ b/src/mainboard/dell/snb_ivb_workstations/gpio.c
diff --git a/src/mainboard/dell/snb_ivb_workstations/hda_verb.c b/src/mainboard/dell/snb_ivb_workstations/hda_verb.c
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/src/mainboard/dell/snb_ivb_workstations/hda_verb.c
diff --git a/src/mainboard/dell/optiplex_9010/mainboard.c b/src/mainboard/dell/snb_ivb_workstations/mainboard.c
index 25f9196e9c..c32121112a 100644
--- a/src/mainboard/dell/optiplex_9010/mainboard.c
+++ b/src/mainboard/dell/snb_ivb_workstations/mainboard.c
@@ -9,7 +9,7 @@
#include <southbridge/intel/common/gpio.h>
#include <superio/smsc/sch5545/sch5545.h>
-#include "sch5545_ec.h"
+#include <baseboard/sch5545_ec.h>
#define SIO_PORT 0x2e
@@ -64,13 +64,16 @@ static void mainboard_enable(struct device *dev)
printk(BIOS_DEBUG, "Chassis type: ");
switch (pin_sts) {
case 0:
- case 4:
printk(BIOS_DEBUG, "MT\n");
break;
case 3:
case 11:
printk(BIOS_DEBUG, "USFF\n");
break;
+ case 4:
+ /* As per table in schematics, but don't know what this is */
+ printk(BIOS_DEBUG, "Comoros\n");
+ break;
case 1:
case 9:
case 5:
diff --git a/src/mainboard/dell/optiplex_9010/romstage.c b/src/mainboard/dell/snb_ivb_workstations/romstage.c
index 889b06d962..83c00c7260 100644
--- a/src/mainboard/dell/optiplex_9010/romstage.c
+++ b/src/mainboard/dell/snb_ivb_workstations/romstage.c
@@ -10,7 +10,7 @@
#include <superio/smsc/sch5545/sch5545.h>
#include <superio/smsc/sch5545/sch5545_emi.h>
-#include "sch5545_ec.h"
+#include <baseboard/sch5545_ec.h>
void mainboard_late_rcba_config(void)
{
diff --git a/src/mainboard/dell/optiplex_9010/sch5545_ec.c b/src/mainboard/dell/snb_ivb_workstations/sch5545_ec.c
index 9aa0038cc3..a68f285a98 100644
--- a/src/mainboard/dell/optiplex_9010/sch5545_ec.c
+++ b/src/mainboard/dell/snb_ivb_workstations/sch5545_ec.c
@@ -10,25 +10,14 @@
#include <superio/smsc/sch5545/sch5545.h>
#include <superio/smsc/sch5545/sch5545_emi.h>
-#include "sch5545_ec.h"
+#include <baseboard/sch5545_ec.h>
+#include <variant/sch5545_ec_tables.h>
#define GPIO_CHASSIS_ID0 1
#define GPIO_CHASSIS_ID1 17
#define GPIO_CHASSIS_ID2 37
#define GPIO_FRONT_PANEL_CHASSIS_DET_L 70
-enum {
- TDP_16 = 0x10,
- TDP_32 = 0x20,
- TDP_COMMON = 0xff,
-};
-
-typedef struct ec_val_reg_tdp {
- uint8_t val;
- uint16_t reg;
- uint8_t tdp;
-} ec_chassis_tdp_t;
-
static const struct ec_val_reg ec_hwm_init_seq[] = {
{ 0xa0, 0x02fc },
{ 0x32, 0x02fd },
@@ -105,234 +94,6 @@ static const struct ec_val_reg ec_hwm_init_seq[] = {
{ 0x03, 0x0071 },
};
-static const ec_chassis_tdp_t ec_hwm_chassis3[] = {
- { 0x33, 0x0005, TDP_COMMON },
- { 0x2f, 0x0018, TDP_COMMON },
- { 0x2f, 0x0019, TDP_COMMON },
- { 0x2f, 0x001a, TDP_COMMON },
- { 0x00, 0x0080, TDP_COMMON },
- { 0x00, 0x0081, TDP_COMMON },
- { 0xbb, 0x0083, TDP_COMMON },
- { 0x8a, 0x0085, TDP_16 },
- { 0x2c, 0x0086, TDP_16 },
- { 0x66, 0x008a, TDP_16 },
- { 0x5b, 0x008b, TDP_16 },
- { 0x65, 0x0090, TDP_COMMON },
- { 0x70, 0x0091, TDP_COMMON },
- { 0x86, 0x0092, TDP_COMMON },
- { 0xa4, 0x0096, TDP_COMMON },
- { 0xa4, 0x0097, TDP_COMMON },
- { 0xa4, 0x0098, TDP_COMMON },
- { 0xa4, 0x009b, TDP_COMMON },
- { 0x0e, 0x00a0, TDP_COMMON },
- { 0x0e, 0x00a1, TDP_COMMON },
- { 0x7c, 0x00ae, TDP_COMMON },
- { 0x86, 0x00af, TDP_COMMON },
- { 0x95, 0x00b0, TDP_COMMON },
- { 0x9a, 0x00b3, TDP_COMMON },
- { 0x08, 0x00b6, TDP_COMMON },
- { 0x08, 0x00b7, TDP_COMMON },
- { 0x64, 0x00ea, TDP_COMMON },
- { 0xff, 0x00ef, TDP_COMMON },
- { 0x15, 0x00f8, TDP_COMMON },
- { 0x00, 0x00f9, TDP_COMMON },
- { 0x30, 0x00f0, TDP_COMMON },
- { 0x01, 0x00fd, TDP_COMMON },
- { 0x88, 0x01a1, TDP_COMMON },
- { 0x08, 0x01a2, TDP_COMMON },
- { 0x08, 0x01b1, TDP_COMMON },
- { 0x94, 0x01be, TDP_COMMON },
- { 0x94, 0x0280, TDP_16 },
- { 0x11, 0x0281, TDP_16 },
- { 0x03, 0x0282, TDP_COMMON },
- { 0x0a, 0x0283, TDP_COMMON },
- { 0x80, 0x0284, TDP_COMMON },
- { 0x03, 0x0285, TDP_COMMON },
- { 0x68, 0x0288, TDP_16 },
- { 0x10, 0x0289, TDP_16 },
- { 0x03, 0x028a, TDP_COMMON },
- { 0x0a, 0x028b, TDP_COMMON },
- { 0x80, 0x028c, TDP_COMMON },
- { 0x03, 0x028d, TDP_COMMON },
-};
-
-static const ec_chassis_tdp_t ec_hwm_chassis4[] = {
- { 0x33, 0x0005, TDP_COMMON },
- { 0x2f, 0x0018, TDP_COMMON },
- { 0x2f, 0x0019, TDP_COMMON },
- { 0x2f, 0x001a, TDP_COMMON },
- { 0x00, 0x0080, TDP_COMMON },
- { 0x00, 0x0081, TDP_COMMON },
- { 0xbb, 0x0083, TDP_COMMON },
- { 0x99, 0x0085, TDP_32 },
- { 0x98, 0x0085, TDP_16 },
- { 0xbc, 0x0086, TDP_32 },
- { 0x1c, 0x0086, TDP_16 },
- { 0x39, 0x008a, TDP_32 },
- { 0x3d, 0x008a, TDP_16 },
- { 0x40, 0x008b, TDP_32 },
- { 0x43, 0x008b, TDP_16 },
- { 0x68, 0x0090, TDP_COMMON },
- { 0x5e, 0x0091, TDP_COMMON },
- { 0x86, 0x0092, TDP_COMMON },
- { 0xa4, 0x0096, TDP_COMMON },
- { 0xa4, 0x0097, TDP_COMMON },
- { 0xa4, 0x0098, TDP_COMMON },
- { 0xa4, 0x009b, TDP_COMMON },
- { 0x0c, 0x00a0, TDP_COMMON },
- { 0x0c, 0x00a1, TDP_COMMON },
- { 0x72, 0x00ae, TDP_COMMON },
- { 0x7c, 0x00af, TDP_COMMON },
- { 0x9a, 0x00b0, TDP_COMMON },
- { 0x7c, 0x00b3, TDP_COMMON },
- { 0x08, 0x00b6, TDP_COMMON },
- { 0x08, 0x00b7, TDP_COMMON },
- { 0x64, 0x00ea, TDP_COMMON },
- { 0xff, 0x00ef, TDP_COMMON },
- { 0x15, 0x00f8, TDP_COMMON },
- { 0x00, 0x00f9, TDP_COMMON },
- { 0x30, 0x00f0, TDP_COMMON },
- { 0x01, 0x00fd, TDP_COMMON },
- { 0x88, 0x01a1, TDP_COMMON },
- { 0x08, 0x01a2, TDP_COMMON },
- { 0x08, 0x01b1, TDP_COMMON },
- { 0x90, 0x01be, TDP_COMMON },
- { 0x94, 0x0280, TDP_32 },
- { 0x11, 0x0281, TDP_32 },
- { 0x68, 0x0280, TDP_16 },
- { 0x10, 0x0281, TDP_16 },
- { 0x03, 0x0282, TDP_COMMON },
- { 0x0a, 0x0283, TDP_COMMON },
- { 0x80, 0x0284, TDP_COMMON },
- { 0x03, 0x0285, TDP_COMMON },
- { 0xa0, 0x0288, TDP_32 },
- { 0x0f, 0x0289, TDP_32 },
- { 0xd8, 0x0288, TDP_16 },
- { 0x0e, 0x0289, TDP_16 },
- { 0x03, 0x028a, TDP_COMMON },
- { 0x0a, 0x028b, TDP_COMMON },
- { 0x80, 0x028c, TDP_COMMON },
- { 0x03, 0x028d, TDP_COMMON },
-};
-
-static const ec_chassis_tdp_t ec_hwm_chassis5[] = {
- { 0x33, 0x0005, TDP_COMMON },
- { 0x2f, 0x0018, TDP_COMMON },
- { 0x2f, 0x0019, TDP_COMMON },
- { 0x2f, 0x001a, TDP_COMMON },
- { 0x00, 0x0080, TDP_COMMON },
- { 0x00, 0x0081, TDP_COMMON },
- { 0xbb, 0x0083, TDP_COMMON },
- { 0x89, 0x0085, TDP_32 },
- { 0x99, 0x0085, TDP_16 },
- { 0x9c, 0x0086, TDP_COMMON },
- { 0x39, 0x008a, TDP_32 },
- { 0x42, 0x008a, TDP_16 },
- { 0x6b, 0x008b, TDP_32 },
- { 0x74, 0x008b, TDP_16 },
- { 0x5e, 0x0091, TDP_COMMON },
- { 0x86, 0x0092, TDP_COMMON },
- { 0xa4, 0x0096, TDP_COMMON },
- { 0xa4, 0x0097, TDP_COMMON },
- { 0xa4, 0x0098, TDP_COMMON },
- { 0xa4, 0x009b, TDP_COMMON },
- { 0x0c, 0x00a0, TDP_COMMON },
- { 0x0c, 0x00a1, TDP_COMMON },
- { 0x7c, 0x00ae, TDP_COMMON },
- { 0x7c, 0x00af, TDP_COMMON },
- { 0x9a, 0x00b0, TDP_COMMON },
- { 0x7c, 0x00b3, TDP_COMMON },
- { 0x08, 0x00b6, TDP_COMMON },
- { 0x08, 0x00b7, TDP_COMMON },
- { 0x64, 0x00ea, TDP_COMMON },
- { 0xff, 0x00ef, TDP_COMMON },
- { 0x15, 0x00f8, TDP_COMMON },
- { 0x00, 0x00f9, TDP_COMMON },
- { 0x30, 0x00f0, TDP_COMMON },
- { 0x01, 0x00fd, TDP_COMMON },
- { 0x88, 0x01a1, TDP_COMMON },
- { 0x08, 0x01a2, TDP_COMMON },
- { 0x08, 0x01b1, TDP_COMMON },
- { 0x90, 0x01be, TDP_COMMON },
- { 0x94, 0x0280, TDP_32 },
- { 0x11, 0x0281, TDP_32 },
- { 0x3c, 0x0280, TDP_16 },
- { 0x0f, 0x0281, TDP_16 },
- { 0x03, 0x0282, TDP_COMMON },
- { 0x0a, 0x0283, TDP_COMMON },
- { 0x80, 0x0284, TDP_COMMON },
- { 0x03, 0x0285, TDP_COMMON },
- { 0x60, 0x0288, TDP_32 },
- { 0x09, 0x0289, TDP_32 },
- { 0x98, 0x0288, TDP_16 },
- { 0x08, 0x0289, TDP_16 },
- { 0x03, 0x028a, TDP_COMMON },
- { 0x0a, 0x028b, TDP_COMMON },
- { 0x80, 0x028c, TDP_COMMON },
- { 0x03, 0x028d, TDP_COMMON },
-};
-
-static const ec_chassis_tdp_t ec_hwm_chassis6[] = {
- { 0x33, 0x0005, TDP_COMMON },
- { 0x2f, 0x0018, TDP_COMMON },
- { 0x2f, 0x0019, TDP_COMMON },
- { 0x2f, 0x001a, TDP_COMMON },
- { 0x00, 0x0080, TDP_COMMON },
- { 0x00, 0x0081, TDP_COMMON },
- { 0xbb, 0x0083, TDP_COMMON },
- { 0x99, 0x0085, TDP_32 },
- { 0x98, 0x0085, TDP_16 },
- { 0xdc, 0x0086, TDP_32 },
- { 0x9c, 0x0086, TDP_16 },
- { 0x3d, 0x008a, TDP_32 },
- { 0x43, 0x008a, TDP_16 },
- { 0x4e, 0x008b, TDP_32 },
- { 0x47, 0x008b, TDP_16 },
- { 0x6d, 0x0090, TDP_COMMON },
- { 0x5f, 0x0091, TDP_32 },
- { 0x61, 0x0091, TDP_16 },
- { 0x86, 0x0092, TDP_COMMON },
- { 0xa4, 0x0096, TDP_COMMON },
- { 0xa4, 0x0097, TDP_COMMON },
- { 0xa4, 0x0098, TDP_COMMON },
- { 0xa4, 0x009b, TDP_COMMON },
- { 0x0e, 0x00a0, TDP_COMMON },
- { 0x0e, 0x00a1, TDP_COMMON },
- { 0x7c, 0x00ae, TDP_COMMON },
- { 0x7c, 0x00af, TDP_COMMON },
- { 0x98, 0x00b0, TDP_32 },
- { 0x9a, 0x00b0, TDP_16 },
- { 0x9a, 0x00b3, TDP_COMMON },
- { 0x08, 0x00b6, TDP_COMMON },
- { 0x08, 0x00b7, TDP_COMMON },
- { 0x64, 0x00ea, TDP_COMMON },
- { 0xff, 0x00ef, TDP_COMMON },
- { 0x15, 0x00f8, TDP_COMMON },
- { 0x00, 0x00f9, TDP_COMMON },
- { 0x30, 0x00f0, TDP_COMMON },
- { 0x01, 0x00fd, TDP_COMMON },
- { 0x88, 0x01a1, TDP_COMMON },
- { 0x08, 0x01a2, TDP_COMMON },
- { 0x08, 0x01b1, TDP_COMMON },
- { 0x97, 0x01be, TDP_32 },
- { 0x95, 0x01be, TDP_16 },
- { 0x68, 0x0280, TDP_32 },
- { 0x10, 0x0281, TDP_32 },
- { 0xd8, 0x0280, TDP_16 },
- { 0x0e, 0x0281, TDP_16 },
- { 0x03, 0x0282, TDP_COMMON },
- { 0x0a, 0x0283, TDP_COMMON },
- { 0x80, 0x0284, TDP_COMMON },
- { 0x03, 0x0285, TDP_COMMON },
- { 0xe4, 0x0288, TDP_32 },
- { 0x0c, 0x0289, TDP_32 },
- { 0x10, 0x0288, TDP_16 },
- { 0x0e, 0x0289, TDP_16 },
- { 0x03, 0x028a, TDP_COMMON },
- { 0x0a, 0x028b, TDP_COMMON },
- { 0x80, 0x028c, TDP_COMMON },
- { 0x03, 0x028d, TDP_COMMON },
-};
static uint8_t send_mbox_msg_with_int(uint8_t mbox_message)
{
@@ -617,12 +378,14 @@ void sch5545_ec_hwm_init(void *unused)
ec_read_write_reg(EC_HWM_LDN, 0x0048, &val, READ_OP);
val |= 0x02;
ec_read_write_reg(EC_HWM_LDN, 0x0048, &val, WRITE_OP);
+
ec_read_write_reg(EC_HWM_LDN, 0x0048, &val, READ_OP);
ec_read_write_reg(EC_HWM_LDN, 0x0048, &val, WRITE_OP);
ec_read_write_reg(EC_HWM_LDN, 0x0042, &val, READ_OP);
ec_read_write_reg(EC_HWM_LDN, 0x0048, &val, READ_OP);
val |= 0x04;
ec_read_write_reg(EC_HWM_LDN, 0x0048, &val, WRITE_OP);
+
ec_read_write_reg(EC_HWM_LDN, 0x0081, &val, READ_OP);
ec_read_write_reg(EC_HWM_LDN, 0x0027, &val, READ_OP);
@@ -672,6 +435,7 @@ void sch5545_ec_hwm_init(void *unused)
ec_read_write_reg(EC_HWM_LDN, 0x00b8, &val, READ_OP);
+
if (chassis_type == 4 || chassis_type == 5) {
ec_read_write_reg(EC_HWM_LDN, 0x0027, &val, READ_OP);
if (val == 0) {
diff --git a/src/mainboard/dell/optiplex_9010/sch5545_ec_early.c b/src/mainboard/dell/snb_ivb_workstations/sch5545_ec_early.c
index 70b7de6064..fd5fbca17c 100644
--- a/src/mainboard/dell/optiplex_9010/sch5545_ec_early.c
+++ b/src/mainboard/dell/snb_ivb_workstations/sch5545_ec_early.c
@@ -4,7 +4,7 @@
#include <superio/smsc/sch5545/sch5545.h>
#include <superio/smsc/sch5545/sch5545_emi.h>
-#include "sch5545_ec.h"
+#include <baseboard/sch5545_ec.h>
static uint16_t emi_bar;
diff --git a/src/mainboard/dell/optiplex_9010/smihandler.c b/src/mainboard/dell/snb_ivb_workstations/smihandler.c
index 3ed0d11483..3ed0d11483 100644
--- a/src/mainboard/dell/optiplex_9010/smihandler.c
+++ b/src/mainboard/dell/snb_ivb_workstations/smihandler.c
diff --git a/src/mainboard/dell/optiplex_9010/devicetree.cb b/src/mainboard/dell/snb_ivb_workstations/variants/baseboard/devicetree.cb
index ef0a0e3174..e614f1e523 100644
--- a/src/mainboard/dell/optiplex_9010/devicetree.cb
+++ b/src/mainboard/dell/snb_ivb_workstations/variants/baseboard/devicetree.cb
@@ -10,11 +10,10 @@ chip northbridge/intel/sandybridge
end
end
device domain 0 on
- subsystemid 0x1028 0x052c inherit
device pci 00.0 on end # Host bridge Host bridge
device pci 01.0 on # PEG1 (blue slot1)
- smbios_slot_desc "0xB6" "4" "SLOT1" "0x0D"
+ smbios_slot_desc "SlotTypePciExpressGen3X16" "SlotLengthLong" "SLOT1" "SlotDataBusWidth16X"
end
device pci 02.0 on end # Internal graphics VGA controller
device pci 06.0 off end # PEG2
@@ -30,7 +29,6 @@ chip northbridge/intel/sandybridge
register "gen4_dec" = "0x001c0901"
register "pcie_port_coalesce" = "true"
register "sata_interface_speed_support" = "0x3"
- register "sata_port_map" = "0x7"
register "spi_lvscc" = "0x2005"
register "spi_uvscc" = "0x2005"
register "superspeed_capable_ports" = "0x0000000f"
@@ -48,12 +46,10 @@ chip northbridge/intel/sandybridge
device pci 1c.1 off end # PCIe Port #2
device pci 1c.2 off end # PCIe Port #3
device pci 1c.3 off end # PCIe Port #4
- device pci 1c.4 on # PCIe Port #5
- smbios_slot_desc "0xB6" "4" "SLOT2" "0x0A"
- end
- device pci 1c.5 on end # PCIe Port #6
- device pci 1c.6 on end # PCIe Port #7
- device pci 1c.7 on end # PCIe Port #8
+ device pci 1c.4 off end # PCIe Port #5
+ device pci 1c.5 off end # PCIe Port #6
+ device pci 1c.6 off end # PCIe Port #7
+ device pci 1c.7 off end # PCIe Port #8
device pci 1d.0 on end # USB2 EHCI #1
device pci 1e.0 off end # PCI bridge
device pci 1f.0 on # LPC bridge
diff --git a/src/mainboard/dell/optiplex_9010/sch5545_ec.h b/src/mainboard/dell/snb_ivb_workstations/variants/baseboard/include/baseboard/sch5545_ec.h
index 0ca589f9eb..80d978e9db 100644
--- a/src/mainboard/dell/optiplex_9010/sch5545_ec.h
+++ b/src/mainboard/dell/snb_ivb_workstations/variants/baseboard/include/baseboard/sch5545_ec.h
@@ -1,5 +1,8 @@
/* SPDX-License-Identifier: GPL-2.0-only */
+#ifndef SCH5545_BOARD_EC_H
+#define SCH5545_BOARD_EC_H
+
#include <stdint.h>
#define READ_OP 0
@@ -21,8 +24,22 @@ struct ec_val_reg {
uint16_t reg;
};
+enum {
+ TDP_16 = 0x10,
+ TDP_32 = 0x20,
+ TDP_COMMON = 0xff,
+};
+
+typedef struct ec_val_reg_tdp {
+ uint8_t val;
+ uint16_t reg;
+ uint8_t tdp;
+} ec_chassis_tdp_t;
+
uint16_t sch5545_get_ec_fw_version(void);
void sch5545_update_ec_firmware(uint16_t ec_version);
void sch5545_ec_early_init(void);
void sch5545_ec_hwm_early_init(void);
void sch5545_ec_hwm_init(void *unused);
+
+#endif // SCH5545_BOARD_EC_H
diff --git a/src/mainboard/dell/optiplex_9010/data.vbt b/src/mainboard/dell/snb_ivb_workstations/variants/optiplex_9010_sff/data.vbt
index d1a95e8632..d1a95e8632 100644
--- a/src/mainboard/dell/optiplex_9010/data.vbt
+++ b/src/mainboard/dell/snb_ivb_workstations/variants/optiplex_9010_sff/data.vbt
Binary files differ
diff --git a/src/mainboard/dell/optiplex_9010/hda_verb.c b/src/mainboard/dell/snb_ivb_workstations/variants/optiplex_9010_sff/hda_verb.c
index eab4ba9053..eab4ba9053 100644
--- a/src/mainboard/dell/optiplex_9010/hda_verb.c
+++ b/src/mainboard/dell/snb_ivb_workstations/variants/optiplex_9010_sff/hda_verb.c
diff --git a/src/mainboard/dell/snb_ivb_workstations/variants/optiplex_9010_sff/include/variant/sch5545_ec_tables.h b/src/mainboard/dell/snb_ivb_workstations/variants/optiplex_9010_sff/include/variant/sch5545_ec_tables.h
new file mode 100644
index 0000000000..02096b7edb
--- /dev/null
+++ b/src/mainboard/dell/snb_ivb_workstations/variants/optiplex_9010_sff/include/variant/sch5545_ec_tables.h
@@ -0,0 +1,237 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#ifndef SCH5545_BOARD_EC_TABLE_H
+#define SCH5545_BOARD_EC_TABLE_H
+
+#include <baseboard/sch5545_ec.h>
+
+static const ec_chassis_tdp_t ec_hwm_chassis3[] = {
+ { 0x33, 0x0005, TDP_COMMON },
+ { 0x2f, 0x0018, TDP_COMMON },
+ { 0x2f, 0x0019, TDP_COMMON },
+ { 0x2f, 0x001a, TDP_COMMON },
+ { 0x00, 0x0080, TDP_COMMON },
+ { 0x00, 0x0081, TDP_COMMON },
+ { 0xbb, 0x0083, TDP_COMMON },
+ { 0x8a, 0x0085, TDP_16 },
+ { 0x2c, 0x0086, TDP_16 },
+ { 0x66, 0x008a, TDP_16 },
+ { 0x5b, 0x008b, TDP_16 },
+ { 0x65, 0x0090, TDP_COMMON },
+ { 0x70, 0x0091, TDP_COMMON },
+ { 0x86, 0x0092, TDP_COMMON },
+ { 0xa4, 0x0096, TDP_COMMON },
+ { 0xa4, 0x0097, TDP_COMMON },
+ { 0xa4, 0x0098, TDP_COMMON },
+ { 0xa4, 0x009b, TDP_COMMON },
+ { 0x0e, 0x00a0, TDP_COMMON },
+ { 0x0e, 0x00a1, TDP_COMMON },
+ { 0x7c, 0x00ae, TDP_COMMON },
+ { 0x86, 0x00af, TDP_COMMON },
+ { 0x95, 0x00b0, TDP_COMMON },
+ { 0x9a, 0x00b3, TDP_COMMON },
+ { 0x08, 0x00b6, TDP_COMMON },
+ { 0x08, 0x00b7, TDP_COMMON },
+ { 0x64, 0x00ea, TDP_COMMON },
+ { 0xff, 0x00ef, TDP_COMMON },
+ { 0x15, 0x00f8, TDP_COMMON },
+ { 0x00, 0x00f9, TDP_COMMON },
+ { 0x30, 0x00f0, TDP_COMMON },
+ { 0x01, 0x00fd, TDP_COMMON },
+ { 0x88, 0x01a1, TDP_COMMON },
+ { 0x08, 0x01a2, TDP_COMMON },
+ { 0x08, 0x01b1, TDP_COMMON },
+ { 0x94, 0x01be, TDP_COMMON },
+ { 0x94, 0x0280, TDP_16 },
+ { 0x11, 0x0281, TDP_16 },
+ { 0x03, 0x0282, TDP_COMMON },
+ { 0x0a, 0x0283, TDP_COMMON },
+ { 0x80, 0x0284, TDP_COMMON },
+ { 0x03, 0x0285, TDP_COMMON },
+ { 0x68, 0x0288, TDP_16 },
+ { 0x10, 0x0289, TDP_16 },
+ { 0x03, 0x028a, TDP_COMMON },
+ { 0x0a, 0x028b, TDP_COMMON },
+ { 0x80, 0x028c, TDP_COMMON },
+ { 0x03, 0x028d, TDP_COMMON },
+};
+
+static const ec_chassis_tdp_t ec_hwm_chassis4[] = {
+ { 0x33, 0x0005, TDP_COMMON },
+ { 0x2f, 0x0018, TDP_COMMON },
+ { 0x2f, 0x0019, TDP_COMMON },
+ { 0x2f, 0x001a, TDP_COMMON },
+ { 0x00, 0x0080, TDP_COMMON },
+ { 0x00, 0x0081, TDP_COMMON },
+ { 0xbb, 0x0083, TDP_COMMON },
+ { 0x99, 0x0085, TDP_32 },
+ { 0x98, 0x0085, TDP_16 },
+ { 0xbc, 0x0086, TDP_32 },
+ { 0x1c, 0x0086, TDP_16 },
+ { 0x39, 0x008a, TDP_32 },
+ { 0x3d, 0x008a, TDP_16 },
+ { 0x40, 0x008b, TDP_32 },
+ { 0x43, 0x008b, TDP_16 },
+ { 0x68, 0x0090, TDP_COMMON },
+ { 0x5e, 0x0091, TDP_COMMON },
+ { 0x86, 0x0092, TDP_COMMON },
+ { 0xa4, 0x0096, TDP_COMMON },
+ { 0xa4, 0x0097, TDP_COMMON },
+ { 0xa4, 0x0098, TDP_COMMON },
+ { 0xa4, 0x009b, TDP_COMMON },
+ { 0x0c, 0x00a0, TDP_COMMON },
+ { 0x0c, 0x00a1, TDP_COMMON },
+ { 0x72, 0x00ae, TDP_COMMON },
+ { 0x7c, 0x00af, TDP_COMMON },
+ { 0x9a, 0x00b0, TDP_COMMON },
+ { 0x7c, 0x00b3, TDP_COMMON },
+ { 0x08, 0x00b6, TDP_COMMON },
+ { 0x08, 0x00b7, TDP_COMMON },
+ { 0x64, 0x00ea, TDP_COMMON },
+ { 0xff, 0x00ef, TDP_COMMON },
+ { 0x15, 0x00f8, TDP_COMMON },
+ { 0x00, 0x00f9, TDP_COMMON },
+ { 0x30, 0x00f0, TDP_COMMON },
+ { 0x01, 0x00fd, TDP_COMMON },
+ { 0x88, 0x01a1, TDP_COMMON },
+ { 0x08, 0x01a2, TDP_COMMON },
+ { 0x08, 0x01b1, TDP_COMMON },
+ { 0x90, 0x01be, TDP_COMMON },
+ { 0x94, 0x0280, TDP_32 },
+ { 0x11, 0x0281, TDP_32 },
+ { 0x68, 0x0280, TDP_16 },
+ { 0x10, 0x0281, TDP_16 },
+ { 0x03, 0x0282, TDP_COMMON },
+ { 0x0a, 0x0283, TDP_COMMON },
+ { 0x80, 0x0284, TDP_COMMON },
+ { 0x03, 0x0285, TDP_COMMON },
+ { 0xa0, 0x0288, TDP_32 },
+ { 0x0f, 0x0289, TDP_32 },
+ { 0xd8, 0x0288, TDP_16 },
+ { 0x0e, 0x0289, TDP_16 },
+ { 0x03, 0x028a, TDP_COMMON },
+ { 0x0a, 0x028b, TDP_COMMON },
+ { 0x80, 0x028c, TDP_COMMON },
+ { 0x03, 0x028d, TDP_COMMON },
+};
+
+static const ec_chassis_tdp_t ec_hwm_chassis5[] = {
+ { 0x33, 0x0005, TDP_COMMON },
+ { 0x2f, 0x0018, TDP_COMMON },
+ { 0x2f, 0x0019, TDP_COMMON },
+ { 0x2f, 0x001a, TDP_COMMON },
+ { 0x00, 0x0080, TDP_COMMON },
+ { 0x00, 0x0081, TDP_COMMON },
+ { 0xbb, 0x0083, TDP_COMMON },
+ { 0x89, 0x0085, TDP_32 },
+ { 0x99, 0x0085, TDP_16 },
+ { 0x9c, 0x0086, TDP_COMMON },
+ { 0x39, 0x008a, TDP_32 },
+ { 0x42, 0x008a, TDP_16 },
+ { 0x6b, 0x008b, TDP_32 },
+ { 0x74, 0x008b, TDP_16 },
+ { 0x5e, 0x0091, TDP_COMMON },
+ { 0x86, 0x0092, TDP_COMMON },
+ { 0xa4, 0x0096, TDP_COMMON },
+ { 0xa4, 0x0097, TDP_COMMON },
+ { 0xa4, 0x0098, TDP_COMMON },
+ { 0xa4, 0x009b, TDP_COMMON },
+ { 0x0c, 0x00a0, TDP_COMMON },
+ { 0x0c, 0x00a1, TDP_COMMON },
+ { 0x7c, 0x00ae, TDP_COMMON },
+ { 0x7c, 0x00af, TDP_COMMON },
+ { 0x9a, 0x00b0, TDP_COMMON },
+ { 0x7c, 0x00b3, TDP_COMMON },
+ { 0x08, 0x00b6, TDP_COMMON },
+ { 0x08, 0x00b7, TDP_COMMON },
+ { 0x64, 0x00ea, TDP_COMMON },
+ { 0xff, 0x00ef, TDP_COMMON },
+ { 0x15, 0x00f8, TDP_COMMON },
+ { 0x00, 0x00f9, TDP_COMMON },
+ { 0x30, 0x00f0, TDP_COMMON },
+ { 0x01, 0x00fd, TDP_COMMON },
+ { 0x88, 0x01a1, TDP_COMMON },
+ { 0x08, 0x01a2, TDP_COMMON },
+ { 0x08, 0x01b1, TDP_COMMON },
+ { 0x90, 0x01be, TDP_COMMON },
+ { 0x94, 0x0280, TDP_32 },
+ { 0x11, 0x0281, TDP_32 },
+ { 0x3c, 0x0280, TDP_16 },
+ { 0x0f, 0x0281, TDP_16 },
+ { 0x03, 0x0282, TDP_COMMON },
+ { 0x0a, 0x0283, TDP_COMMON },
+ { 0x80, 0x0284, TDP_COMMON },
+ { 0x03, 0x0285, TDP_COMMON },
+ { 0x60, 0x0288, TDP_32 },
+ { 0x09, 0x0289, TDP_32 },
+ { 0x98, 0x0288, TDP_16 },
+ { 0x08, 0x0289, TDP_16 },
+ { 0x03, 0x028a, TDP_COMMON },
+ { 0x0a, 0x028b, TDP_COMMON },
+ { 0x80, 0x028c, TDP_COMMON },
+ { 0x03, 0x028d, TDP_COMMON },
+};
+
+static const ec_chassis_tdp_t ec_hwm_chassis6[] = {
+ { 0x33, 0x0005, TDP_COMMON },
+ { 0x2f, 0x0018, TDP_COMMON },
+ { 0x2f, 0x0019, TDP_COMMON },
+ { 0x2f, 0x001a, TDP_COMMON },
+ { 0x00, 0x0080, TDP_COMMON },
+ { 0x00, 0x0081, TDP_COMMON },
+ { 0xbb, 0x0083, TDP_COMMON },
+ { 0x99, 0x0085, TDP_32 },
+ { 0x98, 0x0085, TDP_16 },
+ { 0xdc, 0x0086, TDP_32 },
+ { 0x9c, 0x0086, TDP_16 },
+ { 0x3d, 0x008a, TDP_32 },
+ { 0x43, 0x008a, TDP_16 },
+ { 0x4e, 0x008b, TDP_32 },
+ { 0x47, 0x008b, TDP_16 },
+ { 0x6d, 0x0090, TDP_COMMON },
+ { 0x5f, 0x0091, TDP_32 },
+ { 0x61, 0x0091, TDP_16 },
+ { 0x86, 0x0092, TDP_COMMON },
+ { 0xa4, 0x0096, TDP_COMMON },
+ { 0xa4, 0x0097, TDP_COMMON },
+ { 0xa4, 0x0098, TDP_COMMON },
+ { 0xa4, 0x009b, TDP_COMMON },
+ { 0x0e, 0x00a0, TDP_COMMON },
+ { 0x0e, 0x00a1, TDP_COMMON },
+ { 0x7c, 0x00ae, TDP_COMMON },
+ { 0x7c, 0x00af, TDP_COMMON },
+ { 0x98, 0x00b0, TDP_32 },
+ { 0x9a, 0x00b0, TDP_16 },
+ { 0x9a, 0x00b3, TDP_COMMON },
+ { 0x08, 0x00b6, TDP_COMMON },
+ { 0x08, 0x00b7, TDP_COMMON },
+ { 0x64, 0x00ea, TDP_COMMON },
+ { 0xff, 0x00ef, TDP_COMMON },
+ { 0x15, 0x00f8, TDP_COMMON },
+ { 0x00, 0x00f9, TDP_COMMON },
+ { 0x30, 0x00f0, TDP_COMMON },
+ { 0x01, 0x00fd, TDP_COMMON },
+ { 0x88, 0x01a1, TDP_COMMON },
+ { 0x08, 0x01a2, TDP_COMMON },
+ { 0x08, 0x01b1, TDP_COMMON },
+ { 0x97, 0x01be, TDP_32 },
+ { 0x95, 0x01be, TDP_16 },
+ { 0x68, 0x0280, TDP_32 },
+ { 0x10, 0x0281, TDP_32 },
+ { 0xd8, 0x0280, TDP_16 },
+ { 0x0e, 0x0281, TDP_16 },
+ { 0x03, 0x0282, TDP_COMMON },
+ { 0x0a, 0x0283, TDP_COMMON },
+ { 0x80, 0x0284, TDP_COMMON },
+ { 0x03, 0x0285, TDP_COMMON },
+ { 0xe4, 0x0288, TDP_32 },
+ { 0x0c, 0x0289, TDP_32 },
+ { 0x10, 0x0288, TDP_16 },
+ { 0x0e, 0x0289, TDP_16 },
+ { 0x03, 0x028a, TDP_COMMON },
+ { 0x0a, 0x028b, TDP_COMMON },
+ { 0x80, 0x028c, TDP_COMMON },
+ { 0x03, 0x028d, TDP_COMMON },
+};
+
+#endif // SCH5545_BOARD_EC_TABLE_H
diff --git a/src/mainboard/dell/snb_ivb_workstations/variants/optiplex_9010_sff/overridetree.cb b/src/mainboard/dell/snb_ivb_workstations/variants/optiplex_9010_sff/overridetree.cb
new file mode 100644
index 0000000000..30167f9e9a
--- /dev/null
+++ b/src/mainboard/dell/snb_ivb_workstations/variants/optiplex_9010_sff/overridetree.cb
@@ -0,0 +1,14 @@
+chip northbridge/intel/sandybridge
+ device domain 0 on
+ subsystemid 0x1028 0x052c inherit
+ chip southbridge/intel/bd82x6x # Intel Series 7 Panther Point PCH
+ register "sata_port_map" = "0x7"
+ device pci 1c.4 on # PCIe Port #5
+ smbios_slot_desc "SlotTypePciExpressGen3X16" "SlotLengthLong" "SLOT2" "SlotDataBusWidth4X"
+ end
+ device pci 1c.5 on end # PCIe Port #6
+ device pci 1c.6 on end # PCIe Port #7
+ device pci 1c.7 on end # PCIe Port #8
+ end
+ end
+end