summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeng Fan <Peng.Fan@freescale.com>2015-08-17 16:11:02 +0800
committerStefano Babic <sbabic@denx.de>2015-09-02 15:34:12 +0200
commit003fa83c437f62f7558a7f7408b7cd7c31c01276 (patch)
tree84cb4873af31e3a213739a859abb93952e1f186c
parent775d591f5d6e9266642c89d731b22263fc07e1c6 (diff)
downloadu-boot-imx-003fa83c437f62f7558a7f7408b7cd7c31c01276.zip
u-boot-imx-003fa83c437f62f7558a7f7408b7cd7c31c01276.tar.gz
u-boot-imx-003fa83c437f62f7558a7f7408b7cd7c31c01276.tar.bz2
imx: mx6: ddr add an entry ddr_type for mx6_ddr_sysinfo
Add ddr_type entry for mx6_ddr_sysinfo. It will be used for differenrate DDR3 and LPDDR2. Introduce an enum type for ddr_type. Signed-off-by: Peng Fan <Peng.Fan@freescale.com> Cc: Stefano Babic <sbabic@denx.de> Cc: Tim Harvey <tharvey@gateworks.com>
-rw-r--r--arch/arm/include/asm/arch-mx6/mx6-ddr.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-mx6/mx6-ddr.h b/arch/arm/include/asm/arch-mx6/mx6-ddr.h
index b7bae7b..806fafb 100644
--- a/arch/arm/include/asm/arch-mx6/mx6-ddr.h
+++ b/arch/arm/include/asm/arch-mx6/mx6-ddr.h
@@ -30,6 +30,11 @@
#endif /* CONFIG_MX6Q */
#else
+enum {
+ DDR_TYPE_DDR3,
+ DDR_TYPE_LPDDR2,
+};
+
/* MMDC P0/P1 Registers */
struct mmdc_p_regs {
u32 mdctl;
@@ -387,6 +392,7 @@ struct mx6_ddr_sysinfo {
u8 rst_to_cke; /* Time from SDE enable to CKE rise */
u8 sde_to_rst; /* Time from SDE enable until DDR reset# is high */
u8 pd_fast_exit;/* enable precharge powerdown fast-exit */
+ u8 ddr_type; /* DDR type: DDR3(0) or LPDDR2(1) */
};
/*