mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
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: Rob Clark <robdclark@gmail.com>
This commit is contained in:
parent
a7d3bb0045
commit
ba4dd71828
1 changed files with 7 additions and 0 deletions
|
@ -73,6 +73,10 @@ bool dumpstate = false;
|
||||||
MODULE_PARM_DESC(dumpstate, "Dump KMS state on errors");
|
MODULE_PARM_DESC(dumpstate, "Dump KMS state on errors");
|
||||||
module_param(dumpstate, bool, 0600);
|
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:
|
* Util/helpers:
|
||||||
*/
|
*/
|
||||||
|
@ -1133,6 +1137,9 @@ static struct platform_driver msm_platform_driver = {
|
||||||
|
|
||||||
static int __init msm_drm_register(void)
|
static int __init msm_drm_register(void)
|
||||||
{
|
{
|
||||||
|
if (!modeset)
|
||||||
|
return -EINVAL;
|
||||||
|
|
||||||
DBG("init");
|
DBG("init");
|
||||||
msm_mdp_register();
|
msm_mdp_register();
|
||||||
msm_dsi_register();
|
msm_dsi_register();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue