video: auo_k190x: add code shared by controller drivers
PATCH v2 2/4 video: auo_k190x: add code shared by controller drivers
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 Stübner <[email protected]>
---
changes since v1: fix Kconfig (depends instead of select) and catch possible runtime-pm mismatch.
drivers/video/Kconfig | 17 + drivers/video/Makefile | 1 + drivers/video/auo_k190x.c | 1046 +++++++++++++++++++++++++++++++++++++++++++ drivers/video/auo_k190x.h | 129 ++++++ include/video/auo_k190xfb.h | 106 +++++ 5 files changed, 1299 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
drivers/video/Kconfig +17 -0
@@ -2382,6 +2382,23 @@ config FB_BROADSHEET and could also have been called by other names when coupled with a bridge adapter. +config FB_AUO_K190X + tristate "AUO-K190X EPD controller support" + depends on FB + select FB_SYS_FILLRECT + select FB_SYS_COPYAREA + select FB_SYS_IMAGEBLIT + select FB_SYS_FOPS + select FB_DEFERRED_IO + help + Provides support for epaper controllers from the K190X series + of AUO. These controllers can be used to drive epaper displays + from Sipix. + + This option enables the common support, shared by the individual + controller drivers. You will also have to enable the driver + for the controller type used in your device. + config FB_JZ4740 tristate "JZ4740 LCD framebuffer support" depends on FB && MACH_JZ4740
drivers/video/Makefile +1 -0
@@ -118,6 +118,7 @@ obj-$(CONFIG_FB_PMAGB_B) += pmagb-b-fb.o obj-$(CONFIG_FB_MAXINE) += maxinefb.o obj-$(CONFIG_FB_METRONOME) += metronomefb.o obj-$(CONFIG_FB_BROADSHEET) += broadsheetfb.o +obj-$(CONFIG_FB_AUO_K190X) += auo_k190x.o obj-$(CONFIG_FB_S1D13XXX) += s1d13xxxfb.o obj-$(CONFIG_FB_SH7760) += sh7760fb.o obj-$(CONFIG_FB_IMX) += imxfb.o
drivers/video/auo_k190x.c new file +1046 -0
1,046 lines not on this page · raw message
drivers/video/auo_k190x.h new file +129 -0
129 lines not on this page · raw message
include/video/auo_k190xfb.h new file +106 -0
106 lines not on this page · raw message
Signature · 1 line
1.7.5.4