summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJerome Brunet <jbrunet@baylibre.com>2024-10-08 10:22:44 +0300
committerJerome Brunet <jbrunet@baylibre.com>2024-10-08 10:22:44 +0300
commit0e2d37252dd525b117bda4e4e0e6fac178ba569d (patch)
treea2b19ab201d86eb3f2404e832e66e7918aa4da23 /include
parent0b2732baa3d24484b87b8f47dc1b836e7d7a6568 (diff)
parent5f79c4b659b50e332ba31ed2c322376e38453bb0 (diff)
downloadlinux-0e2d37252dd525b117bda4e4e0e6fac178ba569d.tar.xz
Merge tag 'reset-amlogic-aux' into clk-meson-next
Pull amlogic auxiliary reset support to continue removing reset drivers from amlogic clocks * tag 'reset-amlogic-aux': reset: amlogic: Fix small whitespace issue reset: amlogic: add auxiliary reset driver support reset: amlogic: split the device core and platform probe reset: amlogic: move drivers to a dedicated directory reset: amlogic: add reset status support reset: amlogic: use reset number instead of register count reset: amlogic: add driver parameters reset: amlogic: make parameters unsigned reset: amlogic: use generic data matching function reset: amlogic: convert driver to regmap
Diffstat (limited to 'include')
-rw-r--r--include/soc/amlogic/reset-meson-aux.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/include/soc/amlogic/reset-meson-aux.h b/include/soc/amlogic/reset-meson-aux.h
new file mode 100644
index 000000000000..d8a15d48c984
--- /dev/null
+++ b/include/soc/amlogic/reset-meson-aux.h
@@ -0,0 +1,23 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#ifndef __SOC_RESET_MESON_AUX_H
+#define __SOC_RESET_MESON_AUX_H
+
+#include <linux/err.h>
+
+struct device;
+struct regmap;
+
+#if IS_ENABLED(CONFIG_RESET_MESON_AUX)
+int devm_meson_rst_aux_register(struct device *dev,
+ struct regmap *map,
+ const char *adev_name);
+#else
+static inline int devm_meson_rst_aux_register(struct device *dev,
+ struct regmap *map,
+ const char *adev_name)
+{
+ return 0;
+}
+#endif
+
+#endif /* __SOC_RESET_MESON_AUX_H */