mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
DRM: add mode setting support
Add mode setting support to the DRM layer.
This is a fairly big chunk of work that allows DRM drivers to provide
full output control and configuration capabilities to userspace. It was
motivated by several factors:
- the fb layer's APIs aren't suited for anything but simple
configurations
- coordination between the fb layer, DRM layer, and various userspace
drivers is poor to non-existent (radeonfb excepted)
- user level mode setting drivers makes displaying panic & oops
messages more difficult
- suspend/resume of graphics state is possible in many more
configurations with kernel level support
This commit just adds the core DRM part of the mode setting APIs.
Driver specific commits using these new structure and APIs will follow.
Co-authors: Jesse Barnes <[email protected]>, Jakob Bornecrantz <[email protected]>
Contributors: Alan Hourihane <[email protected]>, Maarten Maathuis <[email protected]>
Signed-off-by: Jesse Barnes <[email protected]>
Signed-off-by: Eric Anholt <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
This commit is contained in:
parent
de151cf67c
commit
f453ba0460
20 changed files with 6469 additions and 41 deletions
|
|
@ -112,6 +112,23 @@ static int vga_video_font_height;
|
|||
static int vga_scan_lines __read_mostly;
|
||||
static unsigned int vga_rolled_over;
|
||||
|
||||
int vgacon_text_mode_force = 0;
|
||||
|
||||
bool vgacon_text_force(void)
|
||||
{
|
||||
return vgacon_text_mode_force ? true : false;
|
||||
}
|
||||
EXPORT_SYMBOL(vgacon_text_force);
|
||||
|
||||
static int __init text_mode(char *str)
|
||||
{
|
||||
vgacon_text_mode_force = 1;
|
||||
return 1;
|
||||
}
|
||||
|
||||
/* force text mode - used by kernel modesetting */
|
||||
__setup("nomodeset", text_mode);
|
||||
|
||||
static int __init no_scroll(char *str)
|
||||
{
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue