Skip to contentSkip to conversation

TI:OMAP: [PATCH 5/7] Add DSS driver for OMAP3

U-Boot Khasim Syed Mohammed 4 participants 6 messages Jan 18, 2010 – May 13, 2010 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
Quoted 28 lines · Khasim Syed Mohammed

From cf8fa28973de7609d27146730d9e019b7c919b51 Mon Sep 17 00:00:00 2001
From: Syed Mohammed Khasim <[email protected]>
Date: Tue, 12 Jan 2010 23:57:28 +0530
Subject: [PATCH] Add DSS driver for OMAP3

Supports dynamic panel configuration
Supports dynamic tv standard selection
Adds support for DSS register access through generic APIs

Incorporated DSS register access using structures.

Previous discussions are here
http://www.mail-archive.com/u-boot at lists.denx.de/msg27150.html

---
 drivers/video/Makefile           |    1 +
 drivers/video/omap3_dss.c        |  130 ++++++++++++++++++++++++++++
 include/asm-arm/arch-omap3/dss.h |  173 ++++++++++++++++++++++++++++++++++++++
 3 files changed, 304 insertions(+), 0 deletions(-)
 create mode 100644 drivers/video/omap3_dss.c
 create mode 100644 include/asm-arm/arch-omap3/dss.h
drivers/video/Makefile +0 -0
index bb6b5a0..cb15dc2 100644

drivers/video/Makefile COBJS-$(CONFIG_SED156X) += sed156x.o · line 40

Quoted 4 lines
drivers/video/Makefile +1 -0
@@ -37,6 +37,7 @@ COBJS-$(CONFIG_SED156X) += sed156x.o
 COBJS-$(CONFIG_VIDEO_SM501) += sm501.o
 COBJS-$(CONFIG_VIDEO_SMI_LYNXEM) += smiLynxEM.o
 COBJS-$(CONFIG_VIDEO_VCXK) += bus_vcxk.o
+COBJS-$(CONFIG_VIDEO_OMAP3) += omap3_dss.o

Alphabetical order

Quoted 13 lines
drivers/video/Makefile +0 -0
 COBJS-y += videomodes.o
 
 COBJS	:= $(COBJS-y)
drivers/video/omap3_dss.c new file +4 -0
new file mode 100644
index 0000000..69c705a
@@ -0,0 +1,130 @@
+/*
+ * (C) Copyright 2010
+ * Texas Instruments, <www.ti.com>
+ * Syed Mohammed Khasim <[email protected]>

drivers/video/omap3_dss.c line 14

Quoted 10 lines
drivers/video/omap3_dss.c new file +10 -0
+ *
+ * Referred to Linux DSS driver files for OMAP3
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation's version 2 of
+ * the License.

This needs an - or later -
http://www.denx.de/wiki/U-Boot/Patches
Similar problem below.

Quoted 6 lines
drivers/video/omap3_dss.c new file +6 -0
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *

<snip>

Quoted 18 lines

+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ */

drivers/video/omap3_dss.c new file +2 -0
+
 
 
+#include <common.h>

new file mode 100644
index 0000000..e5e3b0d

include/asm-arm/arch-omap3/dss.h new file +4 -0
@@ -0,0 +1,173 @@
+/*
+ * (C) Copyright 2010
+ * Texas Instruments, <www.ti.com>
+ * Syed Mohammed Khasim <[email protected]>

include/asm-arm/arch-omap3/dss.h line 14

Quoted 10 lines
include/asm-arm/arch-omap3/dss.h new file +10 -0
+ *
+ * Referred to Linux DSS driver files for OMAP3
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation's version 2 of
+ * the License.

Similar license
- or later -

Quoted 15 lines
include/asm-arm/arch-omap3/dss.h new file +15 -0
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ */
+
+#ifndef DSS_H
+#define DSS_H
+

include/asm-arm/arch-omap3/dss.h line 39

