From b93d6676d379897d4fdde630fc36d667036f8c8a Mon Sep 17 00:00:00 2001 From: Keith Hui Date: Sun, 14 Apr 2024 19:57:45 -0400 Subject: mb/asus/p8z77-m[_pro]: Correct PCH GPIO config According to a boardview, GPIO27 is connected to the front panel power LED, and should be output. It will be made to blink before entering S3 suspend in a follow-up. Change-Id: I7e47f63999e8c0bfbd37e3273d33c00bc035bcbb Signed-off-by: Keith Hui Reviewed-on: https://review.coreboot.org/c/coreboot/+/81921 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Rudolph --- src/mainboard/asus/p8x7x-series/variants/p8z77-m/gpio.c | 3 ++- src/mainboard/asus/p8x7x-series/variants/p8z77-m_pro/gpio.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src/mainboard/asus/p8x7x-series/variants') diff --git a/src/mainboard/asus/p8x7x-series/variants/p8z77-m/gpio.c b/src/mainboard/asus/p8x7x-series/variants/p8z77-m/gpio.c index c1012e3f82..2c71c6adc4 100644 --- a/src/mainboard/asus/p8x7x-series/variants/p8z77-m/gpio.c +++ b/src/mainboard/asus/p8x7x-series/variants/p8z77-m/gpio.c @@ -50,7 +50,7 @@ static const struct pch_gpio_set1 pch_gpio_set1_direction = { .gpio17 = GPIO_DIR_INPUT, .gpio21 = GPIO_DIR_INPUT, .gpio24 = GPIO_DIR_OUTPUT, - .gpio27 = GPIO_DIR_INPUT, + .gpio27 = GPIO_DIR_OUTPUT, .gpio28 = GPIO_DIR_OUTPUT, .gpio29 = GPIO_DIR_OUTPUT, .gpio31 = GPIO_DIR_OUTPUT, @@ -61,6 +61,7 @@ static const struct pch_gpio_set1 pch_gpio_set1_level = { .gpio12 = GPIO_LEVEL_LOW, .gpio15 = GPIO_LEVEL_LOW, .gpio24 = GPIO_LEVEL_LOW, + .gpio27 = GPIO_LEVEL_HIGH, .gpio28 = GPIO_LEVEL_LOW, .gpio29 = GPIO_LEVEL_HIGH, .gpio31 = GPIO_LEVEL_HIGH, diff --git a/src/mainboard/asus/p8x7x-series/variants/p8z77-m_pro/gpio.c b/src/mainboard/asus/p8x7x-series/variants/p8z77-m_pro/gpio.c index 2455bd6711..da76f78d41 100644 --- a/src/mainboard/asus/p8x7x-series/variants/p8z77-m_pro/gpio.c +++ b/src/mainboard/asus/p8x7x-series/variants/p8z77-m_pro/gpio.c @@ -50,7 +50,7 @@ static const struct pch_gpio_set1 pch_gpio_set1_direction = { .gpio17 = GPIO_DIR_INPUT, .gpio21 = GPIO_DIR_INPUT, .gpio24 = GPIO_DIR_OUTPUT, - .gpio27 = GPIO_DIR_INPUT, + .gpio27 = GPIO_DIR_OUTPUT, .gpio28 = GPIO_DIR_OUTPUT, .gpio29 = GPIO_DIR_OUTPUT, .gpio31 = GPIO_DIR_OUTPUT, @@ -61,6 +61,7 @@ static const struct pch_gpio_set1 pch_gpio_set1_level = { .gpio12 = GPIO_LEVEL_LOW, .gpio15 = GPIO_LEVEL_LOW, .gpio24 = GPIO_LEVEL_LOW, + .gpio27 = GPIO_LEVEL_HIGH, .gpio28 = GPIO_LEVEL_LOW, .gpio29 = GPIO_LEVEL_HIGH, .gpio31 = GPIO_LEVEL_HIGH, -- cgit v1.2.3