Commit 61d5f2c4 authored by Huang Shijie's avatar Huang Shijie Committed by Jason Liu

ENGR00209557 IMX6: GPU: do not reserve memory when GPU is not enabled

The current code will reserve 128M for GPU even when it is not enabled.

It is not needed. So do not reserve the memory when the GPU is not enabled.
(this can save 128M for Mfgtool.)
Signed-off-by: default avatarHuang Shijie <b32955@freescale.com>
parent 7c47640e
......@@ -2204,6 +2204,7 @@ static struct sys_timer mxc_timer = {
static void __init mx6_arm2_reserve(void)
{
#ifdef CONFIG_MXC_GPU_VIV
phys_addr_t phys;
if (imx6_gpu_pdata.reserved_mem_size) {
......@@ -2213,6 +2214,7 @@ static void __init mx6_arm2_reserve(void)
memblock_remove(phys, imx6_gpu_pdata.reserved_mem_size);
imx6_gpu_pdata.reserved_mem_base = phys;
}
#endif
}
MACHINE_START(MX6Q_ARM2, "Freescale i.MX 6Quad/Solo/DualLite Armadillo2 Board")
......
......@@ -1535,6 +1535,7 @@ static struct sys_timer mxc_timer = {
static void __init mx6q_reserve(void)
{
#ifdef CONFIG_MXC_GPU_VIV
phys_addr_t phys;
if (imx6q_gpu_pdata.reserved_mem_size) {
......@@ -1544,6 +1545,7 @@ static void __init mx6q_reserve(void)
memblock_remove(phys, imx6q_gpu_pdata.reserved_mem_size);
imx6q_gpu_pdata.reserved_mem_base = phys;
}
#endif
}
MACHINE_START(MX6Q_SABREAUTO, "Freescale i.MX 6Quad/DualLite/Solo Sabre Auto Board")
......
......@@ -1185,6 +1185,7 @@ static struct sys_timer mx6_sabrelite_timer = {
static void __init mx6q_sabrelite_reserve(void)
{
#ifdef CONFIG_MXC_GPU_VIV
phys_addr_t phys;
if (imx6q_gpu_pdata.reserved_mem_size) {
......@@ -1194,6 +1195,7 @@ static void __init mx6q_sabrelite_reserve(void)
memblock_remove(phys, imx6q_gpu_pdata.reserved_mem_size);
imx6q_gpu_pdata.reserved_mem_base = phys;
}
#endif
}
/*
......
......@@ -1807,6 +1807,7 @@ static struct sys_timer mx6_sabresd_timer = {
static void __init mx6q_sabresd_reserve(void)
{
#ifdef CONFIG_MXC_GPU_VIV
phys_addr_t phys;
if (imx6q_gpu_pdata.reserved_mem_size) {
......@@ -1816,6 +1817,7 @@ static void __init mx6q_sabresd_reserve(void)
memblock_remove(phys, imx6q_gpu_pdata.reserved_mem_size);
imx6q_gpu_pdata.reserved_mem_base = phys;
}
#endif
}
/*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment