summaryrefslogtreecommitdiff
path: root/include/syscon.h
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2018-12-10 07:15:12 -0500
committerTom Rini <[email protected]>2018-12-10 07:15:12 -0500
commit48d299a799f8e60342f10309dc3d4eb8e4b453a1 (patch)
tree61176a4b76589978db8bc785727924f5af037e5e /include/syscon.h
parent53287a89e90a842f7265446be89c3c6b2aff3271 (diff)
parent532ededd5cbff3d55e8c8e5b6377cec9e90f2152 (diff)
Merge branch 'master' of git://git.denx.de/u-boot-usb
- DWC3 and UDC cleanup
Diffstat (limited to 'include/syscon.h')
-rw-r--r--include/syscon.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/syscon.h b/include/syscon.h
index 2aa73e520af..3df96e32764 100644
--- a/include/syscon.h
+++ b/include/syscon.h
@@ -74,6 +74,19 @@ int syscon_get_by_driver_data(ulong driver_data, struct udevice **devp);
struct regmap *syscon_get_regmap_by_driver_data(ulong driver_data);
/**
+ * syscon_regmap_lookup_by_phandle() - Look up a controller by a phandle
+ *
+ * This operates by looking up the given name in the device (device
+ * tree property) of the device using the system controller.
+ *
+ * @dev: Device using the system controller
+ * @name: Name of property referring to the system controller
+ * @return A pointer to the regmap if found, ERR_PTR(-ve) on error
+ */
+struct regmap *syscon_regmap_lookup_by_phandle(struct udevice *dev,
+ const char *name);
+
+/**
* syscon_get_first_range() - get the first memory range from a syscon regmap
*
* @driver_data: Driver data value to look up