diff options
author | Simon Glass <sjg@chromium.org> | 2020-09-22 12:45:01 -0600 |
---|---|---|
committer | Bin Meng <bmeng.cn@gmail.com> | 2020-09-25 11:27:15 +0800 |
commit | fd42f263cef9fd6bba9ded76a82d4ac66450e156 (patch) | |
tree | 64bc139fe69c2d50a6200ccda1f1c521e45643b4 /drivers/i2c/acpi_i2c.h | |
parent | bddbaf5edf0e01817f2577295c3d682e4d5fed09 (diff) | |
download | u-boot-fd42f263cef9fd6bba9ded76a82d4ac66450e156.zip u-boot-fd42f263cef9fd6bba9ded76a82d4ac66450e156.tar.gz u-boot-fd42f263cef9fd6bba9ded76a82d4ac66450e156.tar.bz2 |
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>
Diffstat (limited to 'drivers/i2c/acpi_i2c.h')
-rw-r--r-- | drivers/i2c/acpi_i2c.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/i2c/acpi_i2c.h b/drivers/i2c/acpi_i2c.h new file mode 100644 index 0000000..1f4be29 --- /dev/null +++ b/drivers/i2c/acpi_i2c.h @@ -0,0 +1,15 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * Copyright 2019 Google LLC + */ + +#ifndef __ACPI_I2C_H +#define __ACPI_I2C_H + +#include <dm/acpi.h> + +extern struct acpi_ops acpi_i2c_ops; + +int acpi_i2c_ofdata_to_platdata(struct udevice *dev); + +#endif |