From mboxrd@z Thu Jan 1 00:00:00 1970 From: Phil Edworthy Date: Wed, 08 Aug 2012 12:14:55 +0000 Subject: [PATCH] fbdev: Add Renesas vdc4 framebuffer driver Message-Id: <1344428095-12203-1-git-send-email-phil.edworthy@renesas.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-fbdev@vger.kernel.org The vdc4 display hardware is found on the sh7269 device. Signed-off-by: Phil Edworthy --- drivers/video/Kconfig | 10 + drivers/video/Makefile | 1 + drivers/video/ren_vdc4fb.c | 653 ++++++++++++++++++++++++++++++++++++++++++++ include/video/ren_vdc4fb.h | 19 ++ 4 files changed, 683 insertions(+), 0 deletions(-) create mode 100644 drivers/video/ren_vdc4fb.c create mode 100644 include/video/ren_vdc4fb.h diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig index 0217f74..89c9250 100644 --- a/drivers/video/Kconfig +++ b/drivers/video/Kconfig @@ -1990,6 +1990,16 @@ config FB_W100 If unsure, say N. +config FB_REN_VDC4FB + tristate "Renesas VDC4 framebuffer support" + depends on FB && CPU_SUBTYPE_SH7269 + select FB_SYS_FILLRECT + select FB_SYS_COPYAREA + select FB_SYS_IMAGEBLIT + select FB_SYS_FOPS + ---help--- + Frame buffer driver for the Renesas VDC4. + config FB_SH_MOBILE_LCDC tristate "SuperH Mobile LCDC framebuffer support" depends on FB && (SUPERH || ARCH_SHMOBILE) && HAVE_CLK diff --git a/drivers/video/Makefile b/drivers/video/Makefile index ee8dafb..ba69fcb 100644 --- a/drivers/video/Makefile +++ b/drivers/video/Makefile @@ -140,6 +140,7 @@ obj-$(CONFIG_SH_MIPI_DSI) += sh_mipi_dsi.o obj-$(CONFIG_FB_SH_MOBILE_HDMI) += sh_mobile_hdmi.o obj-$(CONFIG_FB_SH_MOBILE_MERAM) += sh_mobile_meram.o obj-$(CONFIG_FB_SH_MOBILE_LCDC) += sh_mobile_lcdcfb.o +obj-$(CONFIG_FB_REN_VDC4FB) += ren_vdc4fb.o obj-$(CONFIG_FB_OMAP) += omap/ obj-y += omap2/ obj-$(CONFIG_XEN_FBDEV_FRONTEND) += xen-fbfront.o diff --git a/drivers/video/ren_vdc4fb.c b/drivers/video/ren_vdc4fb.c new file mode 100644 index 0000000..1a31e85 --- /dev/null +++ b/drivers/video/ren_vdc4fb.c @@ -0,0 +1,653 @@ +/* + * Renesas VDC4 Framebuffer + * + * Based on sh_mobile_lcdcfb.c + * Copyright (c) 2012 Renesas Electronics Europe Ltd + * + * This file is subject to the terms and conditions of the GNU General Public + * License. See the file "COPYING" in the main directory of this archive + * for more details. + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include