coreboot-kgpe-d16/src/include
David Hendricks cfb73607be replace device/i2c.h with simpler version
The existing header was imported along with the Exynos code and left
mostly unchanged. This is the first patch in a series intended to
replace the imported u-boot I2C API with a much simpler and cleaner
interface:

- We only need to expose i2c_read() and i2c_write() in our public API.
  Everything else is board/chip-dependent and should remain hidden
  away.

- i2c_read and i2c_write functions will take bus number as an arg
  and we'll eliminate i2c_get_bus and i2c_set_bus. Those are prone to
  error and end up cluttering the code since the user needs to save
  the old bus number, set the new one, do the read/write, and restore
  the old value (3 added steps to do a simple transaction).

- Stop setting default values for board-specific things like SPD
  and RTC bus numbers (as if we always have an SPD or RTC on I2C).

- Death to all the trivial inline wrappers. And in case there was any
  doubt, we really don't care about the MPC8xx. Though if we did then
  we would not pollute the public API with its idiosyncrasies.

Change-Id: I4410a3c82ed5a6b2e80e3d8c0163464a9ca7c3b0
Signed-off-by: David Hendricks <dhendrix@chromium.org>
Reviewed-on: http://review.coreboot.org/3043
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
2013-04-09 23:59:34 +02:00
..
boot x86: add rom cache variable MTRR index to tables 2013-03-29 20:09:36 +01:00
console x86: expose console_tx_flush in romstage 2013-03-23 19:36:36 +01:00
cpu mtrr: add rom caching comment about hyperthreads 2013-04-05 21:57:38 +02:00
device replace device/i2c.h with simpler version 2013-04-09 23:59:34 +02:00
pc80 GPLv2 notice: Unify all files to just use one space in »MA 02110-1301« 2013-03-01 10:16:08 +01:00
smp Clean up #ifs 2012-05-08 00:34:34 +02:00
assert.h We call this cache as ram everywhere, so let's call it the same in Kconfig 2010-08-30 17:53:13 +00:00
cbfs.h coreboot: dynamic cbmem requirement 2013-03-22 00:13:42 +01:00
cbfs_core.h Extend CBFS to support arbitrary ROM source media. 2013-01-30 17:58:32 +01:00
cbmem.h lynxpoint: Move ACPI NVS into separate CBMEM table 2013-04-01 23:35:48 +02:00
coverage.h Implement GCC code coverage analysis 2013-01-12 19:09:55 +01:00
delay.h Clean up #ifs 2012-05-08 00:34:34 +02:00
edid.h link/graphics: Add support for EDID 2013-03-20 05:35:50 +01:00
ehci.h Fix usb debug dongle support 2011-10-31 04:06:10 +01:00
elog.h lynxpoint: Fix ELOG logging of power management events 2013-03-21 23:12:11 +01:00
endian.h Extend CBFS to support arbitrary ROM source media. 2013-01-30 17:58:32 +01:00
fallback.h Make set_boot_successful depend on PC80_SYSTEM 2012-11-30 21:33:35 +01:00
gpio.h add gpio.h for generic GPIO-related definitions 2013-02-04 05:38:32 +01:00
inttypes.h x86: provide more C standard environment 2013-03-20 04:20:25 +01:00
ip_checksum.h Add support for the console over Ethernet (through PCI NE2000). 2010-07-16 20:02:09 +00:00
kconfig.h Add config_enabled() from Linux 2012-05-08 00:36:09 +02:00
lib.h x86: Unify arch/io.h and arch/romcc_io.h 2013-03-22 00:00:09 +01:00
memrange.h memrange: add 2 new range_entry routines 2013-03-29 20:11:28 +01:00
reset.h Clean up #ifs 2012-05-08 00:34:34 +02:00
rmodule.h rmodule: add vboot rmodule type 2013-03-22 00:14:50 +01:00
romstage_handoff.h coreboot: dynamic cbmem requirement 2013-03-22 00:13:42 +01:00
sdram_mode.h GPLv2 notice: Unify all files to just use one space in »MA 02110-1301« 2013-03-01 10:16:08 +01:00
smbios.h Extend smbios api to allow runtime change of mainboard serial and version 2012-07-25 14:13:04 +02:00
spd.h GPLv2 notice: Unify all files to just use one space in »MA 02110-1301« 2013-03-01 10:16:08 +01:00
spd_ddr2.h GPLv2 notice: Unify all files to just use one space in »MA 02110-1301« 2013-03-01 10:16:08 +01:00
spi-generic.h spi-generic.h: Adapt include guard 2013-02-11 22:34:17 +01:00
spi_flash.h Whitespace: Replace tab character in license text with two spaces 2013-02-20 23:30:45 +01:00
stddef.h stddef.h: Add standard defines for KiB, MiB, GiB, and TiB 2013-03-16 16:15:01 +01:00
stdlib.h stdlib: add ALIGN_UP and ALIGN_DOWN macros 2013-03-29 19:54:47 +01:00
string.h Fix strcpy() 2013-01-03 00:56:59 +01:00
swab.h Add macros for 64bit byte order swapping 2011-10-21 14:13:19 +02:00
timestamp.h timestamp: add vboot check points 2013-03-22 00:14:18 +01:00
trace.h GPLv2 notice: Unify all files to just use one space in »MA 02110-1301« 2013-03-01 10:16:08 +01:00
types.h GPLv2 notice: Unify all files to just use one space in »MA 02110-1301« 2013-03-01 10:16:08 +01:00
uart.h move uartmem_getbaseaddr() to generic uart header 2013-02-19 19:01:29 +01:00
uart8250.h move uartmem_getbaseaddr() to generic uart header 2013-02-19 19:01:29 +01:00
usb_ch9.h USB Debug Port related license header fixes (trivial). 2010-09-23 18:16:46 +00:00
usbdebug.h USBDEBUG: buffer up to 8 bytes 2012-07-26 15:52:00 +02:00
version.h Rename almost all occurences of LinuxBIOS to coreboot. 2008-01-18 15:08:58 +00:00
watchdog.h watchdog.h: Fix compile time error on disabling watchdog handling 2013-03-12 12:06:43 +01:00