summaryrefslogtreecommitdiff
path: root/arch/arm/mach-sunxi/dram_sunxi_dw.c
diff options
context:
space:
mode:
authorIcenowy Zheng <icenowy@aosc.xyz>2017-06-03 12:10:23 +0300
committerJagan Teki <jagan@amarulasolutions.com>2017-06-08 20:07:55 +0300
commit72cc987002539b23b0c97321cc2ccfc1b05f48de (patch)
treef9cb13a78a3d502d8fa3c1c3694c3fc37c145c8b /arch/arm/mach-sunxi/dram_sunxi_dw.c
parent7d06e59f73f0d4d2733fe41529cefa264404e0d9 (diff)
downloadu-boot-72cc987002539b23b0c97321cc2ccfc1b05f48de.tar.xz
sunxi: add LPDDR3 DRAM type support for DesignWare-like DRAM controller
Some A64 boards (SoPine and Pinebook production batch) use LPDDR3 DRAM chips. Add support for LPDDR3 DRAM in the DesignWare-like DRAM controller code. Real LPDDR3 chips' support is not added yet in this commit. Signed-off-by: Icenowy Zheng <icenowy@aosc.xyz> Reviewed-by: Jagan Teki <jagan@amarulasolutions.com> Tested-by: Jagan Teki <jagan@amarulasolutions.com>
Diffstat (limited to 'arch/arm/mach-sunxi/dram_sunxi_dw.c')
-rw-r--r--arch/arm/mach-sunxi/dram_sunxi_dw.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-sunxi/dram_sunxi_dw.c b/arch/arm/mach-sunxi/dram_sunxi_dw.c
index 20c3055b7a..78b4ffb9c3 100644
--- a/arch/arm/mach-sunxi/dram_sunxi_dw.c
+++ b/arch/arm/mach-sunxi/dram_sunxi_dw.c
@@ -342,6 +342,8 @@ static void mctl_set_cr(uint16_t socid, struct dram_para *para)
MCTL_CR_DDR3 | MCTL_CR_2T |
#elif defined CONFIG_SUNXI_DRAM_DDR2
MCTL_CR_DDR2 | MCTL_CR_2T |
+#elif defined CONFIG_SUNXI_DRAM_LPDDR3
+ MCTL_CR_LPDDR3 | MCTL_CR_1T |
#else
#error Unsupported DRAM type!
#endif