Marek Vasut | f670cd7 | 2022-05-21 16:56:26 +0200 | [diff] [blame] | 1 | /* 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 Vasut | 9fa78d6 | 2023-02-11 22:49:01 +0100 | [diff] [blame] | 9 | extern struct dram_timing_info dh_imx8mp_dhcom_dram_timing_16g_x32; |
Marek Vasut | f670cd7 | 2022-05-21 16:56:26 +0200 | [diff] [blame] | 10 | extern struct dram_timing_info dh_imx8mp_dhcom_dram_timing_32g_x32; |
| 11 | |
Marek Vasut | eae88ad | 2023-12-16 06:42:29 +0100 | [diff] [blame] | 12 | typedef void (*scrub_func_t)(void); |
| 13 | extern void dh_imx8mp_dhcom_dram_scrub_16g_x32(void); |
| 14 | extern void dh_imx8mp_dhcom_dram_scrub_32g_x32(void); |
| 15 | |
Marek Vasut | f670cd7 | 2022-05-21 16:56:26 +0200 | [diff] [blame] | 16 | u8 dh_get_memcfg(void); |
| 17 | |
Marek Vasut | eae88ad | 2023-12-16 06:42:29 +0100 | [diff] [blame] | 18 | #define DDRC_ECCCFG0_ECC_MODE_MASK 0x7 |
| 19 | |
Marek Vasut | f670cd7 | 2022-05-21 16:56:26 +0200 | [diff] [blame] | 20 | #endif /* __LPDDR4_TIMING_H__ */ |