blob: a5838370555097b65517f18bcc0266a1a0e4cb1e [file] [log] [blame]
Tom Rinidec7ea02024-05-20 13:35:03 -06001/* SPDX-License-Identifier: GPL-2.0-or-later */
2/*
3 * (C) Copyright 2022 - Analog Devices, Inc.
4 *
5 * Written and/or maintained by Timesys Corporation
6 *
7 * Contact: Nathan Barrett-Morrison <nathan.morrison@timesys.com>
8 * Contact: Greg Malysa <greg.malysa@timesys.com>
9 */
10
11#ifndef IS43TR16512BL_H
12#define IS43TR16512BL_H
13
14/* DMC0 setup for the EV-21593-SOM and EV-SC594-SOM :
15 * - uses a single 8GB IS43TR16512BL-125KBL DDR3 chip configured for
16 * 800 MHz DCLK.
17 * DMC0 setup for the EV-SC594-SOMS :
18 * - uses a single 4GB IS43TR16256BL-093NBL DDR3 chip configured for
19 * 800 MHz DCLK.
20 */
21#define DMC_DLLCALRDCNT 240
22#define DMC_DATACYC 12
23#define DMC_TRCD 11
24#define DMC_TWTR 6
25#define DMC_TRP 11
26#define DMC_TRAS 28
27#define DMC_TRC 39
28#define DMC_TMRD 4
29#define DMC_TREF 6240
30#define DMC_TRRD 6
31#define DMC_TFAW 32
32#define DMC_TRTP 6
33#define DMC_TWR 12
34#define DMC_TXP 5
35#define DMC_TCKE 4
36#define DMC_CL0 0
37#define DMC_CL123 7
38#define DMC_WRRECOV 6
39#define DMC_MR1_DLLEN 0
40#define DMC_MR1_DIC0 0
41#define DMC_MR1_RTT0 0
42#define DMC_MR1_AL 0
43#define DMC_MR1_DIC1 0
44#define DMC_MR1_RTT1 1
45#define DMC_MR1_WL 0
46#define DMC_MR1_RTT2 0
47#define DMC_MR1_TDQS 0
48#define DMC_MR1_QOFF 0
49#define DMC_WL 3
50#define DMC_RDTOWR 5
51#define DMC_CTL_AL_EN 1
52#if defined(MEM_ISSI_4Gb_DDR3_800MHZ)
53 #define SDR_CHIP_SIZE (ENUM_DMC_CFG_SDRSIZE4G)
54 #define DMC_TRFC 208ul
55#elif defined(MEM_ISSI_8Gb_DDR3_800MHZ)
56 #define SDR_CHIP_SIZE (ENUM_DMC_CFG_SDRSIZE8G)
57 #define DMC_TRFC 280ul
58#else
59 #error "Need to select MEM_ISSI_4Gb_DDR3_800MHZ or MEM_ISSI_8Gb_DDR3_800MHZ"
60#endif
61
62#endif