From 0f141847fc8ee4cdb103c3113a4217c089839dce Mon Sep 17 00:00:00 2001 From: "Mathieu J. Poirier" Date: Tue, 29 Mar 2011 16:51:43 -0600 Subject: Porting av8100 portion of video driver from .35 to .38 Signed-off-by: Mathieu Poirier --- drivers/video/av8100/Kconfig | 48 + drivers/video/av8100/Makefile | 10 + drivers/video/av8100/av8100.c | 3617 ++++++++++++++++++++++++++++++++++++ drivers/video/av8100/av8100_fw.h | 1165 ++++++++++++ drivers/video/av8100/av8100_regs.h | 340 ++++ drivers/video/av8100/hdmi.c | 2220 ++++++++++++++++++++++ drivers/video/av8100/hdmi_loc.h | 67 + 7 files changed, 7467 insertions(+) create mode 100644 drivers/video/av8100/Kconfig create mode 100644 drivers/video/av8100/Makefile create mode 100644 drivers/video/av8100/av8100.c create mode 100644 drivers/video/av8100/av8100_fw.h create mode 100644 drivers/video/av8100/av8100_regs.h create mode 100644 drivers/video/av8100/hdmi.c create mode 100644 drivers/video/av8100/hdmi_loc.h (limited to 'drivers/video/av8100') diff --git a/drivers/video/av8100/Kconfig b/drivers/video/av8100/Kconfig new file mode 100644 index 00000000000..40b9943aaa9 --- /dev/null +++ b/drivers/video/av8100/Kconfig @@ -0,0 +1,48 @@ +config AV8100 + tristate "AV8100 driver support(HDMI/CVBS)" + default n + help + Please enable this feature if hdmi/tvout driver support is required. + +config HDMI_AV8100_DEBUG + bool "HDMI and AV8100 debug messages" + default n + depends on AV8100 + ---help--- + Say Y here if you want the HDMI and AV8100 driver to + output debug messages. + +choice + prompt "AV8100 HW trig method" + default AV8100_HWTRIG_DSI_TE + +config AV8100_HWTRIG_INT + bool "AV8100 HW trig on INT" + depends on AV8100 + ---help--- + If you say Y here AV8100 will use HW triggering + from AV8100 INT to MCDE sync0. + +config AV8100_HWTRIG_I2SDAT3 + bool "AV8100 HW trig on I2SDAT3" + depends on AV8100 + ---help--- + If you say Y here AV8100 will use HW triggering + from AV8100 I2SDAT3 to MCDE sync1. + +config AV8100_HWTRIG_DSI_TE + bool "AV8100 HW trig on DSI" + depends on AV8100 + ---help--- + If you say Y here AV8100 will use HW triggering + using DSI TE polling between AV8100 and MCDE. + +config AV8100_HWTRIG_NONE + bool "AV8100 SW trig" + depends on AV8100 + ---help--- + If you say Y here AV8100 will use SW triggering + between AV8100 and MCDE. + +endchoice + diff --git a/drivers/video/av8100/Makefile b/drivers/video/av8100/Makefile new file mode 100644 index 00000000000..2d3028b18ca --- /dev/null +++ b/drivers/video/av8100/Makefile @@ -0,0 +1,10 @@ +# Make file for compiling and loadable module HDMI + +obj-$(CONFIG_AV8100) += av8100.o hdmi.o + +ifdef CONFIG_HDMI_AV8100_DEBUG +EXTRA_CFLAGS += -DDEBUG +endif + +clean-files := av8100.o hdmi.o built-in.o modules.order + diff --git a/drivers/video/av8100/av8100.c b/drivers/video/av8100/av8100.c new file mode 100644 index 00000000000..6bacded36df --- /dev/null +++ b/drivers/video/av8100/av8100.c @@ -0,0 +1,3617 @@ +/* + * Copyright (C) ST-Ericsson AB 2010 + * + * AV8100 driver + * + * Author: Per Persson + * for ST-Ericsson. + * + * License terms: GNU General Public License (GPL), version 2. + */ + + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "av8100_regs.h" +#include