public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Hans de Goede <hdegoede@redhat.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 0/2] sunxi: video: Add lvds support
Date: Sat, 10 Jan 2015 14:55:16 +0100	[thread overview]
Message-ID: <54B12F44.6030702@redhat.com> (raw)
In-Reply-To: <1420886439.11796.78.camel@hellion.org.uk>

Hi,

On 10-01-15 11:40, Ian Campbell wrote:
> On Thu, 2015-01-08 at 20:49 +0100, Hans de Goede wrote:
>> Hi Ian, Anatolij,
>>
>> Here is v2 of the lvds support for sunxi-video. I've reworked how to Kconfig
>> bits are handled as requested by Ian.
>>
>> Anatolij, the second patch in this sets adds support for initializing the
>> lcd controller found on hitachi tx18d42vm lcd panels, this lvds lcd controller
>> needs some poking via a separate spi bus before the panel will do anything.
>>
>> This code is not really sunxi specific, but since sunxi is the only (known)
>> user of such a lcd controller I've chosen to do this in a sunxi specific file
>> for now, with the idea that making the code generic is more easy when we
>> actually have a second user, and thus a better idea of what is needed for a
>> generic implementation. Can we get your ack for this solution? Or let me know
>> if you want me todo something generic right away and then I'll rework the
>> patch.
>
> Anatolij has acked it, so I don't object.
>
> Acked-by: Ian Campbell <ijc@hellion.org.uk>
>
> Do you think it might be worth doing:
>
> #if definged(CONFIG_VIDEO_LCD_IF_PARALLEL)
> ...
> #elif defined(CONFIG_VIDEO_LCD_IF_LVDS)
> ...
> #else
> #error unknown LCD_IF
> #endif
>
> instead of the independnent #ifdef's, so anyone adding a third option
> gets a warning to think about at each site? (Just a suggestion, not to
> block the patches if you disagree).

Funny I have been thinking the same myself,
I could do that for the current:

#if defined(CONFIG_VIDEO_LCD_IF_PARALLEL)
...
#endif
#if defined(CONFIG_VIDEO_LCD_IF_LVDS)
...
#endif

blocks, but that still leaves a couple of blocks which are just:

#if defined(CONFIG_VIDEO_LCD_IF_LVDS)
...
#endif

So I decided to just keep the same style everywhere.

Regards,

Hans

      reply	other threads:[~2015-01-10 13:55 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-08 19:49 [U-Boot] [PATCH v2 0/2] sunxi: video: Add lvds support Hans de Goede
2015-01-08 19:49 ` [U-Boot] [PATCH v2 1/2] " Hans de Goede
2015-01-10  0:12   ` Anatolij Gustschin
2015-01-08 19:49 ` [U-Boot] [PATCH v2 2/2] sunxi: video: Add support for Hitachi tx18d42vm LCD panels Hans de Goede
2015-01-10  0:14   ` Anatolij Gustschin
2015-01-10 10:40 ` [U-Boot] [PATCH v2 0/2] sunxi: video: Add lvds support Ian Campbell
2015-01-10 13:55   ` Hans de Goede [this message]

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=54B12F44.6030702@redhat.com \
    --to=hdegoede@redhat.com \
    --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