From 91d2f5d5e00564525d91135bb7684e52528b26b0 Mon Sep 17 00:00:00 2001 From: Ronald Claveau Date: Wed, 29 May 2024 23:21:33 +0200 Subject: mainboard/dell: Add new mainboard XPS 8300 (Sandy Bridge) Mainboard is identified as 0Y2MRG. The version tested is with Nvidia dGPU (gfx 560ti). The flash is a 4MiB Winbond W25Q32BVSIG. It can be flashed internally with flashrom. Add a strap on the service mode pin of the mainboard for internal flash. Tested working: - SeaBIOS - All USB ports - SATA - dGPU - Ethernet - Environment control - GPIOs - S3 Sleep mode - WakeOnLan Change-Id: I7d394794fec580bc7aed3f6396ceb47d4a6fd059 Signed-off-by: Ronald Claveau Reviewed-on: https://review.coreboot.org/c/coreboot/+/83104 Tested-by: build bot (Jenkins) Reviewed-by: Felix Singer --- src/mainboard/dell/xps_8300/smihandler.c | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 src/mainboard/dell/xps_8300/smihandler.c (limited to 'src/mainboard/dell/xps_8300/smihandler.c') diff --git a/src/mainboard/dell/xps_8300/smihandler.c b/src/mainboard/dell/xps_8300/smihandler.c new file mode 100644 index 0000000000..f126468fa5 --- /dev/null +++ b/src/mainboard/dell/xps_8300/smihandler.c @@ -0,0 +1,31 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#include +#include +#include +#include +#include + +#define GPIO_DEV PNP_DEV(0x2e, IT8772F_GPIO) + +void mainboard_smi_sleep(u8 slp_typ) +{ + switch (slp_typ) { + case ACPI_S3: + ite_set_3vsbsw(GPIO_DEV, true); + ite_delay_pwrgd3(GPIO_DEV); + it8772f_gpio_led( + GPIO_DEV, + 2 /* set */, + 0x02 /* select */, + 0x01 /* polarity */, + 0x01 /* 1 = pullup */, + 0x01 /* output */, + 0x00 /* 1 = Simple IO function */, + SIO_GPIO_BLINK_GPIO22, + IT8772F_GPIO_BLINK_FREQUENCY_1_HZ); + break; + default: + break; + } +} -- cgit v1.2.3