From 57f0f512b273f60d52568b8c6b77e17f5636edc0 Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Wed, 5 Aug 2015 17:04:01 -0300 Subject: Initial import --- drivers/video/fbdev/omap2/omapfb/Kconfig | 27 + drivers/video/fbdev/omap2/omapfb/Makefile | 2 + drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c | 925 ++++++++ drivers/video/fbdev/omap2/omapfb/omapfb-main.c | 2655 +++++++++++++++++++++++ drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c | 605 ++++++ drivers/video/fbdev/omap2/omapfb/omapfb.h | 208 ++ 6 files changed, 4422 insertions(+) create mode 100644 drivers/video/fbdev/omap2/omapfb/Kconfig create mode 100644 drivers/video/fbdev/omap2/omapfb/Makefile create mode 100644 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c create mode 100644 drivers/video/fbdev/omap2/omapfb/omapfb-main.c create mode 100644 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c create mode 100644 drivers/video/fbdev/omap2/omapfb/omapfb.h (limited to 'drivers/video/fbdev/omap2/omapfb') diff --git a/drivers/video/fbdev/omap2/omapfb/Kconfig b/drivers/video/fbdev/omap2/omapfb/Kconfig new file mode 100644 index 000000000..4cb12ce68 --- /dev/null +++ b/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/drivers/video/fbdev/omap2/omapfb/Makefile b/drivers/video/fbdev/omap2/omapfb/Makefile new file mode 100644 index 000000000..51c2e00d9 --- /dev/null +++ b/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/drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c b/drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c new file mode 100644 index 000000000..9ddfdd63b --- /dev/null +++ b/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