mb/google/brya/var/orisa: Update Type C DisplayPort HPD Configuration
[coreboot2.git] / src / soc / amd / phoenix / espi_util.c
blobffc8169a547c6754bc3be8713ac8e3d244944f71
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <amdblocks/spi.h>
4 #include <soc/espi.h>
5 #include <types.h>
7 #define ESPI_CNTRL_REGISTER 0x10 /* SPI register, not eSPI register! */
8 #define LOCK_SPIX10_BIT2 BIT(3)
9 #define ESPI_MUX_SPI1 BIT(2)
10 #define ROM_ADDR_WR_PROT BIT(1)
11 #define DIS_ESPI_MASCTL_REG_WR BIT(0)
13 void espi_switch_to_spi1_pads(void)
15 uint8_t reg = spi_read8(ESPI_CNTRL_REGISTER);
17 reg |= ESPI_MUX_SPI1;
19 spi_write8(ESPI_CNTRL_REGISTER, reg);