add mobile ddr to Kconfig
authoryangkai <yangkai@ubuntu-fs>
Mon, 11 Apr 2011 03:39:47 +0000 (11:39 +0800)
committeryangkai <yangkai@ubuntu-fs>
Mon, 11 Apr 2011 03:39:47 +0000 (11:39 +0800)
arch/arm/mach-rk29/Kconfig
arch/arm/mach-rk29/ddr.c
arch/arm/mach-rk29/include/mach/ddr.h

index 47da703b2e73086258d5ab3108a9e14c22afde0f..9b3d1f0f38eecd874d4a185139f53a062b9fd828 100755 (executable)
@@ -63,7 +63,12 @@ choice DDR_TYPE
 config DDR_TYPE_DDRII
        bool "DDRII"
        help
-         Spport for DDRII memory
+         Support for DDRII memory
+
+config DDR_TYPE_LPDDR
+       bool "mobile DDR"
+       help
+         Support for mobile DDR, MCP device
 
 config DDR_TYPE_DDR3_800D
        bool "DDR3-800 5-5-5"
@@ -129,7 +134,7 @@ config DDR_TYPE_DDR3_2133N
        bool "DDR3-2133 14-14-14"
 
 config DDR_TYPE_DDR3_DEFAULT
-       bool "DDR3 Type unknow"
+       bool "DDR3 (Type unknow)"
 
 endchoice
 
index d4772f86f12f12e4b3ce170061a42be82817ab07..f0fb89cd7cce27c72dbce4f4f16ad6bac863a873 100755 (executable)
 
 #ifdef CONFIG_DDR_TYPE
 #define DDR3_TYPE CONFIG_DDR_TYPE
+
+#ifdef CONFIG_DDR_TYPE_DDR3_800D
+#define DDR3_TYPE DDR3_800D
+#endif
+
+#ifdef CONFIG_DDR_TYPE_DDR3_800E
+#define DDR3_TYPE DDR3_800E
+#endif
+
+#ifdef CONFIG_DDR_TYPE_DDR3_1066E
+#define DDR3_TYPE DDR3_1066E
+#endif
+
+#ifdef CONFIG_DDR_TYPE_DDR3_1066F
+#define DDR3_TYPE DDR3_1066F
+#endif
+
+#ifdef CONFIG_DDR_TYPE_DDR3_1066G
+#define DDR3_TYPE DDR3_1066G
+#endif
+
+#ifdef CONFIG_DDR_TYPE_DDR3_1333F
+#define DDR3_TYPE DDR3_1333F
+#endif
+
+#ifdef CONFIG_DDR_TYPE_DDR3_1333G
+#define DDR3_TYPE DDR3_1333G
+#endif
+
+#ifdef CONFIG_DDR_TYPE_DDR3_1333H
+#define DDR3_TYPE DDR3_1333H
+#endif
+
+#ifdef CONFIG_DDR_TYPE_DDR3_1333J
+#define DDR3_TYPE DDR3_1333J
+#endif
+
+#ifdef CONFIG_DDR_TYPE_DDR3_1600G
+#define DDR3_TYPE DDR3_1600G
+#endif
+
+#ifdef CONFIG_DDR_TYPE_DDR3_1600H
+#define DDR3_TYPE DDR3_1600H
+#endif
+
+#ifdef CONFIG_DDR_TYPE_DDR3_1600J
+#define DDR3_TYPE DDR3_1600J
+#endif
+
+#ifdef CONFIG_DDR_TYPE_DDR3_1866J
+#define DDR3_TYPE DDR3_1866J
+#endif
+
+#ifdef CONFIG_DDR_TYPE_DDR3_1866K
+#define DDR3_TYPE DDR3_1866K
+#endif
+
+#ifdef CONFIG_DDR_TYPE_DDR3_1866L
+#define DDR3_TYPE DDR3_1866L
+#endif
+
+#ifdef CONFIG_DDR_TYPE_DDR3_1866M
+#define DDR3_TYPE DDR3_1866M
+#endif
+
+#ifdef CONFIG_DDR_TYPE_DDR3_2133K
+#define DDR3_TYPE DDR3_2133K
+#endif
+
+#ifdef CONFIG_DDR_TYPE_DDR3_2133L
+#define DDR3_TYPE DDR3_2133L
+#endif
+
+#ifdef CONFIG_DDR_TYPE_DDR3_2133M
+#define DDR3_TYPE DDR3_2133M
+#endif
+
+#ifdef CONFIG_DDR_TYPE_DDR3_2133N
+#define DDR3_TYPE DDR3_2133N
+#endif
+
+#ifdef CONFIG_DDR_TYPE_DDR3_DEFAULT
+#define DDR3_TYPE DDR3_DEFAULT
+#endif
+
+#if 0
+#ifdef CONFIG_DDR_TYPE_DDRII
+#define DDR3_TYPE DDR_DDRII
+#endif
+
+#ifdef CONFIG_DDR_TYPE_LPDDR
+#define DDR3_TYPE DDR_LPDDR
+#endif
+#endif
 #else
 #define DDR3_TYPE   DDR3_DEFAULT
 #endif
index 3e9cfe1a27b076eba6e353ce61afd4cf97056999..c0e49f038a474bfb13e2cc3cbe8264abe014c6b1 100755 (executable)
 #define DDR3_2133M  (19)    // 13-13-13
 #define DDR3_2133N  (20)    // 14-14-14
 #define DDR3_DEFAULT (21)
+#define DDR_DDRII   (22)
+#define DDR_LPDDR   (23)
 
 /* DDR Controller register struct */
 typedef volatile struct DDR_REG_Tag