aboutsummaryrefslogtreecommitdiff
path: root/include/i2c.h
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2023-11-02 10:12:33 -0400
committerTom Rini <trini@konsulko.com>2023-11-02 10:12:33 -0400
commit07fe79c93c5caba181f37844ca95fbda4db3f613 (patch)
tree9766b3de49837bae1d4ea6c6b69fc33710333fd2 /include/i2c.h
parentb0c391ce0c01064a96711965e22f5d745e73edc3 (diff)
parent5b6ee512ceb8d990e010646c4fe7b8a3633fad68 (diff)
Merge tag 'i2cfixes-for-v2024-01-rc2' of https://source.denx.de/u-boot/custodians/u-boot-i2c
i2c updates for v2024.01-rc2 - nuvoton: support standard/fast/fast plus mode - bootcount: remove legacy i2c driver and implement DM based version Bugfixes: - designware_i2c: adjust timing calculation SPL probing failed on the StarFive VisionFive 2 board Heinrich fixed this, by syncing timing calculation with linux implementation.
Diffstat (limited to 'include/i2c.h')
-rw-r--r--include/i2c.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/i2c.h b/include/i2c.h
index ef3820eaba..4e59009cd9 100644
--- a/include/i2c.h
+++ b/include/i2c.h
@@ -538,6 +538,18 @@ int i2c_get_chip_for_busnum(int busnum, int chip_addr, uint offset_len,
struct udevice **devp);
/**
+ * i2c_get_chip_by_phandle() - get a device to use to access a chip
+ * based on a phandle property pointing to it
+ *
+ * @parent: Parent device containing the phandle pointer
+ * @name: Name of phandle property in the parent device node
+ * @devp: Returns pointer to new device or NULL if not found
+ * Return: 0 on success, -ve on failure
+ */
+int i2c_get_chip_by_phandle(const struct udevice *parent, const char *prop_name,
+ struct udevice **devp);
+
+/**
* i2c_chip_of_to_plat() - Decode standard I2C platform data
*
* This decodes the chip address from a device tree node and puts it into