From 2469aa37023c0e47d48d76a56b0be38b9b9ec8ed Mon Sep 17 00:00:00 2001 From: Ben Dooks Date: Wed, 23 Jul 2008 21:31:37 -0700 Subject: [PATCH] --- yaml --- r: 105555 b: refs/heads/master c: cccb6d3c149603b9c15d3c460dff317455df1766 h: refs/heads/master i: 105553: f09d3551216bea2fb420d41ed480544c5742fd67 105551: f8b98a6a8afd6a95812781d83d67378735d11d28 v: v3 --- [refs] | 2 +- trunk/drivers/video/backlight/Kconfig | 17 ++ trunk/drivers/video/backlight/Makefile | 4 +- trunk/drivers/video/backlight/ili9320.c | 330 ++++++++++++++++++++++ trunk/drivers/video/backlight/ili9320.h | 80 ++++++ trunk/drivers/video/backlight/vgg2432a4.c | 284 +++++++++++++++++++ trunk/include/video/ili9320.h | 201 +++++++++++++ 7 files changed, 916 insertions(+), 2 deletions(-) create mode 100644 trunk/drivers/video/backlight/ili9320.c create mode 100644 trunk/drivers/video/backlight/ili9320.h create mode 100644 trunk/drivers/video/backlight/vgg2432a4.c create mode 100644 trunk/include/video/ili9320.h diff --git a/[refs] b/[refs] index 07a355e77aca..c31b784e980d 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: d05254190dd1a4751284f4a51efb70fcc16c45a4 +refs/heads/master: cccb6d3c149603b9c15d3c460dff317455df1766 diff --git a/trunk/drivers/video/backlight/Kconfig b/trunk/drivers/video/backlight/Kconfig index 30bf7f2f1635..a5b3a92ffdc1 100644 --- a/trunk/drivers/video/backlight/Kconfig +++ b/trunk/drivers/video/backlight/Kconfig @@ -36,6 +36,23 @@ config LCD_LTV350QV The LTV350QV panel is present on all ATSTK1000 boards. +config LCD_ILI9320 + tristate + depends on LCD_CLASS_DEVICE && BACKLIGHT_LCD_SUPPORT + default n + help + If you have a panel based on the ILI9320 controller chip + then say y to include a power driver for it. + +config LCD_VGG2432A4 + tristate "VGG2432A4 LCM device support" + depends on BACKLIGHT_LCD_SUPPORT && LCD_CLASS_DEVICE && SPI_MASTER + select LCD_ILI9320 + default n + help + If you have a VGG2432A4 panel based on the ILI9320 controller chip + then say y to include a power driver for it. + # # Backlight # diff --git a/trunk/drivers/video/backlight/Makefile b/trunk/drivers/video/backlight/Makefile index b51a7cd12500..366d84e380cf 100644 --- a/trunk/drivers/video/backlight/Makefile +++ b/trunk/drivers/video/backlight/Makefile @@ -1,7 +1,9 @@ # Backlight & LCD drivers obj-$(CONFIG_LCD_CLASS_DEVICE) += lcd.o -obj-$(CONFIG_LCD_LTV350QV) += ltv350qv.o +obj-$(CONFIG_LCD_LTV350QV) += ltv350qv.o +obj-$(CONFIG_LCD_ILI9320) += ili9320.o +obj-$(CONFIG_LCD_VGG2432A4) += vgg2432a4.o obj-$(CONFIG_BACKLIGHT_CLASS_DEVICE) += backlight.o obj-$(CONFIG_BACKLIGHT_CORGI) += corgi_bl.o diff --git a/trunk/drivers/video/backlight/ili9320.c b/trunk/drivers/video/backlight/ili9320.c new file mode 100644 index 000000000000..ba89b41b639c --- /dev/null +++ b/trunk/drivers/video/backlight/ili9320.c @@ -0,0 +1,330 @@ +/* drivers/video/backlight/ili9320.c + * + * ILI9320 LCD controller driver core. + * + * Copyright 2007 Simtec Electronics + * http://armlinux.simtec.co.uk/ + * Ben Dooks + * + * 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