From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pawel Moll Date: Wed, 17 Apr 2013 15:17:21 +0000 Subject: [RFC 09/10] video: Versatile Express DVI mode driver Message-Id: <1366211842-21497-10-git-send-email-pawel.moll@arm.com> List-Id: References: <1366211842-21497-1-git-send-email-pawel.moll@arm.com> In-Reply-To: <1366211842-21497-1-git-send-email-pawel.moll@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-fbdev@vger.kernel.org, linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, devicetree-discuss@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org Cc: Laurent Pinchart , Linus Walleij , Russell King - ARM Linux , Pawel Moll Versatile Express DVI output is driven by a Sii9022 chip. It can be controller to a limited extend by the Motherboard Config Controller, and that's what the driver is doing now. It is a temporary measure till there's a full I2C driver for the chip. Signed-off-by: Pawel Moll --- drivers/video/Makefile | 1 + drivers/video/vexpress-dvimode.c | 158 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 159 insertions(+) create mode 100644 drivers/video/vexpress-dvimode.c diff --git a/drivers/video/Makefile b/drivers/video/Makefile index 84c6083..9347e00 100644 --- a/drivers/video/Makefile +++ b/drivers/video/Makefile @@ -179,3 +179,4 @@ obj-$(CONFIG_OF_VIDEOMODE) += of_videomode.o # platform specific output drivers obj-$(CONFIG_VEXPRESS_CONFIG) += vexpress-muxfpga.o +obj-$(CONFIG_VEXPRESS_CONFIG) += vexpress-dvimode.o diff --git a/drivers/video/vexpress-dvimode.c b/drivers/video/vexpress-dvimode.c new file mode 100644 index 0000000..85d5608 --- /dev/null +++ b/drivers/video/vexpress-dvimode.c @@ -0,0 +1,158 @@ +/* + * 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. + * + * Copyright (C) 2013 ARM Limited + */ + +#define pr_fmt(fmt) "vexpress-dvimode: " fmt + +#include +#include +#include +#include +#include