diff options
Diffstat (limited to 'include/syscon.h')
-rw-r--r-- | include/syscon.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/syscon.h b/include/syscon.h index d3261aae06..2aa73e520a 100644 --- a/include/syscon.h +++ b/include/syscon.h @@ -7,6 +7,7 @@ #ifndef __SYSCON_H #define __SYSCON_H +#include <dm/ofnode.h> #include <fdtdec.h> /** @@ -81,4 +82,11 @@ struct regmap *syscon_get_regmap_by_driver_data(ulong driver_data); */ void *syscon_get_first_range(ulong driver_data); +/** + * syscon_node_to_regmap - get regmap from syscon + * + * @node: Device node of syscon + */ +struct regmap *syscon_node_to_regmap(ofnode node); + #endif |