提交 ba4dd718 编写于 作者: R Rob Clark

drm/msm: add modeset module param

At least for debugging it is nice to have an easy way to force the
driver not to load.
Signed-off-by: NRob Clark <robdclark@gmail.com>
上级 a7d3bb00
......@@ -73,6 +73,10 @@ bool dumpstate = false;
MODULE_PARM_DESC(dumpstate, "Dump KMS state on errors");
module_param(dumpstate, bool, 0600);
static bool modeset = true;
MODULE_PARM_DESC(modeset, "Use kernel modesetting [KMS] (1=on (default), 0=disable)");
module_param(modeset, bool, 0600);
/*
* Util/helpers:
*/
......@@ -1133,6 +1137,9 @@ static struct platform_driver msm_platform_driver = {
static int __init msm_drm_register(void)
{
if (!modeset)
return -EINVAL;
DBG("init");
msm_mdp_register();
msm_dsi_register();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册