From 1d3b8915d41e46dfc2ce876be2b787f927fd1bc0 Mon Sep 17 00:00:00 2001 From: Archit Taneja Date: Fri, 7 Sep 2012 17:38:00 +0530 Subject: [PATCH] --- yaml --- r: 333575 b: refs/heads/master c: 484dc404d233696ef65a8e676f9d4fe563b091ee h: refs/heads/master i: 333573: 4e16e06f142356746f7d5a4098ea84f4ef5cfc22 333571: a68c7d6a195c6cdf451ef853b22a981f59bc6753 333567: c3ac1f229d6e41722b2c514b9dab4279684ab537 v: v3 --- [refs] | 2 +- trunk/drivers/video/omap2/dss/Makefile | 2 +- trunk/drivers/video/omap2/dss/dss.h | 4 +++ trunk/drivers/video/omap2/dss/output.c | 48 ++++++++++++++++++++++++++ trunk/include/video/omapdss.h | 30 ++++++++++++++++ 5 files changed, 84 insertions(+), 2 deletions(-) create mode 100644 trunk/drivers/video/omap2/dss/output.c diff --git a/[refs] b/[refs] index d210f4d4ad55..b51623290291 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: fc22a84339d387203cc2a1685fb251a5ad4c9b43 +refs/heads/master: 484dc404d233696ef65a8e676f9d4fe563b091ee diff --git a/trunk/drivers/video/omap2/dss/Makefile b/trunk/drivers/video/omap2/dss/Makefile index 00a6eb566bb6..4549869bfe1a 100644 --- a/trunk/drivers/video/omap2/dss/Makefile +++ b/trunk/drivers/video/omap2/dss/Makefile @@ -1,6 +1,6 @@ obj-$(CONFIG_OMAP2_DSS) += omapdss.o omapdss-y := core.o dss.o dss_features.o dispc.o dispc_coefs.o display.o \ - manager.o manager-sysfs.o overlay.o overlay-sysfs.o apply.o + manager.o manager-sysfs.o overlay.o overlay-sysfs.o output.o apply.o omapdss-$(CONFIG_OMAP2_DSS_DPI) += dpi.o omapdss-$(CONFIG_OMAP2_DSS_RFBI) += rfbi.o omapdss-$(CONFIG_OMAP2_DSS_VENC) += venc.o venc_panel.o diff --git a/trunk/drivers/video/omap2/dss/dss.h b/trunk/drivers/video/omap2/dss/dss.h index 40c36cafec6e..aecd3bea2e63 100644 --- a/trunk/drivers/video/omap2/dss/dss.h +++ b/trunk/drivers/video/omap2/dss/dss.h @@ -226,6 +226,10 @@ int dss_ovl_set_manager(struct omap_overlay *ovl, struct omap_overlay_manager *mgr); int dss_ovl_unset_manager(struct omap_overlay *ovl); +/* output */ +void dss_register_output(struct omap_dss_output *out); +void dss_unregister_output(struct omap_dss_output *out); + /* display */ int dss_suspend_all_devices(void); int dss_resume_all_devices(void); diff --git a/trunk/drivers/video/omap2/dss/output.c b/trunk/drivers/video/omap2/dss/output.c new file mode 100644 index 000000000000..388a6c997b9c --- /dev/null +++ b/trunk/drivers/video/omap2/dss/output.c @@ -0,0 +1,48 @@ +/* + * Copyright (C) 2012 Texas Instruments Ltd + * Author: Archit Taneja + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 as published by + * the Free Software Foundation. + * + * 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, see . + */ + +#include +#include +#include + +#include