blob: 508b4a565c942474f4a168c02714bf0e5f622aff [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);
Ying-Chun Liu (PaulLiu)34c0b462023-03-14 02:26:20 +080028u8 cl_eeprom_get_subind(void);
29u8 cl_eeprom_set_subind(u8 subind);
Fabio Estevam6c2024d2022-04-12 13:05:36 -030030u32 cl_eeprom_get_osize(void);
Ying-Chun Liu (PaulLiu)a97107f2021-04-22 04:50:31 +080031#endif