[U-Boot,V1,1/7] omap3: add useful dss defines

Submitted by Nikita Kiryanov on Jan. 29, 2013, 12:42 p.m.

Details

Message ID 1359463349-11649-2-git-send-email-nikita@compulab.co.il
State Superseded
Delegated to: Tom Rini
Headers show

Commit Message

Nikita Kiryanov Jan. 29, 2013, 12:42 p.m.
Add useful omap3 dss defines for: polarity, TFT data lines, lcd
display type, gfx burst size, and gfx format

Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il>
Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
---
 arch/arm/include/asm/arch-omap3/dss.h |   35 +++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

Comments

Wolfgang Denk Jan. 29, 2013, 1:55 p.m.
Dear Nikita Kiryanov,

In message <1359463349-11649-2-git-send-email-nikita@compulab.co.il> you wrote:
> Add useful omap3 dss defines for: polarity, TFT data lines, lcd
> display type, gfx burst size, and gfx format

Just "useful" (as in generally useful, but mostly dead code here),
or actually used somewhere?

Best regards,

Wolfgang Denk
Nikita Kiryanov Jan. 29, 2013, 2:11 p.m.
Hi Wolfgang Denk,

On 01/29/2013 03:55 PM, Wolfgang Denk wrote:
> Dear Nikita Kiryanov,
>
> In message <1359463349-11649-2-git-send-email-nikita@compulab.co.il> you wrote:
>> Add useful omap3 dss defines for: polarity, TFT data lines, lcd
>> display type, gfx burst size, and gfx format
>
> Just "useful" (as in generally useful, but mostly dead code here),
> or actually used somewhere?
>

They are used in other patches in this series. The only exception is the
#defines for gfx burst size, which were used in V1, but not in this
version. I kept the gfx burst size defines in the hope they will be
useful to someone, but I can remove them if you think this shouldn't be
done.

> Best regards,
>
> Wolfgang Denk
>

Patch hide | download patch | download mbox

diff --git a/arch/arm/include/asm/arch-omap3/dss.h b/arch/arm/include/asm/arch-omap3/dss.h
index ffaffbb..74321ae 100644
--- a/arch/arm/include/asm/arch-omap3/dss.h
+++ b/arch/arm/include/asm/arch-omap3/dss.h
@@ -167,6 +167,41 @@  struct venc_regs {
 #define VENC_OUT_SEL				(1 << 6)
 #define DIG_LPP_SHIFT				16
 
+/* LCD display type */
+#define PASSIVE_DISPLAY			0
+#define ACTIVE_DISPLAY			1
+
+/* TFTDATALINES */
+#define LCD_INTERFACE_12_BIT	0
+#define LCD_INTERFACE_16_BIT	1
+#define LCD_INTERFACE_18_BIT	2
+#define LCD_INTERFACE_24_BIT	3
+
+/* Polarity */
+#define DSS_IVS	(1 << 12)
+#define DSS_IHS	(1 << 13)
+#define DSS_IPC	(1 << 14)
+#define DSS_IEO	(1 << 15)
+
+/* GFX format */
+#define GFXFORMAT_BITMAP1		(0x0 << 1)
+#define GFXFORMAT_BITMAP2		(0x1 << 1)
+#define GFXFORMAT_BITMAP4		(0x2 << 1)
+#define GFXFORMAT_BITMAP8		(0x3 << 1)
+#define GFXFORMAT_RGB12			(0x4 << 1)
+#define GFXFORMAT_ARGB16		(0x5 << 1)
+#define GFXFORMAT_RGB16			(0x6 << 1)
+#define GFXFORMAT_RGB24_UNPACKED	(0x8 << 1)
+#define GFXFORMAT_RGB24_PACKED		(0x9 << 1)
+#define GFXFORMAT_ARGB32		(0xC << 1)
+#define GFXFORMAT_RGBA32		(0xD << 1)
+#define GFXFORMAT_RGBx32		(0xE << 1)
+
+/* GFX burst size */
+#define GFXBURSTSIZE4	(0 << 6)
+#define GFXBURSTSIZE8	(1 << 6)
+#define GFXBURSTSIZE16	(2 << 6)
+
 /* Panel Configuration */
 struct panel_config {
 	u32 timing_h;