]> git.dujemihanovic.xyz Git - u-boot.git/commit
i2c: Add a generic driver to generate ACPI info
authorSimon Glass <sjg@chromium.org>
Tue, 22 Sep 2020 18:45:01 +0000 (12:45 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Fri, 25 Sep 2020 03:27:15 +0000 (11:27 +0800)
commitfd42f263cef9fd6bba9ded76a82d4ac66450e156
tree64bc139fe69c2d50a6200ccda1f1c521e45643b4
parentbddbaf5edf0e01817f2577295c3d682e4d5fed09
i2c: Add a generic driver to generate ACPI info

Many I2C devices produce roughly the same ACPI data with just things like
the GPIO/interrupt information being different.

This can be handled by a generic driver along with some information in the
device tree.

Add a generic i2c driver for this purpose.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Heiko Schocher <hs@denx.de>
doc/device-tree-bindings/i2c/generic-acpi.txt [new file with mode: 0644]
drivers/i2c/Makefile
drivers/i2c/acpi_i2c.c [new file with mode: 0644]
drivers/i2c/acpi_i2c.h [new file with mode: 0644]
drivers/i2c/i2c-uclass.c
include/acpi/acpi_device.h
include/i2c.h