mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-19 19:14:28 +00:00

The DDR driver is under dual license, BSD and GPLv2. The configuration parameters are taken from device tree. Signed-off-by: Yann Gautier <yann.gautier@st.com> Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com> Signed-off-by: Nicolas Le Bayon <nicolas.le.bayon@st.com> Signed-off-by: Lionel Debieve <lionel.debieve@st.com>
20 lines
439 B
C
20 lines
439 B
C
/*
|
|
* Copyright (c) 2017-2018, STMicroelectronics - All Rights Reserved
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#include <mmio.h>
|
|
#include <platform_def.h>
|
|
#include <stm32mp1_ddr_helpers.h>
|
|
#include <stm32mp1_rcc.h>
|
|
|
|
void ddr_enable_clock(void)
|
|
{
|
|
mmio_setbits_32(RCC_BASE + RCC_DDRITFCR,
|
|
RCC_DDRITFCR_DDRC1EN |
|
|
RCC_DDRITFCR_DDRC2EN |
|
|
RCC_DDRITFCR_DDRPHYCEN |
|
|
RCC_DDRITFCR_DDRPHYCAPBEN |
|
|
RCC_DDRITFCR_DDRCAPBEN);
|
|
}
|