From patchwork Tue Mar 1 12:06:07 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maurus Cuelenaere X-Patchwork-Id: 598871 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p21C5xvP004106 for ; Tue, 1 Mar 2011 12:06:12 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756351Ab1CAMGM (ORCPT ); Tue, 1 Mar 2011 07:06:12 -0500 Received: from mail-ew0-f46.google.com ([209.85.215.46]:45130 "EHLO mail-ew0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756333Ab1CAMGK (ORCPT ); Tue, 1 Mar 2011 07:06:10 -0500 Received: by mail-ew0-f46.google.com with SMTP id 6so1618348ewy.19 for ; Tue, 01 Mar 2011 04:06:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:date:to:cc:message-id:in-reply-to:references :from:subject; bh=q/Bfe9jZ2Uzkb3dOABBuyWp9B6pSuq8KWnutXbaZVtg=; b=ZnVTFpxJq34AKcm4CyTZM4YuC4rAZMK0X+b8Z9uehJ/t9q047qnRrHRzKfOjCryokz rsBPwXKvwEj9zEM/MC1iaFeeY6qdiUOQiNRmnkeyhQ/kYtJ1bPZQBpDufilcOsuPRlj4 mOLvVKzBklDoge6qjXBuhpNiXIZ8HlHIeztyk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:to:cc:message-id:in-reply-to:references:from:subject; b=qifv/KwCe+jFhOAsG+XxVBgtawtoZKK/YMbIJTEJ31q8fI3n/RWkxJu0fcw4CNwjJe KhowIl0zkrtYGYwynehCF5VctQvQLjdK8EXMBS4TwD0/coCgktf6y3e0ypEF/e/9qpNo HgMTcQTc6Y6mf3cqzDa6p3lxpi2C9IX4S0Cgc= Received: by 10.213.15.135 with SMTP id k7mr5179480eba.26.1298981169803; Tue, 01 Mar 2011 04:06:09 -0800 (PST) Received: from maurus-desktop (78-22-96-2.access.telenet.be [78.22.96.2]) by mx.google.com with ESMTPS id t5sm4132668eeh.8.2011.03.01.04.06.07 (version=SSLv3 cipher=OTHER); Tue, 01 Mar 2011 04:06:09 -0800 (PST) Received: by maurus-desktop (sSMTP sendmail emulation); Tue, 1 Mar 2011 13:06:07 +0100 Date: Tue, 1 Mar 2011 13:06:07 +0100 To: linux-fbdev@vger.kernel.org Cc: Richard Purdie Message-Id: <916310c85f03dec73b745b91b3437381b6dd73eb.1298980528.git.mcuelenaere@gmail.com> In-Reply-To: References: From: Maurus Cuelenaere Subject: [RFC/PATCH 6/6] backlight: Add Truly G240400RTSW LCD panel driver Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Tue, 01 Mar 2011 12:06:12 +0000 (UTC) diff --git a/drivers/video/backlight/Kconfig b/drivers/video/backlight/Kconfig index e54a337..afa96c2 100644 --- a/drivers/video/backlight/Kconfig +++ b/drivers/video/backlight/Kconfig @@ -109,6 +109,13 @@ config LCD_S6E63M0 If you have an S6E63M0 LCD Panel, say Y to enable its LCD control driver. +config LCD_G240400 + tristate "Truly G240400RTSW LCD Driver" + depends on MACH_JZ4740 + help + If you have a Truly G2400400RTSW LCD panel, say Y to enable its LCD + control driver. + endif # LCD_CLASS_DEVICE # diff --git a/drivers/video/backlight/Makefile b/drivers/video/backlight/Makefile index 44c0f81..1e338ce 100644 --- a/drivers/video/backlight/Makefile +++ b/drivers/video/backlight/Makefile @@ -12,6 +12,7 @@ obj-$(CONFIG_LCD_VGG2432A4) += vgg2432a4.o obj-$(CONFIG_LCD_TDO24M) += tdo24m.o obj-$(CONFIG_LCD_TOSA) += tosa_lcd.o obj-$(CONFIG_LCD_S6E63M0) += s6e63m0.o +obj-$(CONFIG_LCD_G240400) += truly_g240400rtsw.o obj-$(CONFIG_BACKLIGHT_CLASS_DEVICE) += backlight.o obj-$(CONFIG_BACKLIGHT_ATMEL_PWM) += atmel-pwm-bl.o diff --git a/drivers/video/backlight/truly_g240400rtsw.c b/drivers/video/backlight/truly_g240400rtsw.c new file mode 100644 index 0000000..437980b --- /dev/null +++ b/drivers/video/backlight/truly_g240400rtsw.c @@ -0,0 +1,464 @@ +/* + * drivers/video/backlight/truly_g240400rtsw.c + * + * Truly G240400RTSW LCD panel driver + * + * Copyright (c) 2011, Maurus Cuelenaere + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2 of the License, or (at your + * option) any later version. + * + */ +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include + +#include