coreboot-kgpe-d16/src/soc/amd/stoneyridge
Felix Held 916cd50edc soc/amd/*/bootblock,early_fch: rework i2c_scl_pins configuration
drive_scl in soc/amd/common/block/i2c/i2c.c writes the raw GPIO MMIO
configuration register and drives it as output, so don't initially
configure the GPIO as input with no pull up/down. This is a preparation
to use the common AMD GPIO access functions instead of the raw register
accesses, since the gpio_set function only sets the output value, but
doesn't reconfigure the direction. Using gpio_output there instead would
reconfigure the direction as well, but would result in doubling the
number of MMIO accesses, so just configure the GPIOs correctly right
away to avoid that.

TEST=The waveform on the SCL pin of I2C3 on a barla/careena Chromebook
looks exactly the same as before during the reset_i2c_peripherals call.
This was probed at the SCL pad of the unpopulated I2C level shifter on
the side that is connected to the SoC.

Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Change-Id: I8e94afe0c755a02abcc722d5094e220d8781f8f5
Reviewed-on: https://review.coreboot.org/c/coreboot/+/56807
Reviewed-by: Raul Rangel <rrangel@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2021-09-08 00:14:17 +00:00
..
acpi soc/amd: factor out ACPI ALIB function numbers to common code 2021-05-08 17:56:10 +00:00
include/soc soc/amd/*/include/soc/gpio: remove GPIO_2_EVENT 2021-08-31 15:27:03 +00:00
acpi.c acpi: Fill fadt->century based on Kconfig 2021-08-19 18:16:04 +00:00
BiosCallOuts.c
bootblock.c soc/amd/*/bootblock,early_fch: rework i2c_scl_pins configuration 2021-09-08 00:14:17 +00:00
chip.c soc/amd/common/block/i2c: Move SoC agnostic parts into common 2021-03-22 03:40:42 +00:00
chip.h soc/amd/common: Introduce I2C driver common to all AMD SoCs 2021-03-22 03:40:23 +00:00
cpu.c soc/amd: move check_mca prototype to soc/amd/common/blocks/include 2021-07-14 21:58:59 +00:00
enable_usbdebug.c
fw_cz.cfg soc/amd: Change FIRMWARE_LOCATE to FIRMWARE_LOCATION 2020-11-04 09:42:18 +00:00
fw_st.cfg soc/amd: Change FIRMWARE_LOCATE to FIRMWARE_LOCATION 2020-11-04 09:42:18 +00:00
gpio.c soc/amd: remove special GPIO_2 override soc_gpio_hook 2021-04-08 16:47:27 +00:00
i2c.c soc/amd/common/block/i2c: Move SoC agnostic parts into common 2021-03-22 03:40:42 +00:00
Kconfig src/*: Specify type of DIMM_SPD_SIZE once 2021-09-03 00:10:33 +00:00
Makefile.inc soc/amd: move SMM finalization to common code 2021-02-19 22:11:30 +00:00
mca.c soc/amd/stoneyridge/mca: implement and use mca_has_expected_bank_count 2021-07-15 17:04:28 +00:00
memmap.c soc/amd: fully commonize clear_tvalid 2021-02-11 02:49:34 +00:00
monotonic_timer.c
northbridge.c cpu/x86/lapic: Replace LOCAL_APIC_ADDR references 2021-06-11 07:11:43 +00:00
psp.c include/cpu/amd/msr: rename MSR_PSP_ADDR to PSP_ADDR_MSR 2021-02-19 13:20:16 +00:00
reset.c soc/amd/stoneyridge/reset: use port and bit defines from cf9_reset.h 2020-12-10 16:00:55 +00:00
romstage.c soc/amd/stoneyridge: Create chipset_power_state in romstage 2021-02-06 07:17:05 +00:00
sata.c
smbus_spd.c soc/amd/common: Refactor SMBus base arguments 2020-12-15 18:50:13 +00:00
smihandler.c soc/amd/stoneyridge/smihandler: sort includes alphabetically 2021-03-10 19:18:03 +00:00
southbridge.c soc/amd: Show SPI settings in bootblock 2021-08-30 18:54:16 +00:00
tsc_freq.c
uart.c soc/amd/stoneyridge: use SOC_AMD_COMMON_BLOCK_UART 2021-01-14 15:00:55 +00:00
usb.c src: Use pci_dev_ops_pci where applicable 2020-06-06 20:36:51 +00:00