MGS-1087 gpu: Move the GPU reserved memory to DTS file
authorShawn Xiao <b49994@freescale.com>
Mon, 19 Oct 2015 03:54:21 +0000 (11:54 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:49:09 +0000 (14:49 -0500)
commitea0111da6892b52c790da607a3d91140d1ebf936
tree1579b16e8cb16aec9018817823d158be6c62a480
parent2207b771fc36ff4ee3b743fbac4ba2aabac20288
MGS-1087 gpu: Move the GPU reserved memory to DTS file

Currently 128M reserved for GPU in all the i.MX6 boards that is
requiring kernel to allocate CMA 320M. For the low end devices like 6SX
and 6SL, the 320M is huge. Sometimes customer board may have very less
RAM.

With Kernel 4.1, there is a new feature CMA can be calculated at DTS
level based on the amount queried from different module drivers.So
moving the GPU memory to DTS is valid and can be configured for each
board.

And at the same time, also keep the option for user to configure the
parameters "contiguousBase and contiguousSize" in u-boot.

Signed-off-by: Shawn Xiao <b49994@freescale.com>
arch/arm/boot/dts/imx6q.dtsi
arch/arm/configs/imx_v7_defconfig
drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_probe.c
drivers/mxc/gpu-viv/hal/os/linux/kernel/platform/freescale/gc_hal_kernel_platform_imx6q14.c