summaryrefslogtreecommitdiff
path: root/include/configs/mx6ul_14x14_evk.h
diff options
context:
space:
mode:
authorYe Li <ye.li@nxp.com>2017-02-24 14:17:18 +0800
committerYe Li <ye.li@nxp.com>2017-04-05 14:04:36 +0800
commitbeb0a3c4497dc12964e3abd49d075f6098e3c478 (patch)
tree031888897a3d2343f5c9b31272e1f3676380dad4 /include/configs/mx6ul_14x14_evk.h
parentb9ec70ce79ec01340d163cb53c94d8c2d538eb06 (diff)
downloadu-boot-imx-beb0a3c4497dc12964e3abd49d075f6098e3c478.zip
u-boot-imx-beb0a3c4497dc12964e3abd49d075f6098e3c478.tar.gz
u-boot-imx-beb0a3c4497dc12964e3abd49d075f6098e3c478.tar.bz2
MLK-14259-2 mx6ulevk: 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: Ye Li <ye.li@nxp.com>
Diffstat (limited to 'include/configs/mx6ul_14x14_evk.h')
-rw-r--r--include/configs/mx6ul_14x14_evk.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/configs/mx6ul_14x14_evk.h b/include/configs/mx6ul_14x14_evk.h
index 1a2e3b4..a3cf820 100644
--- a/include/configs/mx6ul_14x14_evk.h
+++ b/include/configs/mx6ul_14x14_evk.h
@@ -18,6 +18,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 BOOTARGS_CMA_SIZE "cma=96M "
+#else
+#define PHYS_SDRAM_SIZE SZ_512M
+#define BOOTARGS_CMA_SIZE ""
+#endif
+
/* SPL options */
#include "imx6_spl.h"
@@ -75,6 +83,7 @@
"mmcroot=" CONFIG_MMCROOT " rootwait rw\0" \
"mmcautodetect=yes\0" \
"mmcargs=setenv bootargs console=${console},${baudrate} " \
+ BOOTARGS_CMA_SIZE \
"root=${mmcroot}\0" \
"loadbootscript=" \
"fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};\0" \
@@ -98,6 +107,7 @@
"bootz; " \
"fi;\0" \
"netargs=setenv bootargs console=${console},${baudrate} " \
+ BOOTARGS_CMA_SIZE \
"root=/dev/nfs " \
"ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp\0" \
"netboot=echo Booting from net ...; " \