]> rtime.felk.cvut.cz Git - zynq/linux.git/commit
fbcon: add fbcon=margin:<color> command line option
authorDavid Lechner <david@lechnology.com>
Fri, 18 Aug 2017 17:56:40 +0000 (19:56 +0200)
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Fri, 18 Aug 2017 17:56:40 +0000 (19:56 +0200)
commit74c1c8b3326a366d39aa74e1737a28d4cba151c8
tree821b7647c8fc9e41f4b02eb1897d3e7e4569d980
parent16622a8e7e46fab31fd33ca5a23672385de240f6
fbcon: add fbcon=margin:<color> command line option

This adds a new command line option to select the fbcon margin color.

The motivation for this is screens where black does not blend into the
physical surroundings of the screen. For example, using an LCD (not the
backlit kind), white text on a black background is hard to read, so
inverting the colors is preferred. However, when you do this, most of the
screen is filled with white but the margins are still filled with black.
This makes a big, black, backwards 'L' on the screen. By setting
fbcon=margin:7, the margins will be filled with white and the LCD looks as
expected.

Signed-off-by: David Lechner <david@lechnology.com>
[b.zolnierkie: ported over fbcon changes]
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Documentation/fb/fbcon.txt
drivers/video/fbdev/core/bitblit.c
drivers/video/fbdev/core/fbcon.c
drivers/video/fbdev/core/fbcon.h
drivers/video/fbdev/core/fbcon_ccw.c
drivers/video/fbdev/core/fbcon_cw.c
drivers/video/fbdev/core/fbcon_ud.c
drivers/video/fbdev/core/tileblit.c