From c95e99381a922105014325ae5b4d9057ddb3ee0e Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Mon, 6 Aug 2012 14:44:09 +0300 Subject: [PATCH] --- yaml --- r: 333539 b: refs/heads/master c: f6a0492ee0f243415b03632826b80a8c8ae3680b h: refs/heads/master i: 333537: 709bf1a14778bf390605f0fb9486e9616e2954aa 333535: 710384ab66b35c0f6b2c8f2dbd6c8325a090a2de v: v3 --- [refs] | 2 +- trunk/drivers/video/omap2/dss/Makefile | 2 +- trunk/drivers/video/omap2/dss/dss.h | 4 + trunk/drivers/video/omap2/dss/manager-sysfs.c | 499 ++++++++++++++++++ trunk/drivers/video/omap2/dss/manager.c | 462 +--------------- 5 files changed, 507 insertions(+), 462 deletions(-) create mode 100644 trunk/drivers/video/omap2/dss/manager-sysfs.c diff --git a/[refs] b/[refs] index b34fb285fd08..6217d7566450 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 916915161d6a6995275dd41c580b3c9e16a859df +refs/heads/master: f6a0492ee0f243415b03632826b80a8c8ae3680b diff --git a/trunk/drivers/video/omap2/dss/Makefile b/trunk/drivers/video/omap2/dss/Makefile index 927d5ce48e75..00a6eb566bb6 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 overlay.o overlay-sysfs.o apply.o + manager.o manager-sysfs.o overlay.o overlay-sysfs.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 11b053e53867..5e9fd7691728 100644 --- a/trunk/drivers/video/omap2/dss/dss.h +++ b/trunk/drivers/video/omap2/dss/dss.h @@ -254,6 +254,10 @@ static inline bool dss_mgr_is_lcd(enum omap_channel id) return false; } +int dss_manager_kobj_init(struct omap_overlay_manager *mgr, + struct platform_device *pdev); +void dss_manager_kobj_uninit(struct omap_overlay_manager *mgr); + /* overlay */ void dss_init_overlays(struct platform_device *pdev); void dss_uninit_overlays(struct platform_device *pdev); diff --git a/trunk/drivers/video/omap2/dss/manager-sysfs.c b/trunk/drivers/video/omap2/dss/manager-sysfs.c new file mode 100644 index 000000000000..9b875fbe757e --- /dev/null +++ b/trunk/drivers/video/omap2/dss/manager-sysfs.c @@ -0,0 +1,499 @@ +/* + * Copyright (C) 2009 Nokia Corporation + * Author: Tomi Valkeinen + * + * Some code and ideas taken from drivers/video/omap/ driver + * by Imre Deak. + * + * 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 . + */ + +#define DSS_SUBSYS_NAME "MANAGER" + +#include +#include +#include +#include +#include + +#include