Skip to content
Snippets Groups Projects
Commit 604c7d4a authored by Hannes Petermaier's avatar Hannes Petermaier Committed by Anatolij Gustschin
Browse files

common/lcd_console: introduce display/framebuffer rotation


Sometimes, for example if the display is mounted in portrait mode or even if it
is mounted landscape but rotated by 180 degrees, we need to rotate our content
of the display respectively the framebuffer, so that user can read the messages
which are printed out.

For this we introduce the feature called "CONFIG_LCD_ROTATION", this may be
defined in the board-configuration if needed. After this the lcd_console will
be initialized with a given rotation from "vl_rot" out of "vidinfo_t" which is
provided by the board specific code.

If CONFIG_LCD_ROTATION is not defined, the console will be initialized with
0 degrees rotation.

Signed-off-by: default avatarHannes Petermaier <hannes.petermaier@br-automation.com>
Signed-off-by: default avatarHannes Petermaier <oe5hpm@oevsv.at>
Acked-by: default avatarNikita Kiryanov <nikita@compulab.co.il>
[agust: fixed 'struct vidinfo' has no member named 'vl_rot' errors]
Signed-off-by: default avatarAnatolij Gustschin <agust@denx.de>
parent 7471142c
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment