blob: c4d51174a33f979fd8c547edc948d0daf8b5a999 [file] [log] [blame]
Marek Vasutf670cd72022-05-21 16:56:26 +02001/* SPDX-License-Identifier: GPL-2.0+ */
2/*
3 * Copyright 2022 Marek Vasut <marex@denx.de>
4 */
5
6#ifndef __LPDDR4_TIMING_H__
7#define __LPDDR4_TIMING_H__
8
Marek Vasut9fa78d62023-02-11 22:49:01 +01009extern struct dram_timing_info dh_imx8mp_dhcom_dram_timing_16g_x32;
Marek Vasutf670cd72022-05-21 16:56:26 +020010extern struct dram_timing_info dh_imx8mp_dhcom_dram_timing_32g_x32;
11
Marek Vasuteae88ad2023-12-16 06:42:29 +010012typedef void (*scrub_func_t)(void);
13extern void dh_imx8mp_dhcom_dram_scrub_16g_x32(void);
14extern void dh_imx8mp_dhcom_dram_scrub_32g_x32(void);
15
Marek Vasutf670cd72022-05-21 16:56:26 +020016u8 dh_get_memcfg(void);
17
Marek Vasuteae88ad2023-12-16 06:42:29 +010018#define DDRC_ECCCFG0_ECC_MODE_MASK 0x7
19
Marek Vasutf670cd72022-05-21 16:56:26 +020020#endif /* __LPDDR4_TIMING_H__ */