581738642f
Do not use the global platform_i2c_transfer() function that can only be implemented by a single driver. Instead, make a `struct device` aware transfer() function the only interface function for I2C controller dri- vers to implement. To not force the slave device drivers to be implemented either above generic I2C or specialized SMBus operations, we support SMBus control- lers in the slave device interface too. We start with four simple slave functions: i2c_readb(), i2c_writeb(), i2c_readb_at() and i2c_writeb_at(). They are all compatible to respec- tive SMBus functions. But we keep aliases because it would be weird to force e.g. an I2C EEPROM driver to call smbus_read_byte(). Change-Id: I98386f91bf4799ba3df84ec8bc0f64edd4142818 Signed-off-by: Nico Huber <nico.huber@secunet.com> Reviewed-on: https://review.coreboot.org/20846 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
40 lines
1.3 KiB
Makefile
40 lines
1.3 KiB
Makefile
ramstage-y += device.c
|
|
ramstage-y += root_device.c
|
|
ramstage-y += cpu_device.c
|
|
ramstage-y += device_util.c
|
|
ramstage-$(CONFIG_PCI) += pci_class.c
|
|
ramstage-$(CONFIG_PCI) += pci_device.c
|
|
ramstage-$(CONFIG_HYPERTRANSPORT_PLUGIN_SUPPORT) += hypertransport.c
|
|
ramstage-$(CONFIG_PCIX_PLUGIN_SUPPORT) += pcix_device.c
|
|
ramstage-$(CONFIG_PCIEXP_PLUGIN_SUPPORT) += pciexp_device.c
|
|
ramstage-$(CONFIG_CARDBUS_PLUGIN_SUPPORT) += cardbus_device.c
|
|
ramstage-$(CONFIG_AZALIA_PLUGIN_SUPPORT) += azalia_device.c
|
|
ramstage-$(CONFIG_ARCH_RAMSTAGE_X86_32) += pnp_device.c
|
|
ramstage-$(CONFIG_ARCH_RAMSTAGE_X86_64) += pnp_device.c
|
|
ramstage-$(CONFIG_PCI) += pci_ops.c
|
|
ramstage-$(CONFIG_PCI) += pci_early.c
|
|
ramstage-$(CONFIG_PCI) += pci_rom.c
|
|
ramstage-y += smbus_ops.c
|
|
|
|
ifeq ($(CONFIG_AZALIA_PLUGIN_SUPPORT),y)
|
|
ramstage-srcs += src/mainboard/$(MAINBOARDDIR)/hda_verb.c
|
|
endif
|
|
|
|
bootblock-y += device_simple.c
|
|
postcar-y += device_simple.c
|
|
verstage-y += device_simple.c
|
|
romstage-y += device_simple.c
|
|
romstage-$(CONFIG_PCI) += pci_early.c
|
|
|
|
subdirs-y += oprom dram
|
|
|
|
bootblock-$(CONFIG_SOFTWARE_I2C) += software_i2c.c
|
|
verstage-$(CONFIG_SOFTWARE_I2C) += software_i2c.c
|
|
romstage-$(CONFIG_SOFTWARE_I2C) += software_i2c.c
|
|
ramstage-$(CONFIG_SOFTWARE_I2C) += software_i2c.c
|
|
|
|
bootblock-y += i2c.c
|
|
verstage-y += i2c.c
|
|
romstage-y += i2c.c
|
|
ramstage-y += i2c.c
|
|
ramstage-y += i2c_bus.c
|