diff options
author | Michael Niewöhner <foss@mniewoehner.de> | 2020-07-20 23:12:47 +0200 |
---|---|---|
committer | Michael Niewöhner <foss@mniewoehner.de> | 2020-09-21 23:52:21 +0000 |
commit | e4031c558dcf7cb327a72eaf91450747abd965fa (patch) | |
tree | 406af0e7050372a94b232a950e85d62c73e4dcef /src/mainboard | |
parent | a45e8403092dc2743eda9518bce02569d8b65424 (diff) |
mb/system76/lemp9: gpio: convert the remaining raw pads to macros
Convert the EC and touchpad interrupt pads from raw to macros. This
was done with intelp2m.
Signed-off-by: Michael Niewöhner <foss@mniewoehner.de>
Change-Id: I79d2cca0f300e6daf1c1923a1882e4cc1ffc3c8b
Reviewed-on: https://review.coreboot.org/c/coreboot/+/43648
Reviewed-by: Felix Singer <felixsinger@posteo.net>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard')
-rw-r--r-- | src/mainboard/system76/lemp9/gpio.h | 12 |
1 files changed, 6 insertions, 6 deletions
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 |