blob: 762bdddccc430e8b8302225d1fad4047e3fc04b6 (
plain)
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
|
/*
* PXA988 DDR Settings
*
* This software program is licensed subject to the GNU General Public License
* (GPL).Version 2,June 1991, available at http://www.fsf.org/copyleft/gpl.html
*
* (C) Copyright 2011 Marvell International Ltd.
* All Rights Reserved
*/
#ifndef __PXA988_DDR_H__
#define __PXA988_DDR_H__
struct ddr_setting_entry {
unsigned int reg;
unsigned int val;
};
struct ddr_timing {
/* PXA988 MCK4 controller has 8 timing registers*/
struct ddr_setting_entry entry[8];
};
struct ddr_phy {
/*
* According to DE, we may have to set 4 phy registers
* PHY_CTRL3, PHY_CTRL7, PHY_CTRL8, PHY_CTRL9,
* and the value need to be tuned on real silicon.
* If the value is same for different frequency,
* we could remove this part then.
*/
struct ddr_setting_entry entry[4];
};
struct platform_ddr_setting {
unsigned int ddr_freq;
unsigned int cas_latency;
unsigned int table_idx;
struct ddr_timing timing;
struct ddr_phy phy;
};
#endif
|