You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
480 B
25 lines
480 B
// SPDX-License-Identifier: GPL-2.0
|
|
|
|
#include <linux/module.h>
|
|
#include <linux/types.h>
|
|
|
|
static bool drm_nomodeset;
|
|
|
|
bool drm_firmware_drivers_only(void)
|
|
{
|
|
return drm_nomodeset;
|
|
}
|
|
EXPORT_SYMBOL(drm_firmware_drivers_only);
|
|
|
|
static int __init disable_modeset(char *str)
|
|
{
|
|
drm_nomodeset = true;
|
|
|
|
pr_warn("Booted with the nomodeset parameter. Only the system framebuffer will be available\n");
|
|
|
|
return 1;
|
|
}
|
|
|
|
/* Disable kernel modesetting */
|
|
__setup("nomodeset", disable_modeset);
|