From 0e545b252da4bf0f017b29572cfc4e2d80db313b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20=C5=BBygowski?= Date: Sun, 20 Feb 2022 23:17:19 +0100 Subject: mb/dell/optiplex_9010: Fix chassis types MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Discovered this chassis identification number on Dell Precision T1650 which is much OptiPlex 9010 alike. Precision T1650 is a Mid Tower (MT) chassis. Signed-off-by: Michał Żygowski Change-Id: I2266fe39606b947a3d30a9462377fd56c39c2fa7 Reviewed-on: https://review.coreboot.org/c/coreboot/+/62209 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth --- src/mainboard/dell/optiplex_9010/mainboard.c | 5 +---- src/mainboard/dell/optiplex_9010/sch5545_ec.c | 1 + 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'src/mainboard/dell') diff --git a/src/mainboard/dell/optiplex_9010/mainboard.c b/src/mainboard/dell/optiplex_9010/mainboard.c index 8a619c0700..25f9196e9c 100644 --- a/src/mainboard/dell/optiplex_9010/mainboard.c +++ b/src/mainboard/dell/optiplex_9010/mainboard.c @@ -64,16 +64,13 @@ 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/sch5545_ec.c b/src/mainboard/dell/optiplex_9010/sch5545_ec.c index 60cde7d9af..fa78a98b73 100644 --- a/src/mainboard/dell/optiplex_9010/sch5545_ec.c +++ b/src/mainboard/dell/optiplex_9010/sch5545_ec.c @@ -547,6 +547,7 @@ static uint8_t get_chassis_type(void) /* This mapping will determine which EC init sequence to use */ switch (chassis_id) { case 0x0: + case 0x4: return 5; case 0x8: return 4; -- cgit v1.2.3