coreboot-kgpe-d16/src/soc/amd/picasso
Karthikeyan Ramasubramanian 0dbea48d46 soc/amd/common: Introduce I2C driver common to all AMD SoCs
I2C driver is replicated in each generation of AMD SoCs. Introduce a
common I2C driver that can be used across all the AMD SoCs. To begin
with, peripheral reset functionality is moved into this common driver.
SoC specific I2C driver passes the SCL pin configuration in order for
the common driver to reset the peripherals. More functionality can be
moved here in subsequent changes.

Also sb_reset_i2c_slaves() is renamed as sb_reset_i2c_peripherals() as
an effort towards using inclusive language.

BUG=None
TEST=Build Dalboz and Grunt. Boot to OS in Dalboz. Ensure that the I2C
peripherals are detected as earlier in Dalboz.
localhost ~ # i2cdetect -y 0
Warning: Can't use SMBus Quick Write command, will skip some addresses
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:
10:
20:
30: -- -- -- -- -- -- -- --
40:
50: 50 51 -- -- -- -- -- -- 58 59 -- -- -- -- -- --
60:
70:
localhost ~ # i2cdetect -y 1
Warning: Can't use SMBus Quick Write command, will skip some addresses
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:
10:
20:
30: -- -- -- -- -- -- -- --
40:
50: UU -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60:
70:

Change-Id: I9f735dcfe8375abdc88ff06e8c4f8a6b741bc085
Signed-off-by: Karthikeyan Ramasubramanian <kramasub@google.com>
Suggested-by: Kyosti Malkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/51404
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Mathew King <mathewk@chromium.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
2021-03-22 03:40:23 +00:00
..
acpi soc/amd,mb/google/,mb/amd: Move sleepstates.asl 2021-03-08 23:30:38 +00:00
include/soc soc/amd/common: Introduce I2C driver common to all AMD SoCs 2021-03-22 03:40:23 +00:00
psp_verstage soc/amd/picasso: fix CBFS MCACHE on Zork 2021-01-28 00:26:47 +00:00
acp.c soc/amd/picasso: move sb_clk_output_48Mhz from acp to fch 2020-12-19 16:29:44 +00:00
acpi.c ACPI: Add acpi_reset_gnvs_for_wake() 2021-02-16 09:28:42 +00:00
agesa_acpi.c soc/amd/picasso/agesa_acpi: add cast before right shift 2021-02-17 15:45:57 +00:00
aoac.c soc/amd/picasso: rename PICASSO_CONSOLE_UART to AMD_SOC_CONSOLE_UART 2020-12-11 00:42:32 +00:00
bootblock.c soc/amd/picasso: factor out write_resume_eip to common code 2020-12-11 00:44:31 +00:00
chip.c soc/amd/picasso/chip: remove unneeded functionality in soc_acpi_name 2021-02-18 01:15:32 +00:00
chip.h soc/amd/common: Introduce I2C driver common to all AMD SoCs 2021-03-22 03:40:23 +00:00
config.c soc/amd/picasso/config: add comment about cfg never being NULL 2020-12-06 19:04:51 +00:00
cpu.c soc/amd: move warm reset flag function prototypes to common code 2021-03-11 15:11:20 +00:00
data_fabric.c soc/amd/picasso/data_fabric: add missing data fabric device function 7 2021-02-24 19:37:12 +00:00
dmi.c
early_fch.c soc/amd/common: Introduce I2C driver common to all AMD SoCs 2021-03-22 03:40:23 +00:00
fch.c soc/amd/picasso/fch: remove comment about ForceStpClkRetry 2021-02-11 17:01:11 +00:00
fsp_params.c soc/amd/picasso/fsp_params.c: GOP: pass VBIOS pointer to FSP 2021-03-13 02:45:00 +00:00
fw.cfg soc/amd: Change FIRMWARE_LOCATE to FIRMWARE_LOCATION 2020-11-04 09:42:18 +00:00
gpio.c soc/amd: Move soc_route_sci to common/blocks/smi/smi_util 2021-02-10 01:31:28 +00:00
graphics.c
i2c.c soc/amd/common: Introduce I2C driver common to all AMD SoCs 2021-03-22 03:40:23 +00:00
Kconfig soc/amd/common: Introduce I2C driver common to all AMD SoCs 2021-03-22 03:40:23 +00:00
Makefile.inc soc/amd/picasso: Fix PSP_SHAREDMEM_BASE 2021-03-10 23:32:46 +00:00
mca.c soc/amd/picasso/mca: don't do out of bounds array accesses 2021-03-14 15:08:09 +00:00
pcie_gpp.c acpi: Move PCI functions to separate file 2021-03-01 08:26:23 +00:00
reset.c soc/amd: move warm reset flag function prototypes to common code 2021-03-11 15:11:20 +00:00
romstage.c mb/google/zork: add UPDM updating function before runing FSP-M 2021-03-10 23:03:59 +00:00
root_complex.c soc/amd: Move root complex SSDT TOM1/TOM2 generation function 2021-02-22 07:29:19 +00:00
sata.c
smihandler.c soc/amd/picasso/smihandler: sort includes alphabetically 2021-03-10 00:31:38 +00:00
smu.c soc/amd/common: factor out SMU code from Picasso 2020-11-15 16:48:38 +00:00
soc_util.c soc/amd/picasso/soc_util.c: Fix typo in macro name 2021-03-19 11:22:32 +00:00
uart.c soc/amd/picasso/uart: move uart_inject_ssdt to common code 2021-02-17 10:35:22 +00:00
xhci.c soc/amd: factor out common SMI/SCI enums and function prototypes 2020-12-02 21:33:14 +00:00