summaryrefslogtreecommitdiff
path: root/drivers/clk/stm32/reset-stm32.h
diff options
context:
space:
mode:
authorGabriel Fernandez <gabriel.fernandez@foss.st.com>2022-05-16 10:05:48 +0300
committerStephen Boyd <sboyd@kernel.org>2022-05-21 07:07:48 +0300
commit637cee5ffc71698eecf014a794e8d24a213b3c07 (patch)
tree56e4474ba6c5ba3743e441780c72487162320840 /drivers/clk/stm32/reset-stm32.h
parent722dc8a1d5c8691ab9923b723db4354537206f97 (diff)
downloadlinux-637cee5ffc71698eecf014a794e8d24a213b3c07.tar.xz
clk: stm32: Introduce STM32MP13 RCC drivers (Reset Clock Controller)
This driver manages Reset and Clock of STM32MP13 soc. It uses a clk-stm32-core module to manage stm32 gate, mux and divider for STM32MP13 and for new future soc. All gates, muxes, dividers are identify by an index and information are stored in array (register address, shift, with, flags...) This is useful when we have two clocks with the same gate or when one mux manages two output clocks. Signed-off-by: Gabriel Fernandez <gabriel.fernandez@foss.st.com> Link: https://lore.kernel.org/r/20220516070600.7692-3-gabriel.fernandez@foss.st.com Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/stm32/reset-stm32.h')
-rw-r--r--drivers/clk/stm32/reset-stm32.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/clk/stm32/reset-stm32.h b/drivers/clk/stm32/reset-stm32.h
new file mode 100644
index 000000000000..6eb6ea4b55ab
--- /dev/null
+++ b/drivers/clk/stm32/reset-stm32.h
@@ -0,0 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/*
+ * Copyright (C) STMicroelectronics 2022 - All Rights Reserved
+ * Author: Gabriel Fernandez <gabriel.fernandez@foss.st.com> for STMicroelectronics.
+ */
+
+int stm32_rcc_reset_init(struct device *dev, const struct of_device_id *match,
+ void __iomem *base);