Skip to content

Commit

Permalink
mainboard/clevo/adl-p: Enable PCH UART
Browse files Browse the repository at this point in the history
Fix incorrect native function of PCH UART0 pads.

Signed-off-by: Michał Żygowski <[email protected]>
  • Loading branch information
miczyg1 committed Dec 3, 2024
1 parent 0911762 commit 2d4897f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
3 changes: 3 additions & 0 deletions src/mainboard/clevo/adl-p/devicetree.cb
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ chip soc/intel/alderlake
device generic 0 on end
end
end
device ref uart0 on # BIOS Debug Port
register "serial_io_uart_mode[PchSerialIoIndexUART0]" = "PchSerialIoPci"
end
device ref i2c0 on
# Touchpad I2C bus
register "serial_io_i2c_mode[PchSerialIoIndexI2C0]" = "PchSerialIoPci"
Expand Down
6 changes: 4 additions & 2 deletions src/mainboard/clevo/adl-p/variants/ns50pu/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -419,12 +419,14 @@ static const struct pad_config gpio_table[] = {
/* GPP_H10 - GPIO */
/* DW0: 0x44000102, DW1: 0x00000000 */
/* DW0: (1 << 1) - IGNORED */
PAD_CFG_GPI_TRIG_OWN(GPP_H10, NONE, DEEP, OFF, ACPI),
/* PAD_CFG_GPI_TRIG_OWN(GPP_H10, NONE, DEEP, OFF, ACPI), */
PAD_CFG_NF(GPP_H10, NONE, DEEP, NF2), /* UART0_RXD */

/* GPP_H11 - GPIO */
/* DW0: 0x44000102, DW1: 0x00000000 */
/* DW0: (1 << 1) - IGNORED */
PAD_CFG_GPI_TRIG_OWN(GPP_H11, NONE, DEEP, OFF, ACPI),
/* PAD_CFG_GPI_TRIG_OWN(GPP_H11, NONE, DEEP, OFF, ACPI), */
PAD_CFG_NF(GPP_H11, NONE, DEEP, NF2), /* UART0_TXD */

/* GPP_H12 - DEVSLP0B */
/* DW0: 0x44001500, DW1: 0x00000000 */
Expand Down
4 changes: 2 additions & 2 deletions src/mainboard/clevo/adl-p/variants/ns50pu/gpio_early.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
#include <soc/gpio.h>

static const struct pad_config early_gpio_table[] = {
PAD_CFG_NF(GPP_H10, NONE, DEEP, NF1), // UART0_RX
PAD_CFG_NF(GPP_H11, NONE, DEEP, NF1), // UART0_TX
PAD_CFG_NF(GPP_H10, NONE, DEEP, NF2), // UART0_RX
PAD_CFG_NF(GPP_H11, NONE, DEEP, NF2), // UART0_TX
};

void mainboard_configure_early_gpios(void)
Expand Down
4 changes: 2 additions & 2 deletions src/mainboard/clevo/adl-p/variants/nv40pz/gpio_early.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
static const struct pad_config early_gpio_table[] = {
PAD_CFG_GPO(GPP_A14, 0, DEEP), // DGPU_PWR_EN
PAD_CFG_GPO(GPP_B2, 0, DEEP), // DGPU_RST#_PCH
PAD_CFG_NF(GPP_H10, NONE, DEEP, NF1), // UART2_RXD (actually UART0)
PAD_CFG_NF(GPP_H11, NONE, DEEP, NF1), // UART2_TXD (actually UART0)
PAD_CFG_NF(GPP_H10, NONE, DEEP, NF2), // UART0_RXD
PAD_CFG_NF(GPP_H11, NONE, DEEP, NF2), // UART0_TXD
};

void mainboard_configure_early_gpios(void)
Expand Down

0 comments on commit 2d4897f

Please sign in to comment.