Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
emif_plat.h
Go to the documentation of this file.
1 /*
2  * Definitions for TI EMIF device platform data
3  *
4  * Copyright (C) 2012 Texas Instruments, Inc.
5  *
6  * Aneesh V <[email protected]>
7  *
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.
11  */
12 #ifndef __EMIF_PLAT_H
13 #define __EMIF_PLAT_H
14 
15 /* Low power modes - EMIF_PWR_MGMT_CTRL */
16 #define EMIF_LP_MODE_DISABLE 0
17 #define EMIF_LP_MODE_CLOCK_STOP 1
18 #define EMIF_LP_MODE_SELF_REFRESH 2
19 #define EMIF_LP_MODE_PWR_DN 4
20 
21 /* Hardware capabilities */
22 #define EMIF_HW_CAPS_LL_INTERFACE 0x00000001
23 
24 /*
25  * EMIF IP Revisions
26  * EMIF4D - Used in OMAP4
27  * EMIF4D5 - Used in OMAP5
28  */
29 #define EMIF_4D 1
30 #define EMIF_4D5 2
31 
32 /*
33  * PHY types
34  * ATTILAPHY - Used in OMAP4
35  * INTELLIPHY - Used in OMAP5
36  */
37 #define EMIF_PHY_TYPE_ATTILAPHY 1
38 #define EMIF_PHY_TYPE_INTELLIPHY 2
39 
40 /* Custom config requests */
41 #define EMIF_CUSTOM_CONFIG_LPMODE 0x00000001
42 #define EMIF_CUSTOM_CONFIG_TEMP_ALERT_POLL_INTERVAL 0x00000002
43 
44 #ifndef __ASSEMBLY__
45 
63  char manufacturer[10];
64 };
65 
93 };
94 
119  const struct lpddr2_timings *timings;
121  const struct lpddr2_min_tck *min_tck;
125 };
126 #endif /* __ASSEMBLY__ */
127 
128 #endif /* __LINUX_EMIF_H */