Skip to contentSkip to conversation

Enable DSS driver for Beagle

PATCH New Syed Mohammed Khasim 1 participant 1 message Jan 9, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Enable DSS driver for Beagle

Configures DSS to display color bar on Svideo Configures DSS to display background color on DVID

---
 board/ti/beagle/beagle.c       |   13 +++++++
 board/ti/beagle/beagle.h       |   73 ++++++++++++++++++++++++++++++++++++++++
 include/configs/omap3_beagle.h |    1 +
 3 files changed, 87 insertions(+), 0 deletions(-)
board/ti/beagle/beagle.c +13 -0
index 7985ee9..29e47c8 100644
@@ -114,6 +114,17 @@ void beagle_identify(void)
 }
 
 /*
+ * Configure DSS to display background color on DVID
+ * Configure VENC to display color bar on S-Video
+ */
+void display_init(void)
+{
+	omap3_dss_venc_config(&venc_config_std_tv);
+	omap3_dss_panel_config(&dvid_cfg);
+	omap3_dss_set_background_col(DVI_BEAGLE_ORANGE_COL);
+}
+
+/*
  * Routine: misc_init_r
  * Description: Configure board specific parts
  */
@@ -122,6 +133,7 @@ int misc_init_r(void)
 	struct gpio *gpio5_base = (struct gpio *)OMAP34XX_GPIO5_BASE;
 	struct gpio *gpio6_base = (struct gpio *)OMAP34XX_GPIO6_BASE;
 
+	display_init();
 	beagle_identify();
 
 	twl4030_power_init();
@@ -154,6 +166,7 @@ int misc_init_r(void)
 	writel(GPIO31 | GPIO30 | GPIO29 | GPIO28 | GPIO22 | GPIO21 |
 		GPIO15 | GPIO14 | GPIO13 | GPIO12, &gpio5_base->setdataout);
 
+	omap3_dss_enable();
 	dieid_num_r();
 
 	return 0;
board/ti/beagle/beagle.h +73 -0

83 lines not on this page · raw message

include/configs/omap3_beagle.h +1 -0
index ff6d432..2c15df9 100644
@@ -120,6 +120,7 @@
 #define CONFIG_CMD_I2C		/* I2C serial bus support	*/
 #define CONFIG_CMD_MMC		/* MMC support			*/
 #define CONFIG_CMD_NAND		/* NAND support			*/
+#define CONFIG_VIDEO_OMAP3      /* DSS Support                  */
 
 #undef CONFIG_CMD_FLASH		/* flinfo, erase, protect	*/
 #undef CONFIG_CMD_FPGA		/* FPGA configuration Support	*/
Signature · 1 line
1.5.6.3