Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1234494 > unrolled thread

[PATCH v4 09/26] ARM: pxa: magician: Optimize powerup delays for Samsung LCD

Started byPetr Cvek <petr.cvek@tul.cz>
First post2015-09-28 23:20 +0200
Last post2015-10-03 14:40 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH v4 09/26] ARM: pxa: magician: Optimize powerup delays for  Samsung LCD Petr Cvek <petr.cvek@tul.cz> - 2015-09-28 23:20 +0200
    Re: [PATCH v4 09/26] ARM: pxa: magician: Optimize powerup delays  for Samsung LCD Philipp Zabel <philipp.zabel@gmail.com> - 2015-10-03 14:40 +0200

#1234494 — [PATCH v4 09/26] ARM: pxa: magician: Optimize powerup delays for Samsung LCD

FromPetr Cvek <petr.cvek@tul.cz>
Date2015-09-28 23:20 +0200
Subject[PATCH v4 09/26] ARM: pxa: magician: Optimize powerup delays for Samsung LCD
Message-ID<qdO05-2Tc-73@gated-at.bofh.it>
Delays for the Samsung LCD are greater than needed. These values were
extracted from a datasheet.

Signed-off-by: Petr Cvek <petr.cvek@tul.cz>
---
 arch/arm/mach-pxa/magician.c | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)

diff --git a/arch/arm/mach-pxa/magician.c b/arch/arm/mach-pxa/magician.c
index d78fc3a..14d1f55 100644
--- a/arch/arm/mach-pxa/magician.c
+++ b/arch/arm/mach-pxa/magician.c
@@ -366,21 +366,19 @@ static void samsung_lcd_power(int on, struct fb_var_screeninfo *si)
 			gpio_set_value(GPIO75_MAGICIAN_SAMSUNG_POWER, 1);
 		else
 			gpio_set_value(EGPIO_MAGICIAN_LCD_POWER, 1);
-		mdelay(10);
+		mdelay(6);
 		gpio_set_value(GPIO106_MAGICIAN_LCD_DCDC_NRESET, 1);
-		mdelay(10);
+		mdelay(6);	/* Avdd -> Voff >5ms */
 		gpio_set_value(GPIO104_MAGICIAN_LCD_VOFF_EN, 1);
-		mdelay(30);
+		mdelay(16);	/* Voff -> Von >(5+10)ms */
 		gpio_set_value(GPIO105_MAGICIAN_LCD_VON_EN, 1);
-		mdelay(10);
 	} else {
-		mdelay(10);
 		gpio_set_value(GPIO105_MAGICIAN_LCD_VON_EN, 0);
-		mdelay(30);
+		mdelay(16);
 		gpio_set_value(GPIO104_MAGICIAN_LCD_VOFF_EN, 0);
-		mdelay(10);
+		mdelay(6);
 		gpio_set_value(GPIO106_MAGICIAN_LCD_DCDC_NRESET, 0);
-		mdelay(10);
+		mdelay(6);
 		if (system_rev < 3)
 			gpio_set_value(GPIO75_MAGICIAN_SAMSUNG_POWER, 0);
 		else
-- 
1.7.12.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [next] | [standalone]


#1238842 — Re: [PATCH v4 09/26] ARM: pxa: magician: Optimize powerup delays for Samsung LCD

FromPhilipp Zabel <philipp.zabel@gmail.com>
Date2015-10-03 14:40 +0200
SubjectRe: [PATCH v4 09/26] ARM: pxa: magician: Optimize powerup delays for Samsung LCD
Message-ID<qfugx-1TL-13@gated-at.bofh.it>
In reply to#1234494
Am Montag, den 28.09.2015, 23:16 +0200 schrieb Petr Cvek:
> Delays for the Samsung LCD are greater than needed. These values were
> extracted from a datasheet.
> 
> Signed-off-by: Petr Cvek <petr.cvek@tul.cz>

Acked-by: Philipp Zabel <philipp.zabel@gmail.com>

regards
Philipp
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web