From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jaya Kumar Subject: [RFC 2.6.27 5/5] Add support for E-Ink Broadsheet controller and AM300 kit Date: Tue, 4 Nov 2008 08:55:13 +0800 Message-ID: <12257601541179-git-send-email-jayakumar.lkml@gmail.com> References: <12257601131298-git-send-email-jayakumar.lkml@gmail.com> Return-path: Received: from rv-out-0506.google.com ([209.85.198.238]:54998 "EHLO rv-out-0506.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753128AbYKDA4E (ORCPT ); Mon, 3 Nov 2008 19:56:04 -0500 Received: by rv-out-0506.google.com with SMTP id k40so2922566rvb.1 for ; Mon, 03 Nov 2008 16:56:04 -0800 (PST) In-Reply-To: <12257601131298-git-send-email-jayakumar.lkml@gmail.com> Sender: linux-input-owner@vger.kernel.org List-Id: linux-input@vger.kernel.org To: linux-arm-kernel@lists.arm.linux.org.uk Cc: linux-fbdev-devel@lists.sourceforge.net, linux-input@vger.kernel.org, Jaya Kumar This patch adds support for the E-Ink Broadsheet display controller and the AM300 gumstix kit. Signed-off-by: Jaya Kumar --- arch/arm/mach-pxa/Kconfig | 4 + arch/arm/mach-pxa/Makefile | 1 + arch/arm/mach-pxa/am300epd.c | 337 +++++++++++++++++++++++++ drivers/video/Kconfig | 14 + drivers/video/Makefile | 3 +- drivers/video/broadsheetfb.c | 570 ++++++++++++++++++++++++++++++++++++++++++ include/video/broadsheetfb.h | 63 +++++ 7 files changed, 991 insertions(+), 1 deletions(-) create mode 100644 arch/arm/mach-pxa/am300epd.c create mode 100644 drivers/video/broadsheetfb.c create mode 100644 include/video/broadsheetfb.h diff --git a/arch/arm/mach-pxa/Kconfig b/arch/arm/mach-pxa/Kconfig index f27f6b3..5bdd4e9 100644 --- a/arch/arm/mach-pxa/Kconfig +++ b/arch/arm/mach-pxa/Kconfig @@ -339,6 +339,10 @@ config MACH_AM200EPD depends on MACH_GUMSTIX_F bool "Enable AM200EPD board support" +config MACH_AM300EPD + depends on MACH_GUMSTIX_F + bool "Enable AM300EPD board support" + config PXA_EZX bool "Motorola EZX Platform" select PXA27x diff --git a/arch/arm/mach-pxa/Makefile b/arch/arm/mach-pxa/Makefile index d31c997..5ea970b 100644 --- a/arch/arm/mach-pxa/Makefile +++ b/arch/arm/mach-pxa/Makefile @@ -28,6 +28,7 @@ obj-$(CONFIG_CPU_PXA930) += pxa930.o # Specific board support obj-$(CONFIG_ARCH_GUMSTIX) += gumstix.o obj-$(CONFIG_MACH_AM200EPD) += am200epd.o +obj-$(CONFIG_MACH_AM300EPD) += am300epd.o obj-$(CONFIG_ARCH_LUBBOCK) += lubbock.o obj-$(CONFIG_MACH_LOGICPD_PXA270) += lpd270.o obj-$(CONFIG_MACH_MAINSTONE) += mainstone.o diff --git a/arch/arm/mach-pxa/am300epd.c b/arch/arm/mach-pxa/am300epd.c new file mode 100644 index 0000000..bb81564 --- /dev/null +++ b/arch/arm/mach-pxa/am300epd.c @@ -0,0 +1,337 @@ +/* + * am300epd.c -- Platform device for AM300 EPD kit + * + * Copyright (C) 2008, Jaya Kumar + * + * 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. + * + * This work was made possible by help and equipment support from E-Ink + * Corporation. http://support.eink.com/community + * + * This driver is written to be used with the Broadsheet display controller. + * on the AM300 EPD prototype kit/development kit with an E-Ink 800x600 + * Vizplex EPD on a Gumstix board using the Broadsheet interface board. + * + */ + +#define DEBUG 1 + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include + +#include "generic.h" + +#include