From mboxrd@z Thu Jan 1 00:00:00 1970 From: Heiko =?iso-8859-1?q?St=FCbner?= Date: Wed, 28 Mar 2012 17:34:45 +0000 Subject: [PATCH 2/4] video: auo_k190x: add code shared by controller drivers Message-Id: <201203281934.45422.heiko@sntech.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-fbdev@vger.kernel.org The AUO-K190X controllers share a very similar set of commands and can therefore also share most of the driver code. Signed-off-by: Heiko Stuebner --- drivers/video/Kconfig | 10 + drivers/video/Makefile | 1 + drivers/video/auo_k190x.c | 1038 +++++++++++++++++++++++++++++++++++++++= ++++ drivers/video/auo_k190x.h | 129 ++++++ include/video/auo_k190xfb.h | 106 +++++ 5 files changed, 1284 insertions(+), 0 deletions(-) create mode 100644 drivers/video/auo_k190x.c create mode 100644 drivers/video/auo_k190x.h create mode 100644 include/video/auo_k190xfb.h diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig index a290be5..89c7394 100644 --- a/drivers/video/Kconfig +++ b/drivers/video/Kconfig @@ -2382,6 +2382,16 @@ config FB_BROADSHEET and could also have been called by other names when coupled with a bridge adapter. =20 +config FB_AUO_K190X + tristate + select FB_SYS_FILLRECT + select FB_SYS_COPYAREA + select FB_SYS_IMAGEBLIT + select FB_SYS_FOPS + select FB_DEFERRED_IO + help + Internal config node for K190X common code + config FB_JZ4740 tristate "JZ4740 LCD framebuffer support" depends on FB && MACH_JZ4740 diff --git a/drivers/video/Makefile b/drivers/video/Makefile index 9356add..d5406f2 100644 --- a/drivers/video/Makefile +++ b/drivers/video/Makefile @@ -118,6 +118,7 @@ obj-$(CONFIG_FB_PMAGB_B) +=3D pmagb-b-fb.o obj-$(CONFIG_FB_MAXINE) +=3D maxinefb.o obj-$(CONFIG_FB_METRONOME) +=3D metronomefb.o obj-$(CONFIG_FB_BROADSHEET) +=3D broadsheetfb.o +obj-$(CONFIG_FB_AUO_K190X) +=3D auo_k190x.o obj-$(CONFIG_FB_S1D13XXX) +=3D s1d13xxxfb.o obj-$(CONFIG_FB_SH7760) +=3D sh7760fb.o obj-$(CONFIG_FB_IMX) +=3D imxfb.o diff --git a/drivers/video/auo_k190x.c b/drivers/video/auo_k190x.c new file mode 100644 index 0000000..d317137 --- /dev/null +++ b/drivers/video/auo_k190x.c @@ -0,0 +1,1038 @@ +/* + * Common code for AUO-K190X framebuffer drivers + * + * Copyright (C) 2012 Heiko Stuebner + * + * 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 +#include +#include +#include + +#include