summaryrefslogtreecommitdiff
path: root/drivers/mxc/gpu-viv/hal/os/linux
diff options
context:
space:
mode:
authorRichard Liu <xuegang.liu@nxp.com>2019-08-21 09:13:28 +0000
committerXianzhong <xianzhong.li@nxp.com>2019-08-30 03:50:28 +0800
commit93c54100188bd2400b8be12e011aa4c1dc7ead01 (patch)
tree4d24f7cfd82021b79a8caa568b3923aa90e37b2b /drivers/mxc/gpu-viv/hal/os/linux
parent6996fc5e086656bbe4478694f9207d1263f26770 (diff)
MA-14981 [#imx-1655] Add evk_imx8mm 4GB DDR support
Fix GPU memory allocation issue on 4GB DDR imx8mm_evk board. Change-Id: I39a1abcaa3e85935fec47862b86903d0a9b9a487 Signed-off-by: Ji Luo <ji.luo@nxp.com> Signed-off-by: Richard Liu <xuegang.liu@nxp.com>
Diffstat (limited to 'drivers/mxc/gpu-viv/hal/os/linux')
-rw-r--r--drivers/mxc/gpu-viv/hal/os/linux/kernel/platform/freescale/gc_hal_kernel_platform_imx.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mxc/gpu-viv/hal/os/linux/kernel/platform/freescale/gc_hal_kernel_platform_imx.c b/drivers/mxc/gpu-viv/hal/os/linux/kernel/platform/freescale/gc_hal_kernel_platform_imx.c
index 8b0094103d84..1c49cba0f423 100644
--- a/drivers/mxc/gpu-viv/hal/os/linux/kernel/platform/freescale/gc_hal_kernel_platform_imx.c
+++ b/drivers/mxc/gpu-viv/hal/os/linux/kernel/platform/freescale/gc_hal_kernel_platform_imx.c
@@ -1512,7 +1512,8 @@ _AdjustParam(
{
patch_param(Platform->device, Args);
- if (of_find_compatible_node(NULL, NULL, "fsl,imx8mq-gpu") &&
+ if ((of_find_compatible_node(NULL, NULL, "fsl,imx8mq-gpu") ||
+ of_find_compatible_node(NULL, NULL, "fsl,imx8mm-gpu")) &&
((Args->baseAddress + totalram_pages * PAGE_SIZE) > 0x100000000))
{
Platform->flagBits |= gcvPLATFORM_FLAG_LIMIT_4G_ADDRESS;