From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from perceval.ideasonboard.com ([95.142.166.194]:54864 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1031442Ab3HIXCa (ORCPT ); Fri, 9 Aug 2013 19:02:30 -0400 From: Laurent Pinchart To: dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-media@vger.kernel.org Subject: [PATCH/RFC v3 12/19] video: display: Add VGA Digital to Analog Converter support Date: Sat, 10 Aug 2013 01:03:11 +0200 Message-Id: <1376089398-13322-13-git-send-email-laurent.pinchart+renesas@ideasonboard.com> In-Reply-To: <1376089398-13322-1-git-send-email-laurent.pinchart+renesas@ideasonboard.com> References: <1376089398-13322-1-git-send-email-laurent.pinchart+renesas@ideasonboard.com> Sender: linux-media-owner@vger.kernel.org List-ID: This driver implements support for VGA Digital to Analog Converters (DACs) that receive pixel data through a DPI interface and have no control interface (GPIOs- and/or regulators-based control can be implemented later when needed). It exposes the devices a display entities. Signed-off-by: Laurent Pinchart --- drivers/video/display/Kconfig | 9 +++ drivers/video/display/Makefile | 1 + drivers/video/display/vga-dac.c | 152 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 162 insertions(+) create mode 100644 drivers/video/display/vga-dac.c diff --git a/drivers/video/display/Kconfig b/drivers/video/display/Kconfig index 9b44b5f..32ce08d 100644 --- a/drivers/video/display/Kconfig +++ b/drivers/video/display/Kconfig @@ -39,4 +39,13 @@ config DISPLAY_PANEL_R61517 If you are in doubt, say N. To compile this driver as a module, choose M here; the module will be called panel-r61517. +config DISPLAY_VGA_DAC + tristate "VGA Digital to Analog Converters" + ---help--- + Support for simple VGA digital to analog converters. Those converters + receive pixel data through a parallel bus and have no control bus. + + If you are in doubt, say N. To compile this driver as a module, choose + M here: the module will be called vga-dac. + endif # DISPLAY_CORE diff --git a/drivers/video/display/Makefile b/drivers/video/display/Makefile index 1cdc8d4..43cd78d 100644 --- a/drivers/video/display/Makefile +++ b/drivers/video/display/Makefile @@ -5,3 +5,4 @@ obj-$(CONFIG_DISPLAY_MIPI_DBI) += mipi-dbi-bus.o obj-$(CONFIG_DISPLAY_PANEL_DPI) += panel-dpi.o obj-$(CONFIG_DISPLAY_PANEL_R61505) += panel-r61505.o obj-$(CONFIG_DISPLAY_PANEL_R61517) += panel-r61517.o +obj-$(CONFIG_DISPLAY_VGA_DAC) += vga-dac.o diff --git a/drivers/video/display/vga-dac.c b/drivers/video/display/vga-dac.c new file mode 100644 index 0000000..d0256e6 --- /dev/null +++ b/drivers/video/display/vga-dac.c @@ -0,0 +1,152 @@ +/* + * VGA Digital to Analog Converter + * + * Copyright (C) 2013 Renesas Solutions Corp. + * + * Contacts: Laurent Pinchart + * + * 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. + */ + +#include +#include +#include +#include +#include + +#include