coreboot-kgpe-d16/src
Zheng Bao 7b13e4ef2a soc/amd/cezanne: Initialize I2C
Add I2C initialization in romstage and ramstage.

TEST=To test the I2C connection on Majolica, which doesn't have SPD
connection, call the function below after i2c_soc_init is called.
     i2c_read_bytes(2, 0x4d, addr, data, 1);/* Read out 1 byte one time */
It can get the register values of TMP432B.

Or
     /* Override EC port in ec.h */
     #define EC_DATA	0x662
     #define EC_SC	0x666
     ec_write(0xA9, 0x40);
     i2c_read_bytes(1, 0x10, addr, data, 2);/* Read out 2 bytes one time */
It can get the register values of CM32181A3OP(ALS).

Change-Id: I3a2a1494b44b68e8d8204fba0c90e769e0256e6f
Signed-off-by: Zheng Bao <fishbaozi@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/51029
Reviewed-by: Martin Roth <martinroth@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2021-03-22 03:44:30 +00:00
..
acpi acpi: Move PCI functions to separate file 2021-03-01 08:26:23 +00:00
arch cbfs: Remove prog_locate() for payloads (SELF and FIT) 2021-03-17 00:13:53 +00:00
commonlib cbfs: Move stage header into a CBFS attribute 2021-03-17 08:10:00 +00:00
console console/vtxprintf.c: Add missing <types.h> 2021-02-16 08:15:26 +00:00
cpu cpu/x86/mp_init.c: Drop unnecessary preprocessor usage 2021-03-19 11:33:51 +00:00
device pciexp_device: Rewrite LTR configuration 2021-03-15 06:04:38 +00:00
drivers cbfs: Replace more instances of cbfs_boot_locate() with newer APIs 2021-03-17 08:10:20 +00:00
ec ec/system76/ec: Add OLED screen toggle 2021-02-27 09:38:19 +00:00
include cpu/x86/mp_init.c: Drop unnecessary preprocessor usage 2021-03-19 11:33:51 +00:00
lib spd_bin: Replace get_spd_cbfs_rdev() with spd_cbfs_map() 2021-03-17 08:10:35 +00:00
mainboard mb/amd/majolica: Set IOMUX to enable I2C2 & I2C3 2021-03-22 03:40:53 +00:00
northbridge nb/intel/haswell: Consolidate memory-down SPD handling 2021-03-19 11:20:06 +00:00
security security/intel/cbnt: Make CBNT compatible with CMOS option table 2021-03-19 11:35:07 +00:00
soc soc/amd/cezanne: Initialize I2C 2021-03-22 03:44:30 +00:00
southbridge sb/intel/lynxpoint: Move S3 check out of `early_pch_init` 2021-03-15 06:00:31 +00:00
superio superio/smsc/sch5545: Add missing <types.h> 2021-02-13 22:06:28 +00:00
vendorcode vc/google/chromeos/acpi: Add type to OIPG declaration 2021-03-18 18:10:35 +00:00
Kconfig southbridge: Ensure common Kconfig gets included last 2021-02-18 10:11:39 +00:00