]> git.ipfire.org Git - people/ms/u-boot.git/blame - include/common_timing_params.h
bootstage: Record the time taken to set up driver model
[people/ms/u-boot.git] / include / common_timing_params.h
CommitLineData
58e5e9af 1/*
34e026f9 2 * Copyright 2008-2014 Freescale Semiconductor, Inc.
58e5e9af 3 *
5b8031cc 4 * SPDX-License-Identifier: GPL-2.0
58e5e9af
KG
5 */
6
7#ifndef COMMON_TIMING_PARAMS_H
8#define COMMON_TIMING_PARAMS_H
9
10typedef struct {
11 /* parameters to constrict */
12
0dd38a35
PJ
13 unsigned int tckmin_x_ps;
14 unsigned int tckmax_ps;
0dd38a35
PJ
15 unsigned int trcd_ps;
16 unsigned int trp_ps;
17 unsigned int tras_ps;
34e026f9
YS
18#if defined(CONFIG_SYS_FSL_DDR3) || defined(CONFIG_SYS_FSL_DDR4)
19 unsigned int taamin_ps;
20#endif
0dd38a35 21
34e026f9
YS
22#ifdef CONFIG_SYS_FSL_DDR4
23 unsigned int trfc1_ps;
24 unsigned int trfc2_ps;
25 unsigned int trfc4_ps;
26 unsigned int trrds_ps;
27 unsigned int trrdl_ps;
28 unsigned int tccdl_ps;
29#else
0dd38a35
PJ
30 unsigned int twtr_ps; /* maximum = 63750 ps */
31 unsigned int trfc_ps; /* maximum = 255 ns + 256 ns + .75 ns
58e5e9af
KG
32 = 511750 ps */
33
0dd38a35 34 unsigned int trrd_ps; /* maximum = 63750 ps */
34e026f9
YS
35 unsigned int trtp_ps; /* byte 38, spd->trtp */
36#endif
37 unsigned int twr_ps; /* maximum = 63750 ps */
0dd38a35 38 unsigned int trc_ps; /* maximum = 254 ns + .75 ns = 254750 ps */
58e5e9af
KG
39
40 unsigned int refresh_rate_ps;
7e157b0a 41 unsigned int extended_op_srt;
58e5e9af 42
34e026f9 43#if defined(CONFIG_SYS_FSL_DDR1) || defined(CONFIG_SYS_FSL_DDR2)
0dd38a35
PJ
44 unsigned int tis_ps; /* byte 32, spd->ca_setup */
45 unsigned int tih_ps; /* byte 33, spd->ca_hold */
46 unsigned int tds_ps; /* byte 34, spd->data_setup */
47 unsigned int tdh_ps; /* byte 35, spd->data_hold */
0dd38a35
PJ
48 unsigned int tdqsq_max_ps; /* byte 44, spd->tdqsq */
49 unsigned int tqhs_ps; /* byte 45, spd->tqhs */
34e026f9 50#endif
58e5e9af
KG
51
52 unsigned int ndimms_present;
34e026f9 53 unsigned int lowest_common_spd_caslat;
58e5e9af
KG
54 unsigned int highest_common_derated_caslat;
55 unsigned int additive_latency;
0dd38a35
PJ
56 unsigned int all_dimms_burst_lengths_bitmask;
57 unsigned int all_dimms_registered;
58 unsigned int all_dimms_unbuffered;
59 unsigned int all_dimms_ecc_capable;
58e5e9af
KG
60
61 unsigned long long total_mem;
62 unsigned long long base_address;
9490ff48
YS
63
64 /* DDR3 RDIMM */
65 unsigned char rcw[16]; /* Register Control Word 0-15 */
58e5e9af
KG
66} common_timing_params_t;
67
68#endif