mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-08-14 16:37:05 +02:00
DDR driver for NXP layerscape SoC(s): - lx2160aqds - lx2162aqds - lx2160ardb - Other Board with SoC(s) like ls1046a, ls1043a etc; -- These other boards are not verified yet. Signed-off-by: Rajesh Bhagat <rajesh.bhagat@nxp.com> Signed-off-by: York Sun <york.sun@nxp.com> Signed-off-by: Udit Agarwal <udit.agarwal@nxp.com> Signed-off-by: Pankaj Gupta <pankaj.gupta@nxp.com> Change-Id: Ic84a63cb30eba054f432d479862cd4d1097cbbaf
25 lines
561 B
C
25 lines
561 B
C
/*
|
|
* Copyright 2021 NXP
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*
|
|
*/
|
|
|
|
#ifndef UTILITY_H
|
|
#define UTILITY_H
|
|
|
|
#include <dcfg.h>
|
|
|
|
#if defined(NXP_HAS_CCN504) || defined(NXP_HAS_CCN508)
|
|
#define CCN_HN_F_SAM_CTL 0x8
|
|
#define CCN_HN_F_REGION_SIZE 0x10000
|
|
#endif
|
|
|
|
unsigned long get_ddr_freq(struct sysinfo *sys, int ctrl_num);
|
|
unsigned int get_memory_clk_ps(unsigned long clk);
|
|
unsigned int picos_to_mclk(unsigned long data_rate, unsigned int picos);
|
|
unsigned int get_ddrc_version(const struct ccsr_ddr *ddr);
|
|
void print_ddr_info(struct ccsr_ddr *ddr);
|
|
|
|
#endif
|