diff options
author | Jerome Brunet <jbrunet@baylibre.com> | 2024-09-10 18:32:51 +0200 |
---|---|---|
committer | Philipp Zabel <p.zabel@pengutronix.de> | 2024-10-01 10:40:32 +0200 |
commit | fb4c31587adfa9cd50661a535bdbfcc4da57ee38 (patch) | |
tree | 54c484fe2533c2b1823b00b98e925f238d4da418 /include/soc | |
parent | reset: amlogic: split the device core and platform probe (diff) | |
download | linux-fb4c31587adfa9cd50661a535bdbfcc4da57ee38.tar.xz linux-fb4c31587adfa9cd50661a535bdbfcc4da57ee38.zip |
reset: amlogic: add auxiliary reset driver support
Add support for the reset controller present in the audio clock
controller of the g12 and sm1 SoC families, using the auxiliary bus.
This is expected to replace the driver currently present directly
within the related clock driver.
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Link: https://lore.kernel.org/r/20240910-meson-rst-aux-v5-9-60be62635d3e@baylibre.com
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Diffstat (limited to 'include/soc')
-rw-r--r-- | include/soc/amlogic/reset-meson-aux.h | 23 |
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 */ |