coreboot/src
Aaron Durbin 514aa18b00 UPSTREAM: soc/intel/common/lpss_i2c: simplify API and use common config structure
The apollolake and skylake had duplicate stanzas of code for
initializing the i2c buses. Additionally, they also had very
similar structures for providing settings for the i2c speed
control. Introduce a new struct lpss_i2c_bus_config and
utilize it in both apollolake and skylake thereby removing
the need for SoC-specific structres. The new structure is
used for initializing a bus fully as the lpss i2c API is
simplified in that lpss_i2c_init() is only required to be
called. The struct lpss_i2c_bus_config structure is passed
in for both initializing and filling in the SSDT information.
The formerly exposed functions are made static to reduce the
external API exposure.

BUG=chrome-os-partner:58889
BRANCH=None
TEST=None

Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: https://review.coreboot.org/17348
Reviewed-by: Furquan Shaikh <furquan@google.com>
Tested-by: build bot (Jenkins)
Reviewed-by: Duncan Laurie <dlaurie@chromium.org>

Change-Id: Ib4fa8a7a4de052da75c778a7658741a5a8e0e6b9
Reviewed-on: https://chromium-review.googlesource.com/411423
Commit-Ready: Furquan Shaikh <furquan@chromium.org>
Tested-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
2016-11-14 19:58:28 -08:00
..
acpi UPSTREAM: src/acpi: Capitalize ACPI and SATA 2016-08-04 23:37:57 -07:00
arch UPSTREAM: ACPI S3: Remove HIGH_MEMORY_SAVE where possible 2016-11-10 18:31:17 -08:00
commonlib UPSTREAM: commonlib: move DIV_ROUND macros from nvidia/tegra 2016-09-08 17:57:23 -07:00
console UPSTREAM: Revert "[WIP] console/Kconfig: Calculate COM port base addresses only on x86" 2016-10-18 22:15:27 -07:00
cpu UPSTREAM: amd/cpu: Add details to chip names 2016-11-10 18:31:34 -08:00
device UPSTREAM: Kconfig: Update default hex values to start with 0x 2016-10-04 00:32:40 -07:00
drivers UPSTREAM: drivers/i2c/wacom: Make the driver more generic 2016-11-10 18:32:54 -08:00
ec UPSTREAM: google/chromeec: Sync ec_commands.h host events with ec codebase 2016-11-10 18:31:53 -08:00
include UPSTREAM: vboot: Add support for recovery hash space in TPM 2016-11-10 18:32:47 -08:00
lib UPSTREAM: TPM: Add TPM driver files to romstage 2016-11-10 18:32:16 -08:00
mainboard UPSTREAM: soc/intel/skylake: move i2c voltage config to own variable 2016-11-14 19:58:26 -08:00
northbridge UPSTREAM: nb/amd/amdmct/mct: Remove commented code 2016-11-10 18:31:31 -08:00
soc UPSTREAM: soc/intel/common/lpss_i2c: simplify API and use common config structure 2016-11-14 19:58:28 -08:00
southbridge UPSTREAM: southbridge/amd: Remove debug echo when building PI 2016-11-10 18:32:07 -08:00
superio UPSTREAM: winbond/w83627ehg: Remove unnecessary value 2016-10-19 14:06:51 -07:00
vboot UPSTREAM: vboot: Add support for recovery hash space in TPM 2016-11-10 18:32:47 -08:00
vendorcode UPSTREAM: vendorcode/google: add common smbios mainboard version support 2016-11-10 18:31:13 -08:00
Kconfig UPSTREAM: ACPI S3: Remove HIGH_MEMORY_SAVE where possible 2016-11-10 18:31:17 -08:00