1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
|
/*
* LPDDR2 data as per SAMSUNG data sheet
*
* Copyright (C) 2011 Texas Instruments, Inc.
*
* Santosh Shilimkar <santosh.shilimkar@ti.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#include <linux/init.h>
#include <mach/emif.h>
#include "board-tuna.h"
const struct lpddr2_timings lpddr2_samsung_timings_400_mhz = {
.max_freq = 400000000,
.RL = 5,
.tRPab = 14,
.tRCD = 14,
.tWR = 10,
.tRASmin = 30,
.tRRD = 10,
.tWTRx2 = 15,
.tXSR = 140,
.tXPx2 = 15,
.tRFCab = 130,
.tRTPx2 = 15,
.tCKE = 3,
.tCKESR = 15,
.tZQCS = 90,
.tZQCL = 360,
.tZQINIT = 1000,
.tDQSCKMAXx2 = 11,
.tRASmax = 70,
.tFAW = 50,
};
const struct lpddr2_timings lpddr2_samsung_timings_200_mhz = {
.max_freq = 200000000,
.RL = 3,
.tRPab = 14,
.tRCD = 14,
.tWR = 10,
.tRASmin = 30,
.tRRD = 10,
.tWTRx2 = 20,
.tXSR = 140,
.tXPx2 = 15,
.tRFCab = 130,
.tRTPx2 = 15,
.tCKE = 3,
.tCKESR = 15,
.tZQCS = 90,
.tZQCL = 360,
.tZQINIT = 1000,
.tDQSCKMAXx2 = 11,
.tRASmax = 70,
.tFAW = 50,
};
const struct lpddr2_min_tck lpddr2_samsung_min_tck = {
.tRL = 3,
.tRP_AB = 3,
.tRCD = 3,
.tWR = 3,
.tRAS_MIN = 3,
.tRRD = 2,
.tWTR = 2,
.tXP = 2,
.tRTP = 2,
.tCKE = 3,
.tCKESR = 3,
.tFAW = 8
};
struct lpddr2_device_info lpddr2_samsung_4G_S4_dev = {
.device_timings = {
&lpddr2_samsung_timings_200_mhz,
&lpddr2_samsung_timings_400_mhz
},
.min_tck = &lpddr2_samsung_min_tck,
.type = LPDDR2_TYPE_S4,
.density = LPDDR2_DENSITY_4Gb,
.io_width = LPDDR2_IO_WIDTH_32,
.emif_ddr_selfrefresh_cycles = 262144,
};
/*
* LPDDR2 Configuration Data:
* The memory organisation is as below :
* EMIF1 - CS0 - 4 Gb
* EMIF2 - CS0 - 4 Gb
* --------------------
* TOTAL - 8 Gb
*
* Same devices installed on EMIF1 and EMIF2
*/
static __initdata struct emif_device_details emif_devices = {
.cs0_device = &lpddr2_samsung_4G_S4_dev,
};
void __init omap4_tuna_emif_init(void)
{
omap_emif_setup_device_details(&emif_devices, &emif_devices);
}
|