diff options
author | Peng Fan <peng.fan@nxp.com> | 2016-02-19 13:26:32 +0800 |
---|---|---|
committer | Ye Li <ye.li@nxp.com> | 2016-03-25 11:24:08 +0800 |
commit | a42cf5f3f7d950615f8c73a50b867b0611b43cc6 (patch) | |
tree | 31b3cbddabecfc5f737df1ef9da76a301612c39d /include | |
parent | fc5236af8ff0dcf8290e185d1ea5ef0a65c3e14b (diff) | |
download | u-boot-imx-a42cf5f3f7d950615f8c73a50b867b0611b43cc6.zip u-boot-imx-a42cf5f3f7d950615f8c73a50b867b0611b43cc6.tar.gz u-boot-imx-a42cf5f3f7d950615f8c73a50b867b0611b43cc6.tar.bz2 |
MLK-12416-2: imx: mx6ul evk: Add PHYS_SDRAM_SIZE and CMA macro
define PHYS_SDRAM_SIZE future usage.
define CMA for kernel usage, default is 320MB, but we do not
have enough memory on 9x9 evk lpddr2 board, so swith to 96MB.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/configs/mx6ul_14x14_evk.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/configs/mx6ul_14x14_evk.h b/include/configs/mx6ul_14x14_evk.h index ad125c4..2bc6a8e 100644 --- a/include/configs/mx6ul_14x14_evk.h +++ b/include/configs/mx6ul_14x14_evk.h @@ -16,6 +16,14 @@ #define is_mx6ul_9x9_evk() CONFIG_IS_ENABLED(TARGET_MX6UL_9X9_EVK) +#ifdef CONFIG_TARGET_MX6UL_9X9_EVK +#define PHYS_SDRAM_SIZE SZ_256M +#define CONFIG_BOOTARGS_CMA_SIZE "cma=96M " +#else +#define PHYS_SDRAM_SIZE SZ_512M +#define CONFIG_BOOTARGS_CMA_SIZE "" +#endif + /* SPL options */ /* We default not support SPL * #define CONFIG_SPL_LIBCOMMON_SUPPORT @@ -85,6 +93,7 @@ "mmcroot=" CONFIG_MMCROOT " rootwait rw\0" \ "mmcautodetect=yes\0" \ "mmcargs=setenv bootargs console=${console},${baudrate} " \ + CONFIG_BOOTARGS_CMA_SIZE \ "root=${mmcroot}\0" \ "loadbootscript=" \ "fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};\0" \ @@ -108,6 +117,7 @@ "bootz; " \ "fi;\0" \ "netargs=setenv bootargs console=${console},${baudrate} " \ + CONFIG_BOOTARGS_CMA_SIZE \ "root=/dev/nfs " \ "ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp\0" \ "netboot=echo Booting from net ...; " \ |