mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-05-08 18:41:22 +00:00
stm32mp1: use functions to retrieve some peripheral addresses
PWR, RCC, DDRPHYC & DDRCTRL addresses can be retrieved from device tree. Platform asserts the value read from the DT are the SoC addresses. Change-Id: I43f0890b51918a30c87ac067d3780ab27a0f59de Signed-off-by: Yann Gautier <yann.gautier@st.com> Signed-off-by: Etienne Carriere <etienne.carriere@st.com> Signed-off-by: Nicolas LE BAYON <nicolas.le.bayon@st.com>
This commit is contained in:
parent
447b2b137d
commit
7ae58c6ba7
10 changed files with 161 additions and 17 deletions
|
@ -11,7 +11,7 @@
|
|||
|
||||
void ddr_enable_clock(void)
|
||||
{
|
||||
mmio_setbits_32(RCC_BASE + RCC_DDRITFCR,
|
||||
mmio_setbits_32(stm32mp_rcc_base() + RCC_DDRITFCR,
|
||||
RCC_DDRITFCR_DDRC1EN |
|
||||
RCC_DDRITFCR_DDRC2EN |
|
||||
RCC_DDRITFCR_DDRPHYCEN |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue