All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefano Babic <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/6] davinci: ea20: reorganisation LCD startup
Date: Wed, 15 Aug 2012 19:04:47 +0200	[thread overview]
Message-ID: <502BD6AF.1070603@denx.de> (raw)
In-Reply-To: <1344583606-12778-1-git-send-email-Bastian.Ruppert@Sewerin.de>

On 10/08/2012 09:26, Bastian Ruppert wrote:
> Signed-off-by: Bastian Ruppert <Bastian.Ruppert@Sewerin.de>
> CC: Tom Rini <trini@ti.com>
> CC: Stefano Babic <sbabic@denx.de>
> ---
>  board/davinci/ea20/ea20.c |   23 +++++++++++++++--------
>  1 files changed, 15 insertions(+), 8 deletions(-)
> 
> diff --git a/board/davinci/ea20/ea20.c b/board/davinci/ea20/ea20.c
> index 7e00040..69307e4 100644
> --- a/board/davinci/ea20/ea20.c
> +++ b/board/davinci/ea20/ea20.c
> @@ -176,6 +176,9 @@ int board_early_init_f(void)
>  	if (davinci_configure_pin_mux(gpio_pins, ARRAY_SIZE(gpio_pins)) != 0)
>  		return 1;
>  
> +	/* Set DISP_ON high to enable LCD output*/
> +	gpio_direction_output(97, 1);
> +
>  	/* Set the RESETOUTn low */
>  	gpio_direction_output(111, 0);
>  
> @@ -188,9 +191,6 @@ int board_early_init_f(void)
>  	/* Set LCD_B_PWR low to power down LCD Backlight*/
>  	gpio_direction_output(102, 0);
>  
> -	/* Set DISP_ON low to disable LCD output*/
> -	gpio_direction_output(97, 0);
> -
>  #ifndef CONFIG_USE_IRQ
>  	irq_init();
>  #endif
> @@ -250,11 +250,6 @@ int board_early_init_f(void)
>  	writel(readl(&davinci_syscfg_regs->mstpri[2]) & 0x0fffffff,
>  	       &davinci_syscfg_regs->mstpri[2]);
>  
> -	/* Set LCD_B_PWR low to power up LCD Backlight*/
> -	gpio_set_value(102, 1);
> -
> -	/* Set DISP_ON low to disable LCD output*/
> -	gpio_set_value(97, 1);
>  
>  	return 0;
>  }
> @@ -276,6 +271,9 @@ int board_init(void)
>  
>  int board_late_init(void)
>  {
> +	unsigned char buf[2];
> +	int ret;
> +
>  	/* PinMux for HALTEN */
>  	if (davinci_configure_pin_mux(halten_pin, ARRAY_SIZE(halten_pin)) != 0)
>  		return 1;
> @@ -285,6 +283,15 @@ int board_late_init(void)
>  
>  	setenv("stdout", "serial");
>  
> +	/* Set fixed contrast settings for LCD via I2C potentiometer */
> +	buf[0] = 0x00;
> +	buf[1] = 0xd7;
> +	ret = i2c_write(0x2e, 6, 1, buf, 2);
> +	if (ret)
> +		puts("\nContrast Settings FAILED\n");
> +
> +	/* Set LCD_B_PWR high to power up LCD Backlight*/
> +	gpio_set_value(102, 1);
>  	return 0;
>  }
>  #endif /* CONFIG_BOARD_LATE_INIT */
> 

Acked-by: Stefano Babic <sbabic@denx.de>

Best regards,
Stefano Babic


-- 
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================

      parent reply	other threads:[~2012-08-15 17:04 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-10  7:26 [U-Boot] [PATCH 1/6] davinci: ea20: reorganisation LCD startup Bastian Ruppert
2012-08-10  7:26 ` [U-Boot] [PATCH 2/6] davinci: ea20: the console is always set to the serial line Bastian Ruppert
2012-08-15 17:04   ` Stefano Babic
2012-08-10  7:26 ` [U-Boot] [PATCH 3/6] video: cfb_console: logo can be positioned via the splashpos variable Bastian Ruppert
2012-09-01 22:29   ` [U-Boot] [PATCH v2 " Anatolij Gustschin
2012-09-05 10:52     ` Bastian.Ruppert at sewerin.de
2012-09-05 11:11       ` Anatolij Gustschin
2012-09-06  6:07     ` [U-Boot] [PATCH v3 1/6] davinci: ea20: reorganisation LCD startup Bastian Ruppert
2012-09-06  6:07     ` [U-Boot] [PATCH v3 2/6] davinci: ea20: the console is always set to the serial line Bastian Ruppert
2012-09-06  6:07     ` [U-Boot] [PATCH v3 3/6] video: cfb_console: logo can be positioned via the splashpos variable Bastian Ruppert
2012-09-06 18:55       ` Anatolij Gustschin
2012-09-06  6:07     ` [U-Boot] [PATCH v3 4/6] video: cfb_console: add function to plot the logo area black Bastian Ruppert
2012-09-06 18:56       ` Anatolij Gustschin
2012-09-06  6:07     ` [U-Boot] [PATCH v3 5/6] da850/omap-l138: davinci_emac: Suppress auto negotiation if needed Bastian Ruppert
2012-09-07  8:08       ` Prabhakar Lad
2012-09-09  2:14         ` Tom Rini
2012-09-10  6:01           ` Bastian.Ruppert at sewerin.de
2012-09-10 16:08             ` Tom Rini
2012-09-11  4:16               ` Prabhakar Lad
2012-09-11  5:32                 ` Bastian.Ruppert at sewerin.de
2012-09-12 16:15                   ` Tom Rini
2012-09-06  6:07     ` [U-Boot] [PATCH v3 6/6] davinci: ea20: add some configs and default environmet variables Bastian Ruppert
2012-09-01 22:50   ` [U-Boot] [PATCH 3/6] video: cfb_console: logo can be positioned via the splashpos variable Anatolij Gustschin
2012-09-05 10:52     ` Bastian.Ruppert at sewerin.de
2012-09-14  8:28     ` [U-Boot] [PATCH v4 1/6] davinci: ea20: reorganisation LCD startup Bastian Ruppert
2012-09-14  8:29     ` [U-Boot] [PATCH v4 2/6] davinci: ea20: the console is always set to the serial line Bastian Ruppert
2012-09-14  8:29     ` [U-Boot] [PATCH v4 3/6] video: cfb_console: logo can be positioned via the splashpos variable Bastian Ruppert
2012-09-14  8:29     ` [U-Boot] [PATCH v4 4/6] video: cfb_console: add function to plot the logo area black Bastian Ruppert
2012-09-14  8:29     ` [U-Boot] [PATCH v4 5/6] da850/omap-l138: davinci_emac: Suppress auto negotiation if needed Bastian Ruppert
2012-09-17  5:19       ` Prabhakar Lad
2012-09-14  8:29     ` [U-Boot] [PATCH v4 6/6] davinci: ea20: add some configs and default environmet variables Bastian Ruppert
2012-08-10  7:26 ` [U-Boot] [PATCH 4/6] video: cfb_console: add function to plot the logo area black Bastian Ruppert
2012-08-10  7:26 ` [U-Boot] [PATCH 5/6] da850/omap-l138: davinci_emac: Suppress auto negotiation if needed Bastian Ruppert
2012-08-15 17:04   ` Stefano Babic
2012-08-10  7:26 ` [U-Boot] [PATCH 6/6] davinci: ea20: add some configs and default environmet variables Bastian Ruppert
2012-08-15 17:03   ` Stefano Babic
2012-08-15 16:55 ` [U-Boot] [PATCH 1/6] davinci: ea20: reorganisation LCD startup Tom Rini
2012-08-24 17:55   ` Tom Rini
2012-09-07  4:48     ` Bastian.Ruppert at sewerin.de
2012-08-15 17:04 ` Stefano Babic [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=502BD6AF.1070603@denx.de \
    --to=sbabic@denx.de \
    --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.