File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 22 *
33 * Copyright (c) 2019 Linaro Limited.
44 * Copyright (c) 2020 Jeremy LOCHE
5+ * Copyright (c) 2021 Electrolance Solutions
56 *
67 * SPDX-License-Identifier: Apache-2.0
78 */
112113#define SYSCLK_FREQ_MAX 550000000UL
113114#define AHB_FREQ_MAX 275000000UL
114115#define APBx_FREQ_MAX 137500000UL
116+ #elif defined(CONFIG_SOC_STM32H7A3XX ) || defined(CONFIG_SOC_STM32H7A3XXQ )
117+ #define SYSCLK_FREQ_MAX 280000000UL
118+ #define AHB_FREQ_MAX 280000000UL
119+ #define APBx_FREQ_MAX 140000000UL
115120#else
116121/* Default: All h7 SoC with maximum 280MHz SYSCLK */
117122#define SYSCLK_FREQ_MAX 280000000UL
@@ -534,8 +539,12 @@ static int stm32_clock_control_init(const struct device *dev)
534539#if !defined(CONFIG_CPU_CORTEX_M4 )
535540
536541 /* HW semaphore Clock enable */
542+ #if defined(CONFIG_SOC_STM32H7A3XX ) || defined(CONFIG_SOC_STM32H7A3XXQ )
543+ LL_AHB2_GRP1_EnableClock (LL_AHB2_GRP1_PERIPH_HSEM );
544+ #else
537545 LL_AHB4_GRP1_EnableClock (LL_AHB4_GRP1_PERIPH_HSEM );
538546
547+ #endif
539548 z_stm32_hsem_lock (CFG_HW_RCC_SEMID , HSEM_LOCK_DEFAULT_RETRY );
540549
541550 /* Configure Voltage scale to comply with the desired system frequency */
You can’t perform that action at this time.
0 commit comments