Minimal Display driver for OMAP3
PATCH 1/1 Minimal Display driver for OMAP3
Supports dynamic configuration of Panel and Video Encoder Supports Background color on DVID
Supports Color bar on S-Video
Signed-off-by Syed Mohammed Khasim <[email protected]>
--- board/ti/beagle/beagle.c | 13 +++ board/ti/beagle/beagle.h | 73 ++++++++++++++ drivers/video/Makefile | 1 + drivers/video/omap3_dss.c | 128 +++++++++++++++++++++++++ include/asm-arm/arch-omap3/dss.h | 193 ++++++++++++++++++++++++++++++++++++++ include/configs/omap3_beagle.h | 1 + 6 files changed, 409 insertions(+), 0 deletions(-) create mode 100644 drivers/video/omap3_dss.c create mode 100644 include/asm-arm/arch-omap3/dss.h
board/ti/beagle/beagle.c +13 -0
@@ -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
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 COBJS-y += videomodes.o COBJS := $(COBJS-y)
drivers/video/omap3_dss.c new file +128 -0
128 lines not on this page · raw message
include/asm-arm/arch-omap3/dss.h new file +193 -0
193 lines not on this page · raw message
include/configs/omap3_beagle.h +1 -0
@@ -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