Quoted 10 lines
include/asm-arm/arch-omap3/dss.h new file +10 -0
+/*
+ * DSS Base Registers
+ */
+#define OMAP3_DSS_BASE		0x48050040
+#define OMAP3_DISPC_BASE	0x48050440
+#define OMAP3_VENC_BASE		0x48050C00
+
+/* DSS Registers */
+struct dss_regs {
+	u32 control;				/* 0x40 */

Add a comment to explain why base starts at 0x40
could also be handled with changing code
OMAP3_DSS_BASE 0x48050000
struct dss_regs {
u8 reserved_1[0x40];
..

include/asm-arm/arch-omap3/dss.h line 45

Quoted 6 lines
include/asm-arm/arch-omap3/dss.h new file +6 -0
+	u32 sdi_control;			/* 0x44 */
+	u32 pll_control;			/* 0x48 */
+};
+
+/* DISPC Registers */
+struct dispc_regs {

similar

include/asm-arm/arch-omap3/dss.h line 46

Quoted 1 line
include/asm-arm/arch-omap3/dss.h new file +1 -0
+	u32 control;				/* 0x40 */

Tom

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw
Quoted 26 lines · Tom
Quoted 25 lines · Khasim Syed Mohammed

From cf8fa28973de7609d27146730d9e019b7c919b51 Mon Sep 17 00:00:00 2001
From: Syed Mohammed Khasim <[email protected]>
Date: Tue, 12 Jan 2010 23:57:28 +0530
Subject: [PATCH] Add DSS driver for OMAP3

Supports dynamic panel configuration
Supports dynamic tv standard selection
Adds support for DSS register access through generic APIs

Incorporated DSS register access using structures.

Previous discussions are here
http://www.mail-archive.com/u-boot at lists.denx.de/msg27150.html

---

?drivers/video/Makefile ? ? ? ? ? | ? ?1 +
?drivers/video/omap3_dss.c ? ? ? ?| ?130 ++++++++++++++++++++++++++++
?include/asm-arm/arch-omap3/dss.h | ?173

++++++++++++++++++++++++++++++++++++++
?3 files changed, 304 insertions(+), 0 deletions(-) ?create mode 100644 drivers/video/omap3_dss.c ?create mode 100644 include/asm-arm/arch-omap3/dss.h

Quoted 11 lines
Quoted 9 lines
drivers/video/Makefile +0 -0
index bb6b5a0..cb15dc2 100644
@@ -37,6 +37,7 @@ COBJS-$(CONFIG_SED156X) += sed156x.o

?COBJS-$(CONFIG_VIDEO_SM501) += sm501.o
?COBJS-$(CONFIG_VIDEO_SMI_LYNXEM) += smiLynxEM.o
?COBJS-$(CONFIG_VIDEO_VCXK) += bus_vcxk.o
+COBJS-$(CONFIG_VIDEO_OMAP3) += omap3_dss.o

Alphabetical order

Sure

Quoted 29 lines
Quoted 14 lines

?COBJS-y += videomodes.o

?COBJS ?:= $(COBJS-y)

drivers/video/omap3_dss.c new file +4 -0
new file mode 100644
index 0000000..69c705a
@@ -0,0 +1,130 @@
+/*
+ * (C) Copyright 2010
+ * Texas Instruments, <www.ti.com>
+ * Syed Mohammed Khasim <[email protected]>

drivers/video/omap3_dss.c line 14

Quoted 10 lines
drivers/video/omap3_dss.c new file +10 -0
+ *
+ * Referred to Linux DSS driver files for OMAP3
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation's version 2 of
+ * the License.

This needs an - or later -
http://www.denx.de/wiki/U-Boot/Patches
Similar problem below.

Quoted 8 lines
Quoted 6 lines
drivers/video/omap3_dss.c new file +6 -0
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ?See the
+ * GNU General Public License for more details.
+ *

<snip>

Sure

Quoted 24 lines
Quoted 24 lines

+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ */

drivers/video/omap3_dss.c new file +2 -0
+
 
 
+#include <common.h>

new file mode 100644
index 0000000..e5e3b0d

include/asm-arm/arch-omap3/dss.h new file +9 -0
@@ -0,0 +1,173 @@
+/*
+ * (C) Copyright 2010
+ * Texas Instruments, <www.ti.com>
+ * Syed Mohammed Khasim <[email protected]>
+ *
+ * Referred to Linux DSS driver files for OMAP3
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
Quoted 8 lines

include/asm-arm/arch-omap3/dss.h line 14

Quoted 5 lines
include/asm-arm/arch-omap3/dss.h new file +5 -0
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation's version 2 of
+ * the License.

Similar license
- or later -

Sure

Quoted 25 lines
Quoted 25 lines
include/asm-arm/arch-omap3/dss.h new file +24 -0
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ?See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ */
+
+#ifndef DSS_H
+#define DSS_H
+
+/*
+ * DSS Base Registers
+ */
+#define OMAP3_DSS_BASE ? ? ? ? 0x48050040
+#define OMAP3_DISPC_BASE ? ? ? 0x48050440
+#define OMAP3_VENC_BASE ? ? ? ? ? ? ? ?0x48050C00
+
+/* DSS Registers */
+struct dss_regs {
Quoted 8 lines

include/asm-arm/arch-omap3/dss.h line 39

Quoted 1 line
include/asm-arm/arch-omap3/dss.h new file +1 -0
+ ? ? ? u32 control; ? ? ? ? ? ? ? ? ? ? ? ? ? ?/* 0x40 */

Add a comment to explain why base starts at 0x40
could also be handled with changing code
OMAP3_DSS_BASE 0x48050000
struct dss_regs {
u8 reserved_1[0x40];
..

may be,.. let me try.

Quoted 9 lines

include/asm-arm/arch-omap3/dss.h line 45

Quoted 7 lines
include/asm-arm/arch-omap3/dss.h new file +6 -0
+ ? ? ? u32 sdi_control; ? ? ? ? ? ? ? ? ? ? ? ?/* 0x44 */
+ ? ? ? u32 pll_control; ? ? ? ? ? ? ? ? ? ? ? ?/* 0x48 */
+};
+
+/* DISPC Registers */
+struct dispc_regs {

similar

ok

Quoted 4 lines

include/asm-arm/arch-omap3/dss.h line 46

Quoted 2 lines
include/asm-arm/arch-omap3/dss.h new file +1 -0
+ ? ? ? u32 control; ? ? ? ? ? ? ? ? ? ? ? ? ? ?/* 0x40 */

Tom

Thanks for very detailed review. Mainly Licensing.

Regards,
Khasim

#4 lore raw
Quoted 26 lines · Khasim Syed Mohammed
Quoted 25 lines · Tom
Quoted 24 lines · Khasim Syed Mohammed

From cf8fa28973de7609d27146730d9e019b7c919b51 Mon Sep 17 00:00:00 2001
From: Syed Mohammed Khasim <[email protected]>
Date: Tue, 12 Jan 2010 23:57:28 +0530
Subject: [PATCH] Add DSS driver for OMAP3

Supports dynamic panel configuration
Supports dynamic tv standard selection
Adds support for DSS register access through generic APIs

Incorporated DSS register access using structures.

Previous discussions are here
http://www.mail-archive.com/u-boot at lists.denx.de/msg27150.html

---
 drivers/video/Makefile           |    1 +
 drivers/video/omap3_dss.c        |  130 ++++++++++++++++++++++++++++
 include/asm-arm/arch-omap3/dss.h |  173
++++++++++++++++++++++++++++++++++++++
 3 files changed, 304 insertions(+), 0 deletions(-)
 create mode 100644 drivers/video/omap3_dss.c
 create mode 100644 include/asm-arm/arch-omap3/dss.h

<snip>

Quoted 16 lines
Quoted 8 lines
Quoted 8 lines
(quoted diff) +8 -0
+/*
+ * DSS Base Registers
+ */
+#define OMAP3_DSS_BASE         0x48050040
+#define OMAP3_DISPC_BASE       0x48050440
+#define OMAP3_VENC_BASE                0x48050C00
+
+/* DSS Registers */
Quoted 8 lines

Review

Quoted 2 lines
(quoted diff) +2 -0
+struct dss_regs {
+       u32 control;                            /* 0x40 */

Add a comment to explain why base starts at 0x40
could also be handled with changing code
OMAP3_DSS_BASE 0x48050000
struct dss_regs {
u8 reserved_1[0x40];
..

Quoted 1 line

may be,.. let me try.

This can just be fixed by a simple comment like /* Note : 0x40 is offset from OMAP3_DSS_BASE */ This helps avoid people wondering why 0x40 and not 0x0

Quoted 9 lines
Quoted 8 lines

Review

Quoted 7 lines
(quoted diff) +6 -0
+       u32 sdi_control;                        /* 0x44 */
+       u32 pll_control;                        /* 0x48 */
+};
+
+/* DISPC Registers */
+struct dispc_regs {

similar

Quoted 5 lines

ok

Quoted 2 lines
Quoted 1 line

+ u32 control; /* 0x40 */

Tom

Thanks for very detailed review. Mainly Licensing.

Yes.

Quoted 3 lines

Regards,
Khasim

Tom

#5 lore raw
In reply to Khasim Syed Mohammed

What is the status of this patch. Was an updated one ever submitted?

Quoted 173 lines · Khasim Syed Mohammed
Quoted 26 lines · Tom
Quoted 25 lines · Khasim Syed Mohammed

From cf8fa28973de7609d27146730d9e019b7c919b51 Mon Sep 17 00:00:00 2001
From: Syed Mohammed Khasim <[email protected]>
Date: Tue, 12 Jan 2010 23:57:28 +0530
Subject: [PATCH] Add DSS driver for OMAP3

Supports dynamic panel configuration
Supports dynamic tv standard selection
Adds support for DSS register access through generic APIs

Incorporated DSS register access using structures.

Previous discussions are here
http://www.mail-archive.com/u-boot at lists.denx.de/msg27150.html

---

?drivers/video/Makefile ? ? ? ? ? | ? ?1 +
?drivers/video/omap3_dss.c ? ? ? ?| ?130 ++++++++++++++++++++++++++++
?include/asm-arm/arch-omap3/dss.h | ?173

++++++++++++++++++++++++++++++++++++++
?3 files changed, 304 insertions(+), 0 deletions(-) ?create mode 100644 drivers/video/omap3_dss.c ?create mode 100644 include/asm-arm/arch-omap3/dss.h

Quoted 11 lines
Quoted 9 lines
drivers/video/Makefile +0 -0
index bb6b5a0..cb15dc2 100644
@@ -37,6 +37,7 @@ COBJS-$(CONFIG_SED156X) += sed156x.o

?COBJS-$(CONFIG_VIDEO_SM501) += sm501.o
?COBJS-$(CONFIG_VIDEO_SMI_LYNXEM) += smiLynxEM.o
?COBJS-$(CONFIG_VIDEO_VCXK) += bus_vcxk.o
+COBJS-$(CONFIG_VIDEO_OMAP3) += omap3_dss.o

Alphabetical order

Sure

Quoted 29 lines
Quoted 14 lines

?COBJS-y += videomodes.o

?COBJS ?:= $(COBJS-y)

drivers/video/omap3_dss.c new file +4 -0
new file mode 100644
index 0000000..69c705a
@@ -0,0 +1,130 @@
+/*
+ * (C) Copyright 2010
+ * Texas Instruments, <www.ti.com>
+ * Syed Mohammed Khasim <[email protected]>

drivers/video/omap3_dss.c line 14

Quoted 10 lines
drivers/video/omap3_dss.c new file +10 -0
+ *
+ * Referred to Linux DSS driver files for OMAP3
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation's version 2 of
+ * the License.

This needs an - or later -
http://www.denx.de/wiki/U-Boot/Patches
Similar problem below.

Quoted 8 lines
Quoted 6 lines
drivers/video/omap3_dss.c new file +6 -0
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ?See the
+ * GNU General Public License for more details.
+ *

<snip>

Sure

Quoted 24 lines
Quoted 24 lines

+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ */

drivers/video/omap3_dss.c new file +2 -0
+
 
 
+#include <common.h>

new file mode 100644
index 0000000..e5e3b0d

include/asm-arm/arch-omap3/dss.h new file +9 -0
@@ -0,0 +1,173 @@
+/*
+ * (C) Copyright 2010
+ * Texas Instruments, <www.ti.com>
+ * Syed Mohammed Khasim <[email protected]>
+ *
+ * Referred to Linux DSS driver files for OMAP3
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
Quoted 8 lines

include/asm-arm/arch-omap3/dss.h line 14

Quoted 5 lines
include/asm-arm/arch-omap3/dss.h new file +5 -0
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation's version 2 of
+ * the License.

Similar license
- or later -

Sure

Quoted 25 lines
Quoted 25 lines
include/asm-arm/arch-omap3/dss.h new file +24 -0
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ?See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ */
+
+#ifndef DSS_H
+#define DSS_H
+
+/*
+ * DSS Base Registers
+ */
+#define OMAP3_DSS_BASE ? ? ? ? 0x48050040
+#define OMAP3_DISPC_BASE ? ? ? 0x48050440
+#define OMAP3_VENC_BASE ? ? ? ? ? ? ? ?0x48050C00
+
+/* DSS Registers */
+struct dss_regs {
Quoted 8 lines

include/asm-arm/arch-omap3/dss.h line 39

Quoted 1 line
include/asm-arm/arch-omap3/dss.h new file +1 -0
+ ? ? ? u32 control; ? ? ? ? ? ? ? ? ? ? ? ? ? ?/* 0x40 */

Add a comment to explain why base starts at 0x40
could also be handled with changing code
OMAP3_DSS_BASE 0x48050000
struct dss_regs {
u8 reserved_1[0x40];
..

may be,.. let me try.

Quoted 9 lines

include/asm-arm/arch-omap3/dss.h line 45

Quoted 7 lines
include/asm-arm/arch-omap3/dss.h new file +6 -0
+ ? ? ? u32 sdi_control; ? ? ? ? ? ? ? ? ? ? ? ?/* 0x44 */
+ ? ? ? u32 pll_control; ? ? ? ? ? ? ? ? ? ? ? ?/* 0x48 */
+};
+
+/* DISPC Registers */
+struct dispc_regs {

similar

ok

Quoted 4 lines

include/asm-arm/arch-omap3/dss.h line 46

Quoted 2 lines
include/asm-arm/arch-omap3/dss.h new file +1 -0
+ ? ? ? u32 control; ? ? ? ? ? ? ? ? ? ? ? ? ? ?/* 0x40 */

Tom

Thanks for very detailed review. Mainly Licensing.

Regards,
Khasim
_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

#6 lore raw
Quoted 4 lines

What is the status of this patch. Was an updated one ever submitted?

To the best of my knowledge multiple revisions were sent to the list but there were outstanding comments against the last set as well.

IIRC Tom had some comments

Quoted 20 lines
Quoted 17 lines · Khasim Syed Mohammed
Quoted 16 lines · Tom
Quoted 15 lines · Khasim Syed Mohammed

From cf8fa28973de7609d27146730d9e019b7c919b51 Mon Sep 17 00:00:00 2001
From: Syed Mohammed Khasim <[email protected]>
Date: Tue, 12 Jan 2010 23:57:28 +0530
Subject: [PATCH] Add DSS driver for OMAP3

Supports dynamic panel configuration
Supports dynamic tv standard selection
Adds support for DSS register access through generic APIs

Incorporated DSS register access using structures.

Previous discussions are here
http://www.mail-archive.com/u-boot at lists.denx.de/msg27150.html