From 9ca8dbcc65cfc63d6f5ef3312a33184e1d726e00 Mon Sep 17 00:00:00 2001 From: Yunhong Jiang Date: Tue, 4 Aug 2015 12:17:53 -0700 Subject: Add the rt linux 4.1.3-rt3 as base Import the rt linux 4.1.3-rt3 as OPNFV kvm base. It's from git://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git linux-4.1.y-rt and the base is: commit 0917f823c59692d751951bf5ea699a2d1e2f26a2 Author: Sebastian Andrzej Siewior Date: Sat Jul 25 12:13:34 2015 +0200 Prepare v4.1.3-rt3 Signed-off-by: Sebastian Andrzej Siewior We lose all the git history this way and it's not good. We should apply another opnfv project repo in future. Change-Id: I87543d81c9df70d99c5001fbdf646b202c19f423 Signed-off-by: Yunhong Jiang --- kernel/drivers/video/fbdev/omap2/omapfb/Kconfig | 27 + kernel/drivers/video/fbdev/omap2/omapfb/Makefile | 2 + .../video/fbdev/omap2/omapfb/omapfb-ioctl.c | 925 +++++++ .../drivers/video/fbdev/omap2/omapfb/omapfb-main.c | 2655 ++++++++++++++++++++ .../video/fbdev/omap2/omapfb/omapfb-sysfs.c | 605 +++++ kernel/drivers/video/fbdev/omap2/omapfb/omapfb.h | 208 ++ 6 files changed, 4422 insertions(+) create mode 100644 kernel/drivers/video/fbdev/omap2/omapfb/Kconfig create mode 100644 kernel/drivers/video/fbdev/omap2/omapfb/Makefile create mode 100644 kernel/drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c create mode 100644 kernel/drivers/video/fbdev/omap2/omapfb/omapfb-main.c create mode 100644 kernel/drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c create mode 100644 kernel/drivers/video/fbdev/omap2/omapfb/omapfb.h (limited to 'kernel/drivers/video/fbdev/omap2/omapfb') diff --git a/kernel/drivers/video/fbdev/omap2/omapfb/Kconfig b/kernel/drivers/video/fbdev/omap2/omapfb/Kconfig new file mode 100644 index 000000000..4cb12ce68 --- /dev/null +++ b/kernel/drivers/video/fbdev/omap2/omapfb/Kconfig @@ -0,0 +1,27 @@ +menuconfig FB_OMAP2 + tristate "OMAP2+ frame buffer support" + depends on FB && OMAP2_DSS && !DRM_OMAP + + select OMAP2_VRFB if ARCH_OMAP2 || ARCH_OMAP3 + select FB_CFB_FILLRECT + select FB_CFB_COPYAREA + select FB_CFB_IMAGEBLIT + help + Frame buffer driver for OMAP2+ based boards. + +config FB_OMAP2_DEBUG_SUPPORT + bool "Debug support for OMAP2+ FB" + default y + depends on FB_OMAP2 + help + Support for debug output. You have to enable the actual printing + with 'debug' module parameter. + +config FB_OMAP2_NUM_FBS + int "Number of framebuffers" + range 1 10 + default 3 + depends on FB_OMAP2 + help + Select the number of framebuffers created. OMAP2/3 has 3 overlays + so normally this would be 3. diff --git a/kernel/drivers/video/fbdev/omap2/omapfb/Makefile b/kernel/drivers/video/fbdev/omap2/omapfb/Makefile new file mode 100644 index 000000000..51c2e00d9 --- /dev/null +++ b/kernel/drivers/video/fbdev/omap2/omapfb/Makefile @@ -0,0 +1,2 @@ +obj-$(CONFIG_FB_OMAP2) += omapfb.o +omapfb-y := omapfb-main.o omapfb-sysfs.o omapfb-ioctl.o diff --git a/kernel/drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c b/kernel/drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c new file mode 100644 index 000000000..9ddfdd63b --- /dev/null +++ b/kernel/drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c @@ -0,0 +1,925 @@ +/* + * linux/drivers/video/omap2/omapfb-ioctl.c + * + * Copyright (C) 2008 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 . + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include