1 /* SPDX-License-Identifier: BSD-2-Clause */ 2 /* 3 * Copyright (C) STMicroelectronics 2024 - All Rights Reserved 4 */ 5 6 #ifndef __DRIVERS_STM32MP2_RCC_UTIL_H__ 7 #define __DRIVERS_STM32MP2_RCC_UTIL_H__ 8 9 #include <drivers/clk.h> 10 #include <drivers/rstctrl.h> 11 #include <types_ext.h> 12 13 /* Return RCC base address */ 14 vaddr_t stm32_rcc_base(void); 15 16 /* Return the clock handle related to a clock DT binding ID */ 17 struct clk *stm32mp_rcc_clock_id_to_clk(unsigned long clock_id); 18 19 /* Return rstctrl instance related to RCC reset controller DT binding ID */ 20 struct rstctrl *stm32mp_rcc_reset_id_to_rstctrl(unsigned int binding_id); 21 22 #endif /*__DRIVERS_STM32MP2_RCC_UTIL_H__*/ 23