ARM: imx: ddr: Add missing PHY reset
[oweals/u-boot.git] / include / syscon.h
index 2aa73e520af1a70b02d5f676c65792b2f09bb21f..3df96e32764cd681d88804dc1dd0b9107ac4be0b 100644 (file)
@@ -73,6 +73,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
  *