aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/drm_nomodeset.c
blob: f3978d5bd3a1d3509f82d8e23a144d7480e3ca22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// 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);