2 * DDR addressing details and AC timing parameters from JEDEC specs
4 * Copyright (C) 2012 Texas Instruments, Inc.
6 * Aneesh V <aneesh@ti.com>
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
13 #include <memory/jedec_ddr.h>
14 #include <linux/module.h>
16 /* LPDDR2 addressing details from JESD209-2 section 2.4 */
17 const struct lpddr2_addressing
18 lpddr2_jedec_addressing_table
[NUM_DDR_ADDR_TABLE_ENTRIES
] = {
19 {B4
, T_REFI_15_6
, T_RFC_90
}, /* 64M */
20 {B4
, T_REFI_15_6
, T_RFC_90
}, /* 128M */
21 {B4
, T_REFI_7_8
, T_RFC_90
}, /* 256M */
22 {B4
, T_REFI_7_8
, T_RFC_90
}, /* 512M */
23 {B8
, T_REFI_7_8
, T_RFC_130
}, /* 1GS4 */
24 {B8
, T_REFI_3_9
, T_RFC_130
}, /* 2GS4 */
25 {B8
, T_REFI_3_9
, T_RFC_130
}, /* 4G */
26 {B8
, T_REFI_3_9
, T_RFC_210
}, /* 8G */
27 {B4
, T_REFI_7_8
, T_RFC_130
}, /* 1GS2 */
28 {B4
, T_REFI_3_9
, T_RFC_130
}, /* 2GS2 */
30 EXPORT_SYMBOL_GPL(lpddr2_jedec_addressing_table
);
32 /* LPDDR2 AC timing parameters from JESD209-2 section 12 */
33 const struct lpddr2_timings
34 lpddr2_jedec_timings
[NUM_DDR_TIMING_TABLE_ENTRIES
] = {
35 /* Speed bin 400(200 MHz) */
37 .max_freq
= 200000000,
54 .tDQSCK_max_derated
= 6000,
56 /* Speed bin 533(266 MHz) */
58 .max_freq
= 266666666,
75 .tDQSCK_max_derated
= 6000,
77 /* Speed bin 800(400 MHz) */
79 .max_freq
= 400000000,
96 .tDQSCK_max_derated
= 6000,
98 /* Speed bin 1066(533 MHz) */
100 .max_freq
= 533333333,
101 .min_freq
= 10000000,
116 .tRAS_max_ns
= 70000,
117 .tDQSCK_max_derated
= 5620,
120 EXPORT_SYMBOL_GPL(lpddr2_jedec_timings
);
122 const struct lpddr2_min_tck lpddr2_jedec_min_tck
= {
135 EXPORT_SYMBOL_GPL(lpddr2_jedec_min_tck
);