public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 0/4] Introduce lcd_console rotation.
@ 2015-03-11 12:57 Hannes Petermaier
  2015-03-11 12:57 ` [U-Boot] [PATCH 1/4] common/lcd_console: cleanup lcd_drawchars/lcd_putc_xy Hannes Petermaier
                   ` (3 more replies)
  0 siblings, 4 replies; 17+ messages in thread
From: Hannes Petermaier @ 2015-03-11 12:57 UTC (permalink / raw)
  To: u-boot

Sometimes, for example if the display is mounted in portrait mode or even if it

mounted landscape but rotated by 180 degree, we need to rotate our content of
the display respectively the framebuffer, so that user can read the messages who
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 - the screen behaves like the days before.

Patch 1-3 make preparations to the code.
Patch 4 implements the new feature


Hannes Petermaier (4):
  common/lcd_console: cleanup lcd_drawchars/lcd_putc_xy
  common/lcd_console: ask only one-time for bg/fg-color per call
  common/lcd_console: move single static variables into common (static)
    structure
  common/lcd_console: introduce display/framebuffer rotation

 README                |   17 +++
 common/lcd.c          |   22 +--
 common/lcd_console.c  |  395 +++++++++++++++++++++++++++++++++++++------------
 include/lcd.h         |    1 +
 include/lcd_console.h |    9 +-
 5 files changed, 334 insertions(+), 110 deletions(-)

-- 
1.7.9.5

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2015-03-16 16:48 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-11 12:57 [U-Boot] [PATCH 0/4] Introduce lcd_console rotation Hannes Petermaier
2015-03-11 12:57 ` [U-Boot] [PATCH 1/4] common/lcd_console: cleanup lcd_drawchars/lcd_putc_xy Hannes Petermaier
2015-03-15 18:56   ` Nikita Kiryanov
2015-03-11 12:57 ` [U-Boot] [PATCH 2/4] common/lcd_console: ask only one-time for bg/fg-color per call Hannes Petermaier
2015-03-15 18:54   ` Nikita Kiryanov
2015-03-11 12:57 ` [U-Boot] [PATCH 3/4] common/lcd_console: move single static variables into common (static) structure Hannes Petermaier
2015-03-15 18:57   ` Nikita Kiryanov
2015-03-16  6:32     ` Hannes Petermaier
2015-03-11 12:57 ` [U-Boot] [PATCH 4/4] common/lcd_console: introduce display/framebuffer rotation Hannes Petermaier
2015-03-12 12:26   ` Igor Grinberg
2015-03-12 16:46     ` Hannes Petermaier
2015-03-15  8:34       ` Igor Grinberg
2015-03-16  8:32         ` Hannes Petermaier
2015-03-16 11:35           ` Igor Grinberg
2015-03-16 16:48             ` Nikita Kiryanov
2015-03-15 18:56   ` Nikita Kiryanov
2015-03-16  6:47     ` Hannes Petermaier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox