All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chen-Yu Tsai <wens@csie.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/3] sunxi: video: Add support for external DAC enable pin
Date: Mon, 12 Jan 2015 18:51:22 +0800	[thread overview]
Message-ID: <CAGb2v66yJbOhJv2_XdH88a9ZxGKW7iYQ9Ty7v8hBv_LtO5P=iA@mail.gmail.com> (raw)
In-Reply-To: <54B39FCA.4020807@redhat.com>

On Mon, Jan 12, 2015 at 6:19 PM, Hans de Goede <hdegoede@redhat.com> wrote:
> Hi,
>
>
> On 12-01-15 11:02, Chen-Yu Tsai wrote:
>>
>> The external DAC for VGA output might have either a power or reset
>> control pin that needs to be pulled up, as is the case on the
>> Hummingbird A31.
>>
>> Signed-off-by: Chen-Yu Tsai <wens@csie.org>
>> ---
>>   board/sunxi/Kconfig           |  8 ++++++++
>>   drivers/video/sunxi_display.c | 18 ++++++++++++++++++
>>   2 files changed, 26 insertions(+)
>>
>> diff --git a/board/sunxi/Kconfig b/board/sunxi/Kconfig
>> index bce270e..e9a6b3c 100644
>> --- a/board/sunxi/Kconfig
>> +++ b/board/sunxi/Kconfig
>> @@ -315,6 +315,14 @@ config VIDEO_VGA_VIA_LCD
>>         LCD interface driving a VGA connector, such as found on the
>>         Olimex A13 boards.
>>
>> +config VIDEO_VGA_EXTERNAL_DAC_EN
>> +       string "LCD panel power enable pin"
>> +       depends on VIDEO_VGA_VIA_LCD
>> +       default ""
>> +       ---help---
>> +       Set the enable pin for the external VGA DAC. This takes a string
>> in the
>> +       format understood by sunxi_name_to_gpio, e.g. PH1 for pin 1 of
>> port H.
>> +
>>   config VIDEO_LCD_MODE
>>         string "LCD panel timing details"
>>         depends on VIDEO
>> diff --git a/drivers/video/sunxi_display.c b/drivers/video/sunxi_display.c
>> index 47d820d..1052af2 100644
>> --- a/drivers/video/sunxi_display.c
>> +++ b/drivers/video/sunxi_display.c
>> @@ -813,6 +813,23 @@ static void sunxi_drc_init(void)
>>   #endif
>>   }
>>
>> +#ifdef CONFIG_VIDEO_VGA_VIA_LCD
>> +static void sunxi_vga_external_dac_enable(void)
>> +{
>> +       int pin;
>> +
>> +       /*
>> +        * Start with backlight disabled to avoid the screen flashing to
>> +        * white while the lcd inits.
>> +        */
>
>
> This comment seems wrong, copy & paste error ?
>
> Let me know if you agree that it is wrong, then I'll drop it before applying
> the series, not need to resend.

Yes it's a copy & paste error. Please drop it.

Thanks!

ChenYu

> Regards,
>
> Hans
>
>
>
>> +       pin = sunxi_name_to_gpio(CONFIG_VIDEO_VGA_EXTERNAL_DAC_EN);
>> +       if (pin != -1) {
>> +               gpio_request(pin, "vga_enable");
>> +               gpio_direction_output(pin, 1);
>> +       }
>> +}
>> +#endif /* CONFIG_VIDEO_VGA_VIA_LCD */
>> +
>>   static void sunxi_engines_init(void)
>>   {
>>         sunxi_composer_init();
>> @@ -860,6 +877,7 @@ static void sunxi_mode_set(const struct ctfb_res_modes
>> *mode,
>>                 sunxi_lcdc_tcon0_mode_set(mode);
>>                 sunxi_composer_enable();
>>                 sunxi_lcdc_enable();
>> +               sunxi_vga_external_dac_enable();
>>   #endif
>>                 break;
>>         }
>>
>

  reply	other threads:[~2015-01-12 10:51 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-12 10:02 [U-Boot] [PATCH 0/3] sunxi: Enable VGA output on Hummingbird A31 Chen-Yu Tsai
2015-01-12 10:02 ` [U-Boot] [PATCH 1/3] sunxi: video: Allow external DACs for VGA on platforms without TV encoders Chen-Yu Tsai
2015-01-12 10:02 ` [U-Boot] [PATCH 2/3] sunxi: video: Add support for external DAC enable pin Chen-Yu Tsai
2015-01-12 10:19   ` Hans de Goede
2015-01-12 10:51     ` Chen-Yu Tsai [this message]
2015-01-12 10:02 ` [U-Boot] [PATCH 3/3] sunxi: Hummingbird_A31_defconfig: Enable VGA output through external DAC Chen-Yu Tsai
2015-01-12 10:18 ` [U-Boot] [PATCH 0/3] sunxi: Enable VGA output on Hummingbird A31 Hans de Goede
2015-01-12 11:00   ` Chen-Yu Tsai
2015-01-13 11:16 ` Hans de Goede

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='CAGb2v66yJbOhJv2_XdH88a9ZxGKW7iYQ9Ty7v8hBv_LtO5P=iA@mail.gmail.com' \
    --to=wens@csie.org \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.