diff options
author | Markus Niebel <Markus.Niebel@tq-group.com> | 2017-02-03 16:13:58 +0100 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2017-02-19 17:16:51 +0100 |
commit | 9e9846a484768d387c65e0ad28960b9372648638 (patch) | |
tree | 0dd025ae75501467160834e845f64b465e047e13 /include/configs | |
parent | f78038dc0d7d15723d7dd523ab02d1fde4486815 (diff) | |
download | u-boot-imx-9e9846a484768d387c65e0ad28960b9372648638.zip u-boot-imx-9e9846a484768d387c65e0ad28960b9372648638.tar.gz u-boot-imx-9e9846a484768d387c65e0ad28960b9372648638.tar.bz2 |
arm: imx6: tqma6: add configurable CMA size
depending on the use case different CMA sizes are
needed for linux. Add env var to enable passing CMA size
via kernel command line
Signed-off-by: Markus Niebel <Markus.Niebel@tq-group.com>
Diffstat (limited to 'include/configs')
-rw-r--r-- | include/configs/tqma6.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/configs/tqma6.h b/include/configs/tqma6.h index 09783a2..ceb4626 100644 --- a/include/configs/tqma6.h +++ b/include/configs/tqma6.h @@ -281,6 +281,9 @@ /* 128 MiB offset as in ARM related docu for linux suggested */ #define TQMA6_FDT_ADDRESS 0x18000000 +/* set to a resonable value, changeable by user */ +#define TQMA6_CMA_SIZE 160M + #define CONFIG_EXTRA_ENV_SETTINGS \ "board=tqma6\0" \ "uimage=uImage\0" \ @@ -293,14 +296,16 @@ "fdt_file=" CONFIG_DEFAULT_FDT_FILE "\0" \ "fdt_addr="__stringify(TQMA6_FDT_ADDRESS)"\0" \ "console=" CONSOLE_DEV "\0" \ + "cma_size="__stringify(TQMA6_CMA_SIZE)"\0" \ "fdt_high=0xffffffff\0" \ "initrd_high=0xffffffff\0" \ + "addcma=setenv bootargs ${bootargs} cma=${cma_size}\0" \ "addtty=setenv bootargs ${bootargs} console=${console},${baudrate}\0" \ "addfb=setenv bootargs ${bootargs} " \ "imx-fbdev.legacyfb_depth=32 consoleblank=0\0" \ "mmcpart=2\0" \ "mmcblkdev=0\0" \ - "mmcargs=run addmmc addtty addfb\0" \ + "mmcargs=run addmmc addtty addfb addcma\0" \ "addmmc=setenv bootargs ${bootargs} " \ "root=/dev/mmcblk${mmcblkdev}p${mmcpart} rw rootwait\0" \ "mmcboot=echo Booting from mmc ...; " \ @@ -317,7 +322,7 @@ "netdev=eth0\0" \ "rootpath=/srv/nfs/tqma6\0" \ "ipmode=static\0" \ - "netargs=run addnfs addip addtty addfb\0" \ + "netargs=run addnfs addip addtty addfb addcma\0" \ "addnfs=setenv bootargs ${bootargs} " \ "root=/dev/nfs rw " \ "nfsroot=${serverip}:${rootpath},v3,tcp;\0" \ |