blob: f7d4fdc1016ac7ff213229f7fa3ca072f4df3e73 [file] [log] [blame]
Ying-Chun Liu (PaulLiu)a97107f2021-04-22 04:50:31 +08001/* SPDX-License-Identifier: GPL-2.0+ */
2/*
3 * Copyright 2017 NXP
4 * Copyright 2020 Linaro
5 *
6 */
7
8#ifndef __COMPULAB_DDR_H__
9#define __COMPULAB_DDR_H__
10
11extern struct dram_timing_info ucm_dram_timing_ff020008;
12extern struct dram_timing_info ucm_dram_timing_ff000110;
13extern struct dram_timing_info ucm_dram_timing_01061010;
14
15void spl_dram_init_compulab(void);
16
17#define TCM_DATA_CFG 0x7e0000
18
19struct lpddr4_tcm_desc {
20 unsigned int size;
21 unsigned int sign;
22 unsigned int index;
23 unsigned int count;
24};
25
Fabio Estevam6c2024d2022-04-12 13:05:36 -030026u32 cl_eeprom_get_ddrinfo(void);
27u32 cl_eeprom_set_ddrinfo(u32 ddrinfo);
28u32 cl_eeprom_get_subind(void);
29u32 cl_eeprom_set_subind(u32 subind);
30u32 cl_eeprom_get_osize(void);
Ying-Chun Liu (PaulLiu)a97107f2021-04-22 04:50:31 +080031#endif