public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH V2 00/12] cleanup and refactor lcd.c
@ 2014-11-30 12:29 Nikita Kiryanov
  2014-11-30 12:29 ` [U-Boot] [PATCH V2 01/12] lcd: remove CONFIG_SYS_INVERT_COLORS Nikita Kiryanov
                   ` (13 more replies)
  0 siblings, 14 replies; 25+ messages in thread
From: Nikita Kiryanov @ 2014-11-30 12:29 UTC (permalink / raw)
  To: u-boot

This series is a first step towards an end goal of merging all CONFIG_LCD
related functionality into CONFIG_VIDEO code. My plan is to start by refactoring
lcd.c into something cleaner (less ifdefs) and more modular (split code into
multiple files), then possibly refactor CONFIG_VIDEO code if needed, and then
finally: move CONFIG_LCD related functionality over to CONFIG_VIDEO code,
replacing as much CONFIG_LCD related code with CONFIG_VIDEO related code as
possible.

This specific step eliminates some unused code and refactors lcd console stuff
into its own file.

In V2 I broke the last patch of the original series ("lcd: refactor lcd console
stuff into its own file") into multiple patches to make it clear what changes
had to be done in order to refactor the lcd console code into its own file.
These preparatory patches ("lcd: rename console_(row|col)" to
"lcd: make lcd_drawchars() independant of lcd_base") are meant to illustrate
exactly what changed and where in the transition from lcd.c to lcd_console.c,
and are not necesserily code improvements when viewed out of context.

Additional changes in V2:
	- Added documentation for the new functions.

The whole series was rebased over current mainline, and compile tested for arm
and powerpc.

Cc: Anatolij Gustschin <agust@denx.de>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Lukasz Majewski <l.majewski@samsung.com>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Stephen Warren <swarren@wwwdotorg.org>
Cc: Josh Wu <josh.wu@atmel.com>
Cc: Alban Bedel <alban.bedel@avionic-design.de>
Cc: Bo Shen <voice.shen@atmel.com>
Cc: Tom Warren <twarren@nvidia.com>
Cc: Alban Bedel <alban.bedel@avionic-design.de>
Cc: Jens Scharsig <esw@bus-elektronik.de>
Cc: TsiChung Liew <Tsi-Chung.Liew@freescale.com>
Cc: Przemyslaw Marczak <p.marczak@samsung.com>
Cc: Cliff Brake <cliff.brake@gmail.com>
Cc: Sergey Yanovich <ynvich@gmail.com>
Cc: Akshay Saraswat <akshay.s@samsung.com>
Cc: Stephen Warren <swarren@nvidia.com>
Cc: Daniel Gorsulowski <daniel.gorsulowski@esd.eu>
Cc: Stelian Pop <stelian@popies.net>

Nikita Kiryanov (12):
  lcd: remove CONFIG_SYS_INVERT_COLORS
  lcd: cleanup lcd_drawchars
  mpc8xx_lcd: get rid of CONFIG_EDT32F10
  lcd: remove LCD_MONOCHROME
  lcd: rename console_(row|col)
  lcd: replace CONSOLE_(ROWS|COLS) with variables
  lcd: expand console api
  lcd: get rid of COLOR_MASK
  lcd: introduce getters for bg/fg color
  lcd: make lcd_drawchars() independant of lcd_base
  lcd: refactor lcd console stuff into its own file
  lcd_console: remove unused defines

 common/Makefile            |   2 +-
 common/lcd.c               | 308 +++++----------------------------------------
 common/lcd_console.c       | 208 ++++++++++++++++++++++++++++++
 drivers/video/mpc8xx_lcd.c |  49 +-------
 drivers/video/pxa_lcd.c    |  15 ---
 include/configs/R360MPI.h  |   1 -
 include/lcd.h              |  25 ++--
 include/lcd_console.h      |  85 +++++++++++++
 8 files changed, 340 insertions(+), 353 deletions(-)
 create mode 100644 common/lcd_console.c
 create mode 100644 include/lcd_console.h

-- 
1.9.1

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

end of thread, other threads:[~2014-12-02 17:38 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-30 12:29 [U-Boot] [PATCH V2 00/12] cleanup and refactor lcd.c Nikita Kiryanov
2014-11-30 12:29 ` [U-Boot] [PATCH V2 01/12] lcd: remove CONFIG_SYS_INVERT_COLORS Nikita Kiryanov
2014-11-30 12:29 ` [U-Boot] [PATCH V2 02/12] lcd: cleanup lcd_drawchars Nikita Kiryanov
2014-11-30 12:29 ` [U-Boot] [PATCH V2 03/12] mpc8xx_lcd: get rid of CONFIG_EDT32F10 Nikita Kiryanov
2014-11-30 12:29 ` [U-Boot] [PATCH V2 04/12] lcd: remove LCD_MONOCHROME Nikita Kiryanov
2014-11-30 12:29 ` [U-Boot] [PATCH V2 05/12] lcd: rename console_(row|col) Nikita Kiryanov
2014-11-30 19:24   ` Simon Glass
2014-11-30 12:29 ` [U-Boot] [PATCH V2 06/12] lcd: replace CONSOLE_(ROWS|COLS) with variables Nikita Kiryanov
     [not found]   ` <CAPnjgZ1wG2WyirHCjKZUXiYHEmu22akN7nLDjpZA9vwOj3vAcA@mail.gmail.com>
2014-12-02 11:34     ` Nikita Kiryanov
2014-12-02 17:38   ` Simon Glass
2014-11-30 12:29 ` [U-Boot] [PATCH V2 07/12] lcd: expand console api Nikita Kiryanov
2014-11-30 19:25   ` Simon Glass
2014-11-30 12:29 ` [U-Boot] [PATCH V2 08/12] lcd: get rid of COLOR_MASK Nikita Kiryanov
2014-11-30 19:26   ` Simon Glass
2014-11-30 12:29 ` [U-Boot] [PATCH V2 09/12] lcd: introduce getters for bg/fg color Nikita Kiryanov
2014-11-30 19:27   ` Simon Glass
2014-12-02 11:01     ` Nikita Kiryanov
2014-11-30 12:29 ` [U-Boot] [PATCH V2 10/12] lcd: make lcd_drawchars() independant of lcd_base Nikita Kiryanov
2014-11-30 12:29 ` [U-Boot] [PATCH V2 11/12] lcd: refactor lcd console stuff into its own file Nikita Kiryanov
2014-11-30 12:29 ` [U-Boot] [PATCH V2 12/12] lcd_console: remove unused defines Nikita Kiryanov
2014-11-30 19:32   ` Simon Glass
2014-11-30 13:22 ` [U-Boot] [PATCH V2 00/12] cleanup and refactor lcd.c Nikita Kiryanov
2014-11-30 13:22   ` [U-Boot] [PATCH V2 11/12] lcd: refactor lcd console stuff into its own file Nikita Kiryanov
2014-11-30 19:32     ` Simon Glass
2014-12-02  4:10 ` [U-Boot] [PATCH V2 00/12] cleanup and refactor lcd.c Stephen Warren

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