diff options
author | Adrian Alonso <adrian.alonso@nxp.com> | 2016-01-20 15:16:08 -0600 |
---|---|---|
committer | Ye Li <ye.li@nxp.com> | 2017-04-05 14:04:42 +0800 |
commit | 6857edadd10214c2fd32718eea3605b5bdd98c86 (patch) | |
tree | 2819926b60bf50264ff564c8cd4f69a52d67940f /include | |
parent | 0df826a38b56a9d55f1198c1f4f1b7571cd6ce9e (diff) | |
download | u-boot-imx-6857edadd10214c2fd32718eea3605b5bdd98c86.zip u-boot-imx-6857edadd10214c2fd32718eea3605b5bdd98c86.tar.gz u-boot-imx-6857edadd10214c2fd32718eea3605b5bdd98c86.tar.bz2 |
MLK-12442: imx: mx6qarm2: lpddr2 set dram 2 channel fixed mode
Setup MMDC in two channel fixed mode
Initialize dram banks for two channel fixed mode
DRAM bank = 0x00000000
-> start = 0x10000000
-> size = 0x20000000
DRAM bank = 0x00000001
-> start = 0x80000000
-> size = 0x20000000
Signed-off-by: Adrian Alonso <adrian.alonso@nxp.com>
(cherry picked from commit bf1d8faf1dab7c4245ba7b79ceef6279cff45625)
Diffstat (limited to 'include')
-rw-r--r-- | include/configs/mx6qarm2.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/include/configs/mx6qarm2.h b/include/configs/mx6qarm2.h index 7a9f5ba..81d4fd0 100644 --- a/include/configs/mx6qarm2.h +++ b/include/configs/mx6qarm2.h @@ -29,11 +29,17 @@ #define CONFIG_FEC_XCV_TYPE RGMII #define CONFIG_FEC_MXC_PHYADDR 0 +#if defined(CONFIG_MX6DQ_POP_LPDDR2) +#define CONFIG_DEFAULT_FDT_FILE "imx6q-pop-arm2.dtb" +#else +#define CONFIG_DEFAULT_FDT_FILE "imx6q-arm2.dtb" +#endif + #define CONFIG_EXTRA_ENV_SETTINGS \ "script=boot.scr\0" \ "image=zImage\0" \ "console=ttymxc3\0" \ - "fdt_file=imx6q-arm2.dtb\0" \ + "fdt_file=" CONFIG_DEFAULT_FDT_FILE "\0" \ "fdt_addr=0x18000000\0" \ "fdt_high=0xffffffff\0" \ "initrd_high=0xffffffff\0" \ @@ -111,7 +117,13 @@ #define CONFIG_SYS_MEMTEST_END 0x10010000 /* Physical Memory Map */ +#if defined(CONFIG_MX6DQ_POP_LPDDR2) +#define CONFIG_NR_DRAM_BANKS 2 +#define PHYS_SDRAM_0 MMDC0_ARB_BASE_ADDR +#define PHYS_SDRAM_1 MMDC1_ARB_BASE_ADDR +#else #define CONFIG_NR_DRAM_BANKS 1 +#endif #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR #define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM |