From 8e4bff4cab0ddac6060645b0715210484d02ff40 Mon Sep 17 00:00:00 2001 From: Yuval Adam <_@yuv.al> Date: Wed, 30 Aug 2017 08:25:59 +0000 Subject: Initial file dump from open source release --- drivers/video/omap2/Kconfig | 10 + drivers/video/omap2/Makefile | 5 + drivers/video/omap2/displays/Kconfig | 75 + drivers/video/omap2/displays/Makefile | 11 + drivers/video/omap2/displays/panel-acx565akm.c | 798 +++ drivers/video/omap2/displays/panel-generic-dpi.c | 744 +++ .../omap2/displays/panel-lgphilips-lb035q02.c | 262 + drivers/video/omap2/displays/panel-n8x0.c | 616 +++ .../omap2/displays/panel-nec-nl8048hl11-01b.c | 290 + drivers/video/omap2/displays/panel-picodlp.c | 561 ++ drivers/video/omap2/displays/panel-picodlp.h | 288 + .../video/omap2/displays/panel-sharp-ls037v7dw01.c | 198 + drivers/video/omap2/displays/panel-taal.c | 1551 ++++++ drivers/video/omap2/displays/panel-tfp410.c | 353 ++ .../video/omap2/displays/panel-tpo-td043mtea1.c | 596 +++ drivers/video/omap2/dss/Kconfig | 119 + drivers/video/omap2/dss/Makefile | 15 + drivers/video/omap2/dss/apply.c | 1678 ++++++ drivers/video/omap2/dss/core.c | 664 +++ drivers/video/omap2/dss/dispc-compat.c | 667 +++ drivers/video/omap2/dss/dispc-compat.h | 30 + drivers/video/omap2/dss/dispc.c | 3765 +++++++++++++ drivers/video/omap2/dss/dispc.h | 897 ++++ drivers/video/omap2/dss/dispc_coefs.c | 325 ++ drivers/video/omap2/dss/display-sysfs.c | 321 ++ drivers/video/omap2/dss/display.c | 221 + drivers/video/omap2/dss/dpi.c | 744 +++ drivers/video/omap2/dss/dsi.c | 5660 ++++++++++++++++++++ drivers/video/omap2/dss/dss.c | 974 ++++ drivers/video/omap2/dss/dss.h | 515 ++ drivers/video/omap2/dss/dss_features.c | 979 ++++ drivers/video/omap2/dss/dss_features.h | 124 + drivers/video/omap2/dss/hdmi.c | 1175 ++++ drivers/video/omap2/dss/hdmi_panel.c | 414 ++ drivers/video/omap2/dss/manager-sysfs.c | 512 ++ drivers/video/omap2/dss/manager.c | 248 + drivers/video/omap2/dss/output.c | 181 + drivers/video/omap2/dss/overlay-sysfs.c | 456 ++ drivers/video/omap2/dss/overlay.c | 207 + drivers/video/omap2/dss/rfbi.c | 1162 ++++ drivers/video/omap2/dss/sdi.c | 403 ++ drivers/video/omap2/dss/ti_hdmi.h | 190 + drivers/video/omap2/dss/ti_hdmi_4xxx_ip.c | 1430 +++++ drivers/video/omap2/dss/ti_hdmi_4xxx_ip.h | 436 ++ drivers/video/omap2/dss/venc.c | 950 ++++ drivers/video/omap2/dss/venc_panel.c | 232 + drivers/video/omap2/omapfb/Kconfig | 27 + drivers/video/omap2/omapfb/Makefile | 2 + drivers/video/omap2/omapfb/omapfb-ioctl.c | 917 ++++ drivers/video/omap2/omapfb/omapfb-main.c | 2603 +++++++++ drivers/video/omap2/omapfb/omapfb-sysfs.c | 605 +++ drivers/video/omap2/omapfb/omapfb.h | 208 + drivers/video/omap2/vrfb.c | 399 ++ 53 files changed, 36813 insertions(+) create mode 100644 drivers/video/omap2/Kconfig create mode 100644 drivers/video/omap2/Makefile create mode 100644 drivers/video/omap2/displays/Kconfig create mode 100644 drivers/video/omap2/displays/Makefile create mode 100644 drivers/video/omap2/displays/panel-acx565akm.c create mode 100644 drivers/video/omap2/displays/panel-generic-dpi.c create mode 100644 drivers/video/omap2/displays/panel-lgphilips-lb035q02.c create mode 100644 drivers/video/omap2/displays/panel-n8x0.c create mode 100644 drivers/video/omap2/displays/panel-nec-nl8048hl11-01b.c create mode 100644 drivers/video/omap2/displays/panel-picodlp.c create mode 100644 drivers/video/omap2/displays/panel-picodlp.h create mode 100644 drivers/video/omap2/displays/panel-sharp-ls037v7dw01.c create mode 100644 drivers/video/omap2/displays/panel-taal.c create mode 100644 drivers/video/omap2/displays/panel-tfp410.c create mode 100644 drivers/video/omap2/displays/panel-tpo-td043mtea1.c create mode 100644 drivers/video/omap2/dss/Kconfig create mode 100644 drivers/video/omap2/dss/Makefile create mode 100644 drivers/video/omap2/dss/apply.c create mode 100644 drivers/video/omap2/dss/core.c create mode 100644 drivers/video/omap2/dss/dispc-compat.c create mode 100644 drivers/video/omap2/dss/dispc-compat.h create mode 100644 drivers/video/omap2/dss/dispc.c create mode 100644 drivers/video/omap2/dss/dispc.h create mode 100644 drivers/video/omap2/dss/dispc_coefs.c create mode 100644 drivers/video/omap2/dss/display-sysfs.c create mode 100644 drivers/video/omap2/dss/display.c create mode 100644 drivers/video/omap2/dss/dpi.c create mode 100644 drivers/video/omap2/dss/dsi.c create mode 100644 drivers/video/omap2/dss/dss.c create mode 100644 drivers/video/omap2/dss/dss.h create mode 100644 drivers/video/omap2/dss/dss_features.c create mode 100644 drivers/video/omap2/dss/dss_features.h create mode 100644 drivers/video/omap2/dss/hdmi.c create mode 100644 drivers/video/omap2/dss/hdmi_panel.c create mode 100644 drivers/video/omap2/dss/manager-sysfs.c create mode 100644 drivers/video/omap2/dss/manager.c create mode 100644 drivers/video/omap2/dss/output.c create mode 100644 drivers/video/omap2/dss/overlay-sysfs.c create mode 100644 drivers/video/omap2/dss/overlay.c create mode 100644 drivers/video/omap2/dss/rfbi.c create mode 100644 drivers/video/omap2/dss/sdi.c create mode 100644 drivers/video/omap2/dss/ti_hdmi.h create mode 100644 drivers/video/omap2/dss/ti_hdmi_4xxx_ip.c create mode 100644 drivers/video/omap2/dss/ti_hdmi_4xxx_ip.h create mode 100644 drivers/video/omap2/dss/venc.c create mode 100644 drivers/video/omap2/dss/venc_panel.c create mode 100644 drivers/video/omap2/omapfb/Kconfig create mode 100644 drivers/video/omap2/omapfb/Makefile create mode 100644 drivers/video/omap2/omapfb/omapfb-ioctl.c create mode 100644 drivers/video/omap2/omapfb/omapfb-main.c create mode 100644 drivers/video/omap2/omapfb/omapfb-sysfs.c create mode 100644 drivers/video/omap2/omapfb/omapfb.h create mode 100644 drivers/video/omap2/vrfb.c (limited to 'drivers/video/omap2') diff --git a/drivers/video/omap2/Kconfig b/drivers/video/omap2/Kconfig new file mode 100644 index 00000000..b07b2b04 --- /dev/null +++ b/drivers/video/omap2/Kconfig @@ -0,0 +1,10 @@ +config OMAP2_VRFB + bool + +if ARCH_OMAP2PLUS + +source "drivers/video/omap2/dss/Kconfig" +source "drivers/video/omap2/omapfb/Kconfig" +source "drivers/video/omap2/displays/Kconfig" + +endif diff --git a/drivers/video/omap2/Makefile b/drivers/video/omap2/Makefile new file mode 100644 index 00000000..296e5c52 --- /dev/null +++ b/drivers/video/omap2/Makefile @@ -0,0 +1,5 @@ +obj-$(CONFIG_OMAP2_VRFB) += vrfb.o + +obj-$(CONFIG_OMAP2_DSS) += dss/ +obj-y += displays/ +obj-$(CONFIG_FB_OMAP2) += omapfb/ diff --git a/drivers/video/omap2/displays/Kconfig b/drivers/video/omap2/displays/Kconfig new file mode 100644 index 00000000..c3853c92 --- /dev/null +++ b/drivers/video/omap2/displays/Kconfig @@ -0,0 +1,75 @@ +menu "OMAP2/3 Display Device Drivers" + depends on OMAP2_DSS + +config PANEL_GENERIC_DPI + tristate "Generic DPI Panel" + depends on OMAP2_DSS_DPI + help + Generic DPI panel driver. + Supports DVI output for Beagle and OMAP3 SDP. + Supports LCD Panel used in TI SDP3430 and EVM boards, + OMAP3517 EVM boards and CM-T35. + +config PANEL_TFP410 + tristate "TFP410 DPI-to-DVI chip" + depends on OMAP2_DSS_DPI && I2C + help + Driver for TFP410 DPI-to-DVI chip. The driver uses i2c to read EDID + information from the monitor. + +config PANEL_LGPHILIPS_LB035Q02 + tristate "LG.Philips LB035Q02 LCD Panel" + depends on OMAP2_DSS_DPI && SPI + help + LCD Panel used on the Gumstix Overo Palo35 + +config PANEL_SHARP_LS037V7DW01 + tristate "Sharp LS037V7DW01 LCD Panel" + depends on OMAP2_DSS_DPI + depends on BACKLIGHT_CLASS_DEVICE + help + LCD Panel used in TI's SDP3430 and EVM boards + +config PANEL_NEC_NL8048HL11_01B + tristate "NEC NL8048HL11-01B Panel" + depends on OMAP2_DSS_DPI + depends on SPI + depends on BACKLIGHT_CLASS_DEVICE + help + This NEC NL8048HL11-01B panel is TFT LCD + used in the Zoom2/3/3630 sdp boards. + +config PANEL_PICODLP + tristate "TI PICO DLP mini-projector" + depends on OMAP2_DSS_DPI && I2C + help + A mini-projector used in TI's SDP4430 and EVM boards + For more info please visit http://www.dlp.com/projector/ + +config PANEL_TAAL + tristate "Taal DSI Panel" + depends on OMAP2_DSS_DSI + depends on BACKLIGHT_CLASS_DEVICE + help + Taal DSI command mode panel from TPO. + +config PANEL_TPO_TD043MTEA1 + tristate "TPO TD043MTEA1 LCD Panel" + depends on OMAP2_DSS_DPI && SPI + help + LCD Panel used in OMAP3 Pandora + +config PANEL_ACX565AKM + tristate "ACX565AKM Panel" + depends on OMAP2_DSS_SDI && SPI + depends on BACKLIGHT_CLASS_DEVICE + help + This is the LCD panel used on Nokia N900 + +config PANEL_N8X0 + tristate "N8X0 Panel" + depends on OMAP2_DSS_RFBI && SPI + depends on BACKLIGHT_CLASS_DEVICE + help + This is the LCD panel used on Nokia N8x0 +endmenu diff --git a/drivers/video/omap2/displays/Makefile b/drivers/video/omap2/displays/Makefile new file mode 100644 index 00000000..58a5176b --- /dev/null +++ b/drivers/video/omap2/displays/Makefile @@ -0,0 +1,11 @@ +obj-$(CONFIG_PANEL_GENERIC_DPI) += panel-generic-dpi.o +obj-$(CONFIG_PANEL_TFP410) += panel-tfp410.o +obj-$(CONFIG_PANEL_LGPHILIPS_LB035Q02) += panel-lgphilips-lb035q02.o +obj-$(CONFIG_PANEL_SHARP_LS037V7DW01) += panel-sharp-ls037v7dw01.o +obj-$(CONFIG_PANEL_NEC_NL8048HL11_01B) += panel-nec-nl8048hl11-01b.o + +obj-$(CONFIG_PANEL_TAAL) += panel-taal.o +obj-$(CONFIG_PANEL_PICODLP) += panel-picodlp.o +obj-$(CONFIG_PANEL_TPO_TD043MTEA1) += panel-tpo-td043mtea1.o +obj-$(CONFIG_PANEL_ACX565AKM) += panel-acx565akm.o +obj-$(CONFIG_PANEL_N8X0) += panel-n8x0.o diff --git a/drivers/video/omap2/displays/panel-acx565akm.c b/drivers/video/omap2/displays/panel-acx565akm.c new file mode 100644 index 00000000..d7f69c09 --- /dev/null +++ b/drivers/video/omap2/displays/panel-acx565akm.c @@ -0,0 +1,798 @@ +/* + * Support for ACX565AKM LCD Panel used on Nokia N900 + * + * Copyright (C) 2010 Nokia Corporation + * + * Original Driver Author: Imre Deak + * Based on panel-generic.c by Tomi Valkeinen + * Adapted to new DSS2 framework: Roger Quadros + * + * 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 + +#include