summaryrefslogtreecommitdiff
path: root/arch/arm/mach-mx6/board-mx6q_sabrelite.c
diff options
context:
space:
mode:
authorXinyu Chen <xinyu.chen@freescale.com>2012-10-11 15:15:44 +0800
committerXinyu Chen <xinyu.chen@freescale.com>2012-10-11 16:22:20 +0800
commit2a390e96eee149300bb686f07e3323e18605f531 (patch)
tree63dcc8ec7ac424c82f10ab5341dd3da4f7e744ee /arch/arm/mach-mx6/board-mx6q_sabrelite.c
parent730e818a6f251bb7a682fa4d48de9b7b98d09aee (diff)
ENGR00227869 mx6q: add GPU reserved memory size kernel parameter
Add gpumem=<size>M kernel parameter for user to specify the size of reserved memory for GPU driver. Signed-off-by: Xinyu Chen <xinyu.chen@freescale.com>
Diffstat (limited to 'arch/arm/mach-mx6/board-mx6q_sabrelite.c')
-rw-r--r--arch/arm/mach-mx6/board-mx6q_sabrelite.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/mach-mx6/board-mx6q_sabrelite.c b/arch/arm/mach-mx6/board-mx6q_sabrelite.c
index 58d8b6c07b72..66cf55d40499 100644
--- a/arch/arm/mach-mx6/board-mx6q_sabrelite.c
+++ b/arch/arm/mach-mx6/board-mx6q_sabrelite.c
@@ -1134,6 +1134,13 @@ static void __init fixup_mxc_board(struct machine_desc *desc, struct tag *tags,
pdata_fb[i++].res_size[0] = memparse(str, &str);
}
}
+ /* GPU reserved memory */
+ str = t->u.cmdline.cmdline;
+ str = strstr(str, "gpumem=");
+ if (str != NULL) {
+ str += 7;
+ imx6q_gpu_pdata.reserved_mem_size = memparse(str, &str);
+ }
break;
}
}