Skip to contentSkip to conversation

omap3beagle: add driver to turn on the TFP410 framer to get DVI output

PATCH In review Koen Kooi 2 participants 3 messages May 15, 2008 – May 16, 2008

Subsystems (4)
lore
Share & tools
lore

Koen Kooi

author
#0 lore raw

PATCH 1/1 omap3beagle: add driver to turn on the TFP410 framer to get DVI output

---
 arch/arm/mach-omap2/board-omap3beagle.c |   11 +++
 drivers/video/omap/Makefile             |    1 +
 drivers/video/omap/lcd_omap3beagle.c    |  135 +++++++++++++++++++++++++++++++
 3 files changed, 147 insertions(+), 0 deletions(-)
 create mode 100644 drivers/video/omap/lcd_omap3beagle.c
arch/arm/mach-omap2/board-omap3beagle.c +11 -0
index 0c0cbfc..c992cc7 100644
@@ -63,12 +63,23 @@ static struct platform_device omap3_beagle_twl4030rtc_device = {
 	.id             = -1,
 };
 
+static struct platform_device omap3_beagle_lcd_device = {
+	.name		= "omap3beagle_lcd",
+	.id		= -1,
+};
+
+static struct omap_lcd_config omap3_beagle_lcd_config __initdata = {
+	.ctrl_name	= "internal",
+};
+
 static struct omap_board_config_kernel omap3_beagle_config[] __initdata = {
 	{ OMAP_TAG_UART,	&omap3_beagle_uart_config },
 	{ OMAP_TAG_MMC,		&omap3beagle_mmc_config },
+	{ OMAP_TAG_LCD,		&omap3_beagle_lcd_config },
 };
 
 static struct platform_device *omap3_beagle_devices[] __initdata = {
+	&omap3_beagle_lcd_device,
 #ifdef CONFIG_RTC_DRV_TWL4030
 	&omap3_beagle_twl4030rtc_device,
 #endif
drivers/video/omap/Makefile +1 -0
index cad6a68..fe7ee5d 100644
@@ -32,6 +32,7 @@ objs-y$(CONFIG_MACH_OMAP_APOLLON) += lcd_apollon.o
 objs-y$(CONFIG_MACH_OMAP_2430SDP) += lcd_2430sdp.o
 objs-y$(CONFIG_MACH_OMAP_3430SDP) += lcd_2430sdp.o
 objs-y$(CONFIG_MACH_OMAP3EVM) += lcd_omap3evm.o
+objs-y$(CONFIG_MACH_OMAP3_BEAGLE) += lcd_omap3beagle.o
 objs-y$(CONFIG_FB_OMAP_LCD_MIPID) += lcd_mipid.o
 
 omapfb-objs := $(objs-yy)
drivers/video/omap/lcd_omap3beagle.c new file +135 -0

135 lines not on this page · raw message

Signature · 1 line
1.5.4.3
#1 lore raw

Hi Koen,

Quoted 31 lines
drivers/video/omap/lcd_omap3beagle.c new file +25 -0
new file mode 100644
index 0000000..f5b7466
@@ -0,0 +1,135 @@
+/*
+ * LCD panel support for the TI OMAP3 Beagle board
+ *
+ * Author: Koen Kooi <[email protected]>
+ *
+ * Derived from drivers/video/omap/lcd-omap3evm.c
+ *
+ * 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; either version 2 of the License, or (at your
+ * option) any later version.
+ *
+ * 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.
+ */
+
+#include <linux/module.h>
+#include <linux/platform_device.h>
+#include <linux/i2c/twl4030.h>

drivers/video/omap/lcd_omap3beagle.c line 35

Quoted 10 lines
drivers/video/omap/lcd_omap3beagle.c new file +10 -0
+
+#include <asm/arch/gpio.h>
+#include <asm/arch/mux.h>
+#include <asm/arch/omapfb.h>
+#include <asm/mach-types.h>
+
+#define LCD_PANEL_ENABLE_GPIO       170
+
+#define LCD_XRES               1024
+#define LCD_YRES               768

I don't think there is a need for LCD_PIXCLOCK_MAX and LCD_PIXCLOCK_MIN. It should be changed to LCD_PIXCLOCK, am I right?

drivers/video/omap/lcd_omap3beagle.c line 37

Quoted 2 lines
drivers/video/omap/lcd_omap3beagle.c new file +2 -0
+#define LCD_PIXCLOCK_MAX        64000 /* in kHz */
+#define LCD_PIXCLOCK_MIN        64000 /* in kHz */

Regards,
Arun C

#2 lore raw
Quoted 39 lines · arun c

Hi Koen,

Quoted 37 lines
drivers/video/omap/lcd_omap3beagle.c new file +31 -0
new file mode 100644
index 0000000..f5b7466
@@ -0,0 +1,135 @@
+/*
+ * LCD panel support for the TI OMAP3 Beagle board
+ *
+ * Author: Koen Kooi <[email protected]>
+ *
+ * Derived from drivers/video/omap/lcd-omap3evm.c
+ *
+ * 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; either version 2 of the License, or (at your
+ * option) any later version.
+ *
+ * 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.
+ */
+
+#include <linux/module.h>
+#include <linux/platform_device.h>
+#include <linux/i2c/twl4030.h>
+
+#include <asm/arch/gpio.h>
+#include <asm/arch/mux.h>
+#include <asm/arch/omapfb.h>
+#include <asm/mach-types.h>
+
Quoted 8 lines

drivers/video/omap/lcd_omap3beagle.c line 35

Quoted 4 lines
drivers/video/omap/lcd_omap3beagle.c new file +4 -0
+#define LCD_PANEL_ENABLE_GPIO       170
+
+#define LCD_XRES               1024
+#define LCD_YRES               768

I don't think there is a need for LCD_PIXCLOCK_MAX and LCD_PIXCLOCK_MIN. It should be changed to LCD_PIXCLOCK, am I right?

Sorry a small change it should not be LCD_PIXCLOCK , only LCD_PIXCLOCK_MAX is enough.

Quoted 7 lines

drivers/video/omap/lcd_omap3beagle.c line 37

Quoted 3 lines
drivers/video/omap/lcd_omap3beagle.c new file +2 -0
+#define LCD_PIXCLOCK_MAX        64000 /* in kHz */
+#define LCD_PIXCLOCK_MIN        64000 /* in kHz */

Regards,
Arun C