+/* SPDX-License-Identifier: GPL-2.0+ */
/*
* Copyright (c) 2015 Google, Inc
* Written by Simon Glass <sjg@chromium.org>
- *
- * SPDX-License-Identifier: GPL-2.0+
*/
#ifndef __SYSCON_H
#define __SYSCON_H
+#include <dm/ofnode.h>
#include <fdtdec.h>
/**
*/
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