1 /* 2 * Copyright (c) 2017-2019, STMicroelectronics - All Rights Reserved 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 7 #include <platform_def.h> 8 9 #include <drivers/st/stm32mp1_ddr_helpers.h> 10 #include <lib/mmio.h> 11 ddr_enable_clock(void)12void ddr_enable_clock(void) 13 { 14 stm32mp1_clk_rcc_regs_lock(); 15 16 mmio_setbits_32(stm32mp_rcc_base() + RCC_DDRITFCR, 17 RCC_DDRITFCR_DDRC1EN | 18 RCC_DDRITFCR_DDRC2EN | 19 RCC_DDRITFCR_DDRPHYCEN | 20 RCC_DDRITFCR_DDRPHYCAPBEN | 21 RCC_DDRITFCR_DDRCAPBEN); 22 23 stm32mp1_clk_rcc_regs_unlock(); 24 } 25