[PATCH 08/16] viafb: Do not probe for LVDS/TMDS on OLPC XO-1.5

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jonathan Corbet
Date: Thursday, April 8, 2010 - 10:15 am

From: Chris Ball <cjb@laptop.org>

The i2c transactions involved in detecting LVDS (9 seconds) and TMDS
(16 seconds) add an extra 25 seconds to viafb load time on the XO-1.5.

[jc: minor merge conflict fixed]
Signed-off-by: Chris Ball <cjb@laptop.org>
---
 drivers/video/via/hw.c  |    4 ++++
 drivers/video/via/lcd.c |    4 ++++
 2 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/drivers/video/via/hw.c b/drivers/video/via/hw.c
index 7be462e..47ba09a 100644
--- a/drivers/video/via/hw.c
+++ b/drivers/video/via/hw.c
@@ -2054,6 +2054,10 @@ static void init_gfx_chip_info(struct pci_dev *pdev,
 
 static void init_tmds_chip_info(void)
 {
+#ifdef CONFIG_OLPC_XO_1_5
+	if (machine_is_olpc())
+		return;
+#endif
 	viafb_tmds_trasmitter_identify();
 
 	if (INTERFACE_NONE == viaparinfo->chip_info->tmds_chip_info.
diff --git a/drivers/video/via/lcd.c b/drivers/video/via/lcd.c
index e0e2310..37a9746 100644
--- a/drivers/video/via/lcd.c
+++ b/drivers/video/via/lcd.c
@@ -208,6 +208,10 @@ static bool lvds_identify_integratedlvds(void)
 
 int viafb_lvds_trasmitter_identify(void)
 {
+#ifdef CONFIG_OLPC_XO_1_5
+	if (machine_is_olpc())
+		return FAIL;
+#endif
 	viaparinfo->shared->i2c_stuff.i2c_port = I2CPORTINDEX;
 	if (viafb_lvds_identify_vt1636()) {
 		viaparinfo->chip_info->lvds_chip_info.i2c_port = I2CPORTINDEX;
-- 
1.7.0.1

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC] Initial OLPC Viafb merge, Jonathan Corbet, (Thu Apr 8, 10:15 am)
[PATCH 02/16] viafb: use proper pci config API, Jonathan Corbet, (Thu Apr 8, 10:15 am)
[PATCH 04/16] viafb: Retain GEMODE reserved bits, Jonathan Corbet, (Thu Apr 8, 10:15 am)
[PATCH 08/16] viafb: Do not probe for LVDS/TMDS on OLPC XO-1.5, Jonathan Corbet, (Thu Apr 8, 10:15 am)
[PATCH 11/16] Minimal support for viafb suspend/resume, Jonathan Corbet, (Thu Apr 8, 10:15 am)
[PATCH 14/16] Remove cursor restore hack in viafb, Jonathan Corbet, (Thu Apr 8, 10:15 am)
[PATCH 15/16] viafb: rework suspend/resume, Jonathan Corbet, (Thu Apr 8, 10:15 am)
[PATCH 16/16] viafb: Only suspend/resume on VX855, Jonathan Corbet, (Thu Apr 8, 10:15 am)
Re: [PATCH 01/16] [FB] viafb: Fix various resource leaks d ..., Florian Tobias Schan ..., (Thu Apr 8, 11:22 am)
Re: [PATCH 02/16] viafb: use proper pci config API, Florian Tobias Schan ..., (Thu Apr 8, 11:42 am)
Re: [PATCH 03/16] viafb: Unmap the frame buffer on initial ..., Florian Tobias Schan ..., (Thu Apr 8, 11:55 am)
Re: [PATCH 04/16] viafb: Retain GEMODE reserved bits, Florian Tobias Schan ..., (Thu Apr 8, 8:07 pm)
Re: [PATCH 05/16] viafb: Determine type of 2D engine and s ..., Florian Tobias Schan ..., (Thu Apr 8, 8:20 pm)
Re: [PATCH 06/16] viafb: complete support for VX800/VX855 ..., Florian Tobias Schan ..., (Thu Apr 8, 9:21 pm)
Re: [RFC] Initial OLPC Viafb merge, Florian Tobias Schan ..., (Thu Apr 8, 10:43 pm)
Re: [RFC] Initial OLPC Viafb merge, Jonathan Corbet, (Fri Apr 9, 11:46 am)
Re: [PATCH 02/16] viafb: use proper pci config API, Jonathan Corbet, (Fri Apr 9, 12:46 pm)
Re: [PATCH 04/16] viafb: Retain GEMODE reserved bits, Jonathan Corbet, (Fri Apr 9, 12:59 pm)
Re: [PATCH 04/16] viafb: Retain GEMODE reserved bits, Florian Tobias Schan ..., (Fri Apr 9, 1:23 pm)
Re: [PATCH 04/16] viafb: Retain GEMODE reserved bits, Jonathan Corbet, (Fri Apr 9, 1:30 pm)
Re: [PATCH 05/16] viafb: Determine type of 2D engine and s ..., Florian Tobias Schan ..., (Fri Apr 9, 1:34 pm)
Re: [PATCH 07/16] viafb: Add 1200x900 DCON/LCD panel modes ..., Florian Tobias Schan ..., (Fri Apr 9, 2:27 pm)
Re: [PATCH 08/16] viafb: Do not probe for LVDS/TMDS on OLP ..., Florian Tobias Schan ..., (Fri Apr 9, 2:40 pm)
Re: [PATCH 09/16] viafb: rework the I2C support in the VIA ..., Florian Tobias Schan ..., (Fri Apr 9, 3:07 pm)
Re: [PATCH 10/16] suppress verbose debug messages: change ..., Florian Tobias Schan ..., (Fri Apr 9, 3:09 pm)
Re: [RFC] Initial OLPC Viafb merge, Florian Tobias Schan ..., (Fri Apr 9, 4:32 pm)
Re: [RFC] Initial OLPC Viafb merge, Jonathan Corbet, (Fri Apr 9, 5:27 pm)
Re: [PATCH 08/16] viafb: Do not probe for LVDS/TMDS on OLP ..., Florian Tobias Schan ..., (Fri Apr 9, 5:42 pm)
Re: [RFC] Initial OLPC Viafb merge, Florian Tobias Schan ..., (Fri Apr 9, 6:02 pm)
Re: [PATCH 02/16] viafb: use proper pci config API, Harald Welte, (Fri Apr 9, 11:41 pm)
Re: [RFC] Initial OLPC Viafb merge, Bruno Prémont, (Sat Apr 10, 1:52 am)
Re: [RFC] Initial OLPC Viafb merge, Florian Tobias Schan ..., (Mon Apr 12, 8:03 pm)
Re: [PATCH 05/16] viafb: Determine type of 2D engine and s ..., Florian Tobias Schan ..., (Sun Apr 18, 11:05 am)
Re: [PATCH 07/16] viafb: Add 1200x900 DCON/LCD panel modes ..., Florian Tobias Schan ..., (Sun Apr 18, 11:24 am)
Re: [RFC] Initial OLPC Viafb merge, Jonathan Corbet, (Wed Apr 21, 1:37 pm)