blob: 325c0b897a016b9929c27ac61558a3a6597d112e [file] [log] [blame]
Yann Gautiercaf575b2018-07-24 17:18:19 +02001/*
2 * Copyright (c) 2017-2018, STMicroelectronics - All Rights Reserved
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#include <mmio.h>
8#include <platform_def.h>
9#include <stm32mp1_ddr_helpers.h>
10#include <stm32mp1_rcc.h>
11
12void ddr_enable_clock(void)
13{
14 mmio_setbits_32(RCC_BASE + RCC_DDRITFCR,
15 RCC_DDRITFCR_DDRC1EN |
16 RCC_DDRITFCR_DDRC2EN |
17 RCC_DDRITFCR_DDRPHYCEN |
18 RCC_DDRITFCR_DDRPHYCAPBEN |
19 RCC_DDRITFCR_DDRCAPBEN);
20}