public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Nikita Kiryanov <nikita@compulab.co.il>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH V2 06/12] lcd: replace CONSOLE_(ROWS|COLS) with variables
Date: Tue, 02 Dec 2014 13:34:03 +0200	[thread overview]
Message-ID: <547DA3AB.5020908@compulab.co.il> (raw)
In-Reply-To: <CAPnjgZ1wG2WyirHCjKZUXiYHEmu22akN7nLDjpZA9vwOj3vAcA@mail.gmail.com>

Hi Simon,

On 11/30/2014 09:25 PM, Simon Glass wrote:
> On 30 November 2014 at 05:29, Nikita Kiryanov <nikita@compulab.co.il> wrote:
>> Replace CONSOLE_(ROWS|COLS) macros with variables, and assign the
>> original macro values.
>>
>> This is a preparatory step for extracting lcd console code into its own
>> file.
>>
>> Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il>
>> Cc: Anatolij Gustschin <agust@denx.de>
>> Cc: Simon Glass <sjg@chromium.org>
>> ---
>> Changes in V2:
>>          - New patch.
>
> Are you intended to want to support multiple displays, or just to
> change the resolution after start?

This did cross my mind as possible future work, but for this patch set
the change was driven by the goal of decoupling lcd_console stuff as
much as possible from the rest of the code, which meant that I did not
want to bring panel_info references into lcd_console.c (there's
actually one use of panel_info still remaining in console_scrollup()
but I'll get rid of it if/when this series is applied).

In the case of console_cols and console_rows, the idea was that the use
of panel_info can be avoided if lcd.c would pass the values as
parameters to lcd_init_console() (introduced in a later patch), which
meant that the macros had to be replaced with variables.

>
> Acked-by: Simon Glass <sjg@chromium.org>
>
> Tested on pit, LCD works fine.
>
> Tested-by: Simon Glass <sjg@chromium.org>
>

This mail did not reach mainline, so I'm Cc-ing the mailing list.
I don't know if patchworks will register the Ack and Tested-by though, 
can you maybe resend them in a separate reply?

-- 
Regards,
Nikita Kiryanov

  parent reply	other threads:[~2014-12-02 11:34 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=547DA3AB.5020908@compulab.co.il \
    --to=nikita@compulab.co.il \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox