Skip to contentSkip to conversation

video: Add SHARP LQ084S3LG01 LCD support on P1022DS

PATCH New Timur Tabi 3 participants 4 messages May 26, 2011 – Jul 27, 2011

Subsystems (2)
lore
Share & tools
lore

Timur Tabi

author
#0 lore raw

PATCH v2 1/1 video: Add SHARP LQ084S3LG01 LCD support on P1022DS

The SHARP LQ084S3LG01 is a TFT LCD used on the P1022DS (revision "C") board. This device only supports 800x600 resolution, so if that resolution is selected, assume that this is the device. The device is attached to the LVDS port on the P1022DS board.

The existing 800x600 entry (for the PDM360NG board) is actually 800x480, so we fix that. To support two different 800x resolutions, the Y-resolution is now passed to fsl_diu_init() and both values are used to pick the proper fb_videomode structure.

The data for the 800x600 video mode is originally from Jiang Yutang.

---
 arch/powerpc/cpu/mpc512x/diu.c                |    2 +-
 board/freescale/mpc8610hpcd/mpc8610hpcd_diu.c |    2 +-
 board/freescale/p1022ds/diu.c                 |    2 +-
 drivers/video/fsl_diu_fb.c                    |   51 +++++++++++++++++-------
 include/fsl_diu_fb.h                          |    2 +-
 5 files changed, 40 insertions(+), 19 deletions(-)
arch/powerpc/cpu/mpc512x/diu.c +1 -1
index 9dc1e48..b7db249 100644
@@ -56,5 +56,5 @@ int platform_diu_init(unsigned int xres, unsigned int yres, const char *port)
 	unsigned int pixel_format = 0x88883316;
 
 	debug("mpc5121_diu_init\n");
-	return fsl_diu_init(xres, pixel_format, 0);
+	return fsl_diu_init(xres, yres, pixel_format, 0);
 }
board/freescale/mpc8610hpcd/mpc8610hpcd_diu.c +1 -1
index 3011bb8..358a432 100644
@@ -83,5 +83,5 @@ int platform_diu_init(unsigned int xres, unsigned int yres, const char *port)
 	printf("DIU:   Switching to %s monitor @ %ux%u\n", name, xres, yres);
 	out_8(&pixis->brdcfg0, temp);
 
-	return fsl_diu_init(xres, pixel_format, gamma_fix);
+	return fsl_diu_init(xres, yres, pixel_format, gamma_fix);
 }
board/freescale/p1022ds/diu.c +1 -1
index 7d1f6aa..cef81ce 100644
@@ -139,7 +139,7 @@ int platform_diu_init(unsigned int xres, unsigned int yres, const char *port)
 	clrsetbits_be32(&gur->pmuxcr, PMUXCR_ELBCDIU_MASK, PMUXCR_ELBCDIU_DIU);
 	pmuxcr = in_be32(&gur->pmuxcr);
 
-	return fsl_diu_init(xres, pixel_format, 0);
+	return fsl_diu_init(xres, yres, pixel_format, 0);
 }
 
 /*
drivers/video/fsl_diu_fb.c +36 -15

91 lines not on this page · raw message

include/fsl_diu_fb.h +1 -1
index 4c89f4b..a58e7e2 100644
@@ -24,7 +24,7 @@
  * MA 02111-1307 USA
  */
 
-int fsl_diu_init(int xres, u32 pixel_format, int gamma_fix);
+int fsl_diu_init(u16 xres, u16 yres, u32 pixel_format, int gamma_fix);
 
 /* Prototypes for external board-specific functions */
 int platform_diu_init(unsigned int xres, unsigned int yres, const char *port);
Signature · 1 line
1.7.3.4
#1 lore raw

PATCH v2 1/1 video: Add SHARP LQ084S3LG01 LCD support on P1022DS

Quoted 14 lines · On Thu, 26 May 2011 09:02:17 -0500 Timur Tabi <[email protected]> wrote:

The SHARP LQ084S3LG01 is a TFT LCD used on the P1022DS (revision "C") board. This device only supports 800x600 resolution, so if that resolution is selected, assume that this is the device. The device is attached to the LVDS port on the P1022DS board.

The existing 800x600 entry (for the PDM360NG board) is actually 800x480, so we fix that. To support two different 800x resolutions, the Y-resolution is now passed to fsl_diu_init() and both values are used to pick the proper fb_videomode structure.

The data for the 800x600 video mode is originally from Jiang Yutang.

Quoted 7 lines
---
 arch/powerpc/cpu/mpc512x/diu.c                |    2 +-
 board/freescale/mpc8610hpcd/mpc8610hpcd_diu.c |    2 +-
 board/freescale/p1022ds/diu.c                 |    2 +-
 drivers/video/fsl_diu_fb.c                    |   51 +++++++++++++++++-------
 include/fsl_diu_fb.h                          |    2 +-
 5 files changed, 40 insertions(+), 19 deletions(-)

applied to u-boot-video/master. Thanks!

Anatolij

#2 lore raw

PATCH v2 1/1 video: Add SHARP LQ084S3LG01 LCD support on P1022DS

Dear Anatolij Gustschin,

Quoted 9 lines · In message <20110705002700.2e54086d@wker> you wrote:
Quoted 7 lines
 arch/powerpc/cpu/mpc512x/diu.c                |    2 +-
 board/freescale/mpc8610hpcd/mpc8610hpcd_diu.c |    2 +-
 board/freescale/p1022ds/diu.c                 |    2 +-
 drivers/video/fsl_diu_fb.c                    |   51 +++++++++++++++++-------
 include/fsl_diu_fb.h                          |    2 +-
 5 files changed, 40 insertions(+), 19 deletions(-)

applied to u-boot-video/master. Thanks!

I don't think I have seen your pull request yet. What are your plans for sending it?

Best regards,

Wolfgang Denk

Signature · 7 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
When the tide of life turns against you
And the current upsets your boat
Don't waste tears on what might have been
Just lie on your back and float.
#3 lore raw

PATCH v2 1/1 video: Add SHARP LQ084S3LG01 LCD support on P1022DS

Hello Wolfgang,

Quoted 11 lines · On Wed, 27 Jul 2011 23:25:29 +0200 Wolfgang Denk <[email protected]> wrote:

Dear Anatolij Gustschin,

Quoted 8 lines · In message <20110705002700.2e54086d@wker> you wrote:
Quoted 7 lines
 arch/powerpc/cpu/mpc512x/diu.c                |    2 +-
 board/freescale/mpc8610hpcd/mpc8610hpcd_diu.c |    2 +-
 board/freescale/p1022ds/diu.c                 |    2 +-
 drivers/video/fsl_diu_fb.c                    |   51 +++++++++++++++++-------
 include/fsl_diu_fb.h                          |    2 +-
 5 files changed, 40 insertions(+), 19 deletions(-)
Quoted 4 lines
Quoted 1 line

applied to u-boot-video/master. Thanks!

I don't think I have seen your pull request yet. What are your plans for sending it?

I've send a pull request for some video patches, including this one, on 5 Jul 2011, I believe. It is also on patchwork

http://patchwork.ozlabs.org/patch/103178/

Best regards,
Anatolij