[U-Boot] [PATCH V3 09/12] lcd: introduce getters for bg/fg color

Simon Glass sjg at chromium.org
Tue Dec 9 14:57:05 CET 2014


On 8 December 2014 at 08:14, Nikita Kiryanov <nikita at compulab.co.il> wrote:
> Introduce lcd_getbgcolor() and lcd_getfgcolor(), and use them where
> applicable.
>
> This is a preparatory step for extracting lcd console code into its own
> file.
>
> Signed-off-by: Nikita Kiryanov <nikita at compulab.co.il>
> Cc: Anatolij Gustschin <agust at denx.de>
> Cc: Simon Glass <sjg at chromium.org>

Acked-by: Simon Glass <sjg at chromium.org>

> ---
> Changes in V3:
>         - Instead of invoking lcd_get(bg|fg)color() each time, do it only once
>           and cache the value. This is done in console_scrollup(),
>           lcd_drawchars(), and drv_lcd_init().
>
> Changes in V2:
>         - New patch.
>
>  common/lcd.c  | 31 ++++++++++++++++++++++---------
>  include/lcd.h | 14 ++++++++++++++
>  2 files changed, 36 insertions(+), 9 deletions(-)


More information about the U-Boot mailing list