xref: /openbmc/linux/drivers/video/nomodeset.c (revision 9a758d87)
1 // SPDX-License-Identifier: GPL-2.0
2 
3 #include <linux/module.h>
4 #include <linux/types.h>
5 
6 #include <video/nomodeset.h>
7 
8 static bool video_nomodeset;
9 
video_firmware_drivers_only(void)10 bool video_firmware_drivers_only(void)
11 {
12 	return video_nomodeset;
13 }
14 EXPORT_SYMBOL(video_firmware_drivers_only);
15 
disable_modeset(char * str)16 static int __init disable_modeset(char *str)
17 {
18 	video_nomodeset = true;
19 
20 	pr_warn("Booted with the nomodeset parameter. Only the system framebuffer will be available\n");
21 
22 	return 1;
23 }
24 
25 /* Disable kernel modesetting */
26 __setup("nomodeset", disable_modeset);
27