From e4031c558dcf7cb327a72eaf91450747abd965fa Mon Sep 17 00:00:00 2001 From: Michael Niewöhner Date: Mon, 20 Jul 2020 23:12:47 +0200 Subject: mb/system76/lemp9: gpio: convert the remaining raw pads to macros MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Convert the EC and touchpad interrupt pads from raw to macros. This was done with intelp2m. Signed-off-by: Michael Niewöhner Change-Id: I79d2cca0f300e6daf1c1923a1882e4cc1ffc3c8b Reviewed-on: https://review.coreboot.org/c/coreboot/+/43648 Reviewed-by: Felix Singer Tested-by: build bot (Jenkins) --- src/mainboard/system76/lemp9/gpio.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/mainboard/system76') diff --git a/src/mainboard/system76/lemp9/gpio.h b/src/mainboard/system76/lemp9/gpio.h index 3373c6c0b1..37e358e35b 100644 --- a/src/mainboard/system76/lemp9/gpio.h +++ b/src/mainboard/system76/lemp9/gpio.h @@ -278,8 +278,8 @@ static const struct pad_config gpio_table[] = { PAD_CFG_GPO(GPP_D8, 1, DEEP), // GSPI2 - // SWI# - _PAD_CFG_STRUCT(GPP_D9, 0x40880100, 0x0000), + // EC SWI# + PAD_CFG_GPI_SCI(GPP_D9, NONE, DEEP, LEVEL, INVERT), // DDR_TYPE_D10 (unused; there is only one on-board ram type/model) PAD_NC(GPP_D10, NONE), // BOARD_ID (unused in cb; we already know the device model) @@ -361,10 +361,10 @@ static const struct pad_config gpio_table[] = { PAD_CFG_NF(GPP_E13, NONE, DEEP, NF1), // DDPC_HPD1 / HDMI_HPD PAD_CFG_NF(GPP_E14, NONE, DEEP, NF1), - // SMI# - _PAD_CFG_STRUCT(GPP_E15, 0x42840100, 0x0), - // SCI# - _PAD_CFG_STRUCT(GPP_E16, 0x80880100, 0x0000), + // EC SMI# + PAD_CFG_GPI_SMI(GPP_E15, NONE, DEEP, EDGE_SINGLE, INVERT), + // EC SCI# + PAD_CFG_GPI_SCI(GPP_E16, NONE, PLTRST, LEVEL, INVERT), // EDP_HPD PAD_CFG_NF(GPP_E17, NONE, DEEP, NF1), // NC -- cgit v1.2.3