coreboot/src/include/device
David Hendricks 63516ab8fc exynos5: Re-factor I2C code
This re-factors the Exynos5 I2C code to be simpler and use the
new API, and updates users accordingly.

- i2c_read() and i2c_write() functions updated to take bus number
  as an argument.

- Get rid of the EEPROM_ADDR_OVERFLOW stuff in i2c_read() and
  i2c_write(). If a chip needs special handling we should take care
  of it elsewhere, not in every low-level i2c driver.

- All the confusing bus config functions eliminated. No more
  i2c_set_early_config() or i2c_set_bus() or i2c_get_bus(). All this
  is handled automatically when the caller does a transaction and
  specifies the desired bus number.

- i2c_probe() eliminated. We're not a command-line utility.

- Let the compiler place static variables automatically. We don't need
  any of this fancy manual data placement.

- Remove dead code while we're at it. This stuff was ported early on
  and much of it was left commented out in case we needed it. Some
  also includes nested macros which caused gcc to complain.

- Clean up #includes (no more common.h, woohoo!), replace debug() with
  printk().

Change-Id: I8e1f974ea4c6c7db9f33b77bbc4fb16008ed0d2a
Signed-off-by: David Hendricks <dhendrix@chromium.org>
Reviewed-on: http://review.coreboot.org/3044
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
2013-04-30 18:09:27 -07:00
..
agp.h Since some people disapprove of white space cleanups mixed in regular commits 2010-04-27 06:56:47 +00:00
cardbus.h Remove the rest of cardbus_scan_bus. 2010-06-07 17:12:57 +00:00
device.h resources: remove IORESOURCE_[UMA_FB|IGNORE_MTRR] 2013-03-29 19:54:00 +01:00
drm_dp_helper.h FUI: reorganize include files 2013-04-25 11:21:55 -07:00
hypertransport.h Since some people disapprove of white space cleanups mixed in regular commits 2010-04-27 06:56:47 +00:00
hypertransport_def.h Since some people disapprove of white space cleanups mixed in regular commits 2010-04-27 06:56:47 +00:00
i2c.h replace device/i2c.h with simpler version 2013-04-30 18:09:27 -07:00
i915.h FUI: reorganize include files 2013-04-25 11:21:55 -07:00
i915_reg.h FUI: reorganize include files 2013-04-25 11:21:55 -07:00
path.h sconfig: rename lapic_cluster -> cpu_cluster 2013-02-14 07:07:20 +01:00
pci.h x86: Unify arch/io.h and arch/romcc_io.h 2013-03-22 00:00:09 +01:00
pci_def.h Add support for enabling PCIe Common Clock and ASPM 2012-03-29 22:16:07 +02:00
pci_ids.h haswell: add PCI id support 2013-03-14 05:10:13 +01:00
pci_ops.h x86: Unify arch/io.h and arch/romcc_io.h 2013-03-22 00:00:09 +01:00
pci_rom.h Add OPROM mapping support to coreboot 2012-02-07 00:09:58 +01:00
pciexp.h Add support for enabling PCIe Common Clock and ASPM 2012-03-29 22:16:07 +02:00
pcix.h Cosmetics and coding style fixes in devices/*. 2010-10-18 00:00:57 +00:00
pnp.h x86: Unify arch/io.h and arch/romcc_io.h 2013-03-22 00:00:09 +01:00
pnp_def.h This is a general cleanup patch 2010-02-22 06:09:43 +00:00
resource.h resources: introduce IORESOURCE_WRCOMB 2013-03-29 19:54:08 +01:00
smbus.h Cosmetics and coding style fixes in devices/*. 2010-10-18 00:00:57 +00:00
smbus_def.h - Update the device header files 2004-10-14 21:10:23 +00:00