2022-05-21 14:56:26 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
|
|
/*
|
|
|
|
* Copyright 2022 Marek Vasut <marex@denx.de>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __LPDDR4_TIMING_H__
|
|
|
|
#define __LPDDR4_TIMING_H__
|
|
|
|
|
2023-02-11 21:49:01 +00:00
|
|
|
extern struct dram_timing_info dh_imx8mp_dhcom_dram_timing_16g_x32;
|
2022-05-21 14:56:26 +00:00
|
|
|
extern struct dram_timing_info dh_imx8mp_dhcom_dram_timing_32g_x32;
|
|
|
|
|
2023-12-16 05:42:29 +00:00
|
|
|
typedef void (*scrub_func_t)(void);
|
|
|
|
extern void dh_imx8mp_dhcom_dram_scrub_16g_x32(void);
|
|
|
|
extern void dh_imx8mp_dhcom_dram_scrub_32g_x32(void);
|
|
|
|
|
2022-05-21 14:56:26 +00:00
|
|
|
u8 dh_get_memcfg(void);
|
|
|
|
|
2023-12-16 05:42:29 +00:00
|
|
|
#define DDRC_ECCCFG0_ECC_MODE_MASK 0x7
|
|
|
|
|
2022-05-21 14:56:26 +00:00
|
|
|
#endif /* __LPDDR4_TIMING_H__ */
|