mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-05-08 18:41:22 +00:00
stm32mp1: Add DDR support and its security with TZC400
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>
This commit is contained in:
parent
e4f559ff54
commit
10a511ceaa
14 changed files with 1960 additions and 1 deletions
20
drivers/st/ddr/stm32mp1_ddr_helpers.c
Normal file
20
drivers/st/ddr/stm32mp1_ddr_helpers.c
Normal file
|
@ -0,0 +1,20 @@
|
|||
/*
|
||||
* 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);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue