i.MX6: Fix missing DRAM mapping

This commit is contained in:
Gregory Nutt 2016-03-29 17:16:46 -06:00
parent 679a26cdf8
commit 426a6dae74
3 changed files with 9 additions and 1 deletions

View File

@ -93,6 +93,10 @@ config IMX6_SPI2
endmenu # iMX Peripheral Selection
config IMX_DDR_SIZE
int "Installed DRAM size (bytes)"
default 268435456
choice
prompt "i.MX6 Boot Configuration"
default IMX6_BOOT_SDRAM

View File

@ -469,7 +469,7 @@
#define IMX_IPU1_SECSIZE (4*1024*1024) /* 02600000-029fffff 4 MB IPU-1 */
#define IMX_IPU2_SECSIZE (4*1024*1024) /* 02a00000-02dfffff 4 MB IPU-2 */
#define IMX_EIM_SECSIZE MKULONG(CONFIG_IMX_EIM_SIZE) /* 08000000-0fffffff 128 MB EIM - (NOR/SRAM) */
#define IMX_MMDCDDR_SECSIZE MKULONG(CONFIG_IMX_DDR_SIZE /* 10000000-ffffffff 3840 MB MMDC-DDR Controller */
#define IMX_MMDCDDR_SECSIZE MKULONG(CONFIG_IMX_DDR_SIZE) /* 10000000-ffffffff 3840 MB MMDC-DDR Controller */
/* 10000000-7fffffff 1792 MB */
/* Convert size in bytes to number of sections (in Mb). */

View File

@ -151,6 +151,10 @@ const struct section_mapping_s g_section_mapping[] =
{ IMX_MMDCDDR_PSECTION, IMX_MMDCDDR_VSECTION, /* MMDC-DDR Controller */
MMU_STRONGLY_ORDERED, IMX_MMDCDDR_NSECTIONS
},
#else
{ IMX_MMDCDDR_PSECTION, IMX_MMDCDDR_VSECTION, /* MMDC-DDR Controller */
IMX_MMDCDDR_MMUFLAGS, IMX_MMDCDDR_NSECTIONS
},
#endif
/* LCDC Framebuffer. This entry reprograms a part of one of the above