]> git.baikalelectronics.ru Git - uboot.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)
commita33df1132a6f1cee0dc4277e63d8a233d82d4b5e
tree64bc139fe69c2d50a6200ccda1f1c521e45643b4
parent06b5289b6bf20661eed5353e5fc78c6bc53794dd
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