coreboot/src/mainboard
David Hendricks 602ffd4d75 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-30 18:09:27 -07:00
..
a-trend x86: Unify arch/io.h and arch/romcc_io.h 2013-03-22 00:00:09 +01:00
aaeon GPLv2 notice: Unify all files to just use one space in »MA 02110-1301« 2013-03-01 10:16:08 +01:00
abit x86: Unify arch/io.h and arch/romcc_io.h 2013-03-22 00:00:09 +01:00
advansus x86: Unify arch/io.h and arch/romcc_io.h 2013-03-22 00:00:09 +01:00
advantech x86: Unify arch/io.h and arch/romcc_io.h 2013-03-22 00:00:09 +01:00
amd Partially revert "AMD Inagua: broadcom.c: Add missing prototype for broadcom_init()" 2013-04-03 19:29:30 +02:00
aopen x86: Unify arch/io.h and arch/romcc_io.h 2013-03-22 00:00:09 +01:00
arima x86: Unify arch/io.h and arch/romcc_io.h 2013-03-22 00:00:09 +01:00
artecgroup x86: Unify arch/io.h and arch/romcc_io.h 2013-03-22 00:00:09 +01:00
asi x86: Unify arch/io.h and arch/romcc_io.h 2013-03-22 00:00:09 +01:00
asrock ASRock E350M1: Kconfig: Remove WARNINGS_ARE_ERRORS to treat warnings as errors 2013-04-03 17:20:03 +02:00
asus AMD Hudson boards: Use hudson.h for pm_ioread and delete pmio.h 2013-03-30 14:18:27 +01:00
avalue x86: Unify arch/io.h and arch/romcc_io.h 2013-03-22 00:00:09 +01:00
axus x86: Unify arch/io.h and arch/romcc_io.h 2013-03-22 00:00:09 +01:00
azza x86: Unify arch/io.h and arch/romcc_io.h 2013-03-22 00:00:09 +01:00
bachmann OT200: reset MFGTP7 (backlight pwm) 2013-03-14 16:32:45 +01:00
bcom x86: Unify arch/io.h and arch/romcc_io.h 2013-03-22 00:00:09 +01:00
bifferos x86: Unify arch/io.h and arch/romcc_io.h 2013-03-22 00:00:09 +01:00
biostar x86: Unify arch/io.h and arch/romcc_io.h 2013-03-22 00:00:09 +01:00
broadcom x86: Unify arch/io.h and arch/romcc_io.h 2013-03-22 00:00:09 +01:00
compaq x86: Unify arch/io.h and arch/romcc_io.h 2013-03-22 00:00:09 +01:00
digitallogic x86: Unify arch/io.h and arch/romcc_io.h 2013-03-22 00:00:09 +01:00
eaglelion x86: Unify arch/io.h and arch/romcc_io.h 2013-03-22 00:00:09 +01:00
ecs GPLv2 notice: Unify all files to just use one space in »MA 02110-1301« 2013-03-01 10:16:08 +01:00
emulation x86: Unify arch/io.h and arch/romcc_io.h 2013-03-22 00:00:09 +01:00
getac smi: Update mainboard_smi_gpi() to have 32bit argument 2013-04-30 13:47:43 -07:00
gigabyte x86: Unify arch/io.h and arch/romcc_io.h 2013-03-22 00:00:09 +01:00
google replace device/i2c.h with simpler version 2013-04-30 18:09:27 -07:00
hp x86: Unify arch/io.h and arch/romcc_io.h 2013-03-22 00:00:09 +01:00
ibase Unify and clean up remaining INT15 handlers 2013-04-25 18:13:05 -07:00
ibm x86: Unify arch/io.h and arch/romcc_io.h 2013-03-22 00:00:09 +01:00
iei x86: Unify arch/io.h and arch/romcc_io.h 2013-03-22 00:00:09 +01:00
intel Unify and clean up remaining INT15 handlers 2013-04-25 18:13:05 -07:00
iwave x86: Unify arch/io.h and arch/romcc_io.h 2013-03-22 00:00:09 +01:00
iwill x86: Unify arch/io.h and arch/romcc_io.h 2013-03-22 00:00:09 +01:00
jetway x86: Unify arch/io.h and arch/romcc_io.h 2013-03-22 00:00:09 +01:00
kontron Unify and clean up remaining INT15 handlers 2013-04-25 18:13:05 -07:00
lanner x86: Unify arch/io.h and arch/romcc_io.h 2013-03-22 00:00:09 +01:00
lenovo smi: Update mainboard_smi_gpi() to have 32bit argument 2013-04-30 13:47:43 -07:00
lippert FrontRunner/Toucan-AF: Use SPD read code from F14 wrapper 2013-03-22 01:05:46 +01:00
mitac GPLv2 notice: Unify all files to just use one space in »MA 02110-1301« 2013-03-01 10:16:08 +01:00
msi x86: Unify arch/io.h and arch/romcc_io.h 2013-03-22 00:00:09 +01:00
nec GPLv2 notice: Unify all files to just use one space in »MA 02110-1301« 2013-03-01 10:16:08 +01:00
newisys x86: Unify arch/io.h and arch/romcc_io.h 2013-03-22 00:00:09 +01:00
nokia x86: Unify arch/io.h and arch/romcc_io.h 2013-03-22 00:00:09 +01:00
nvidia x86: Unify arch/io.h and arch/romcc_io.h 2013-03-22 00:00:09 +01:00
pcengines x86: Unify arch/io.h and arch/romcc_io.h 2013-03-22 00:00:09 +01:00
rca x86: Unify arch/io.h and arch/romcc_io.h 2013-03-22 00:00:09 +01:00
roda smi: Update mainboard_smi_gpi() to have 32bit argument 2013-04-30 13:47:43 -07:00
samsung smi: Update mainboard_smi_gpi() to have 32bit argument 2013-04-30 13:47:43 -07:00
siemens x86: Unify arch/io.h and arch/romcc_io.h 2013-03-22 00:00:09 +01:00
soyo x86: Unify arch/io.h and arch/romcc_io.h 2013-03-22 00:00:09 +01:00
sunw x86: Unify arch/io.h and arch/romcc_io.h 2013-03-22 00:00:09 +01:00
supermicro x86: Unify arch/io.h and arch/romcc_io.h 2013-03-22 00:00:09 +01:00
technexion x86: Unify arch/io.h and arch/romcc_io.h 2013-03-22 00:00:09 +01:00
technologic x86: Unify arch/io.h and arch/romcc_io.h 2013-03-22 00:00:09 +01:00
televideo x86: Unify arch/io.h and arch/romcc_io.h 2013-03-22 00:00:09 +01:00
thomson Unify and clean up remaining INT15 handlers 2013-04-25 18:13:05 -07:00
traverse GPLv2 notice: Unify all files to just use one space in »MA 02110-1301« 2013-03-01 10:16:08 +01:00
tyan x86: Unify arch/io.h and arch/romcc_io.h 2013-03-22 00:00:09 +01:00
via x86: Unify arch/io.h and arch/romcc_io.h 2013-03-22 00:00:09 +01:00
winent GPLv2 notice: Unify all files to just use one space in »MA 02110-1301« 2013-03-01 10:16:08 +01:00
wyse GPLv2 notice: Unify all files to just use one space in »MA 02110-1301« 2013-03-01 10:16:08 +01:00
Kconfig Add minimal mainboard support for snow 2012-12-12 06:01:26 +01:00