mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-05 12:45:42 +00:00
c54473cb25
This commit adds driver model support to software emulated i2c bus driver. This driver supports kernel-style device tree bindings. Fdt properties in use: - compatible - "i2c-gpio" - gpios - data and clock GPIO pin phandles - delay-us - micro seconds delay between GPIOs toggle operations, which is 1/4 of I2C speed clock period. Added: - Config: CONFIG_DM_I2C_GPIO - File: drivers/i2c/i2c-gpio.c - File: doc/device-tree-bindings/i2c/i2c-gpio.txt Driver base code is taken from: drivers/i2c/soft-i2c.c, changes: - use "i2c-gpio" naming - update comments style - move preprocesor macros into functions - add device tree support - add driver model i2c support - code cleanup, - add Kconfig entry Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com> Acked-by: Simon Glass <sjg@chromium.org> Added braces in i2c_gpio_xfer() to fix style nit: Signed-off-by: Simon Glass <sjg@chromium.org>
39 lines
1.5 KiB
Makefile
39 lines
1.5 KiB
Makefile
#
|
|
# (C) Copyright 2000-2007
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
#
|
|
# SPDX-License-Identifier: GPL-2.0+
|
|
#
|
|
obj-$(CONFIG_DM_I2C) += i2c-uclass.o
|
|
obj-$(CONFIG_DM_I2C_COMPAT) += i2c-uclass-compat.o
|
|
obj-$(CONFIG_DM_I2C_GPIO) += i2c-gpio.o
|
|
|
|
obj-$(CONFIG_SYS_I2C_ADI) += adi_i2c.o
|
|
obj-$(CONFIG_I2C_MV) += mv_i2c.o
|
|
obj-$(CONFIG_PCA9564_I2C) += pca9564_i2c.o
|
|
obj-$(CONFIG_TSI108_I2C) += tsi108_i2c.o
|
|
obj-$(CONFIG_U8500_I2C) += u8500_i2c.o
|
|
obj-$(CONFIG_SH_SH7734_I2C) += sh_sh7734_i2c.o
|
|
obj-$(CONFIG_SYS_I2C) += i2c_core.o
|
|
obj-$(CONFIG_SYS_I2C_DAVINCI) += davinci_i2c.o
|
|
obj-$(CONFIG_SYS_I2C_DW) += designware_i2c.o
|
|
obj-$(CONFIG_SYS_I2C_FSL) += fsl_i2c.o
|
|
obj-$(CONFIG_SYS_I2C_FTI2C010) += fti2c010.o
|
|
obj-$(CONFIG_SYS_I2C_IHS) += ihs_i2c.o
|
|
obj-$(CONFIG_SYS_I2C_KONA) += kona_i2c.o
|
|
obj-$(CONFIG_SYS_I2C_LPC32XX) += lpc32xx_i2c.o
|
|
obj-$(CONFIG_SYS_I2C_MVTWSI) += mvtwsi.o
|
|
obj-$(CONFIG_SYS_I2C_MXC) += mxc_i2c.o
|
|
obj-$(CONFIG_SYS_I2C_MXS) += mxs_i2c.o
|
|
obj-$(CONFIG_SYS_I2C_OMAP24XX) += omap24xx_i2c.o
|
|
obj-$(CONFIG_SYS_I2C_OMAP34XX) += omap24xx_i2c.o
|
|
obj-$(CONFIG_SYS_I2C_PPC4XX) += ppc4xx_i2c.o
|
|
obj-$(CONFIG_SYS_I2C_RCAR) += rcar_i2c.o
|
|
obj-$(CONFIG_SYS_I2C_S3C24X0) += s3c24x0_i2c.o
|
|
obj-$(CONFIG_SYS_I2C_SANDBOX) += sandbox_i2c.o i2c-emul-uclass.o
|
|
obj-$(CONFIG_SYS_I2C_SH) += sh_i2c.o
|
|
obj-$(CONFIG_SYS_I2C_SOFT) += soft_i2c.o
|
|
obj-$(CONFIG_SYS_I2C_TEGRA) += tegra_i2c.o
|
|
obj-$(CONFIG_SYS_I2C_UNIPHIER) += i2c-uniphier.o
|
|
obj-$(CONFIG_SYS_I2C_UNIPHIER_F) += i2c-uniphier-f.o
|
|
obj-$(CONFIG_SYS_I2C_ZYNQ) += zynq_i2c.o
|