summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorfaqiang.zhu <faqiang.zhu@nxp.com>2018-08-06 20:10:33 +0800
committerfaqiang.zhu <faqiang.zhu@nxp.com>2018-11-12 09:18:34 +0800
commit434e104b7df161492415c29be24c70dc7c126211 (patch)
treec3bc5b4e18bb4203c765bf4e6a466ba999473c8e /board
parent8be00c435edfbbe75340ff9b3686f712fd51be52 (diff)
Set different bootargs for imx8m_phanbell based on ram capacity
for 1GB ram: cma=296M galcore.contiguousSize=8388608 for 3GB ram: cma=384M Test: Boot successfully on AIY-1G & AIY-3G Change-Id: If082d5b751b5a5e06efe301c0b8e49ec4ac3dfb7 Signed-off-by: faqiang.zhu <faqiang.zhu@nxp.com> Reviewed-on: http://androidsource.ap.freescale.net/project/5262 Reviewed-by: Wang Haoran <elven.wang@nxp.com> Signed-off-by: faqiang.zhu <faqiang.zhu@nxp.com>
Diffstat (limited to 'board')
-rw-r--r--board/freescale/imx8mq_phanbell/imx8m_phanbell.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/board/freescale/imx8mq_phanbell/imx8m_phanbell.c b/board/freescale/imx8mq_phanbell/imx8m_phanbell.c
index e904a23b779..d26c63c7edf 100644
--- a/board/freescale/imx8mq_phanbell/imx8m_phanbell.c
+++ b/board/freescale/imx8mq_phanbell/imx8m_phanbell.c
@@ -356,6 +356,16 @@ int board_late_init(void)
#ifdef CONFIG_ENV_IS_IN_MMC
board_late_mmc_env_init();
#endif
+ int baseboard_id;
+ baseboard_id = get_imx8m_baseboard_id();
+ if ((baseboard_id == ENTERPRISE_MICRON_1G) ||
+ (baseboard_id == ENTERPRISE_HYNIX_1G)) {
+ /* 1G DDR size */
+ env_set("bootargs_ram_capacity", "cma=296M galcore.contiguousSize=8388608");
+ } else {
+ /* 3G DDR size */
+ env_set("bootargs_ram_capacity", "cma=384M");
+ }
return 0;
}