From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jaya Kumar Subject: [RFC 2.6.27 2/2] mach-pxa: add AM300 platform driver Date: Thu, 25 Dec 2008 20:51:40 +0800 Message-ID: <12302095072399-git-send-email-jayakumar.lkml@gmail.com> References: <1230209500424-git-send-email-jayakumar.lkml@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from sfi-mx-1.v28.ch3.sourceforge.com ([172.29.28.121] helo=mx.sourceforge.net) by 235xhf1.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1LFph0-0000br-E7 for linux-fbdev-devel@lists.sourceforge.net; Thu, 25 Dec 2008 12:51:58 +0000 Received: from ti-out-0910.google.com ([209.85.142.188]) by 29vjzd1.ch3.sourceforge.com with esmtp (Exim 4.69) id 1LFpgw-0002LG-Gv for linux-fbdev-devel@lists.sourceforge.net; Thu, 25 Dec 2008 12:51:58 +0000 Received: by ti-out-0910.google.com with SMTP id y6so2850907tia.18 for ; Thu, 25 Dec 2008 04:51:53 -0800 (PST) In-Reply-To: <1230209500424-git-send-email-jayakumar.lkml@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linux-fbdev-devel-bounces@lists.sourceforge.net Cc: linux-fbdev-devel@lists.sourceforge.net, Geert Uytterhoeven , Eric Miao , Jaya Kumar , linux-arm-kernel@lists.arm.linux.org.uk This patch adds support for the AM300 platform driver. Signed-off-by: Jaya Kumar Cc: Geert Uytterhoeven Cc: Eric Miao Cc: Krzysztof Helt Cc: linux-fbdev-devel@lists.sourceforge.net Cc: linux-arm-kernel@lists.arm.linux.org.uk --- arch/arm/mach-pxa/Kconfig | 3 + arch/arm/mach-pxa/Makefile | 1 + arch/arm/mach-pxa/am300epd.c | 294 ++++++++++++++++++++++++++++++ arch/arm/mach-pxa/gumstix.c | 6 + arch/arm/mach-pxa/include/mach/gumstix.h | 1 + 5 files changed, 305 insertions(+), 0 deletions(-) create mode 100644 arch/arm/mach-pxa/am300epd.c diff --git a/arch/arm/mach-pxa/Kconfig b/arch/arm/mach-pxa/Kconfig index 94e3adb..768618b 100644 --- a/arch/arm/mach-pxa/Kconfig +++ b/arch/arm/mach-pxa/Kconfig @@ -40,6 +40,9 @@ choice config GUMSTIX_AM200EPD bool "Enable AM200EPD board support" +config GUMSTIX_AM300EPD + bool "Enable AM300EPD board support" + endchoice config MACH_INTELMOTE2 diff --git a/arch/arm/mach-pxa/Makefile b/arch/arm/mach-pxa/Makefile index 7b28bb5..764f111 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_GUMSTIX_AM200EPD) += am200epd.o +obj-$(CONFIG_GUMSTIX_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..26ce52e --- /dev/null +++ b/arch/arm/mach-pxa/am300epd.c @@ -0,0 +1,294 @@ +/* + * 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. + * + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include + +#include "generic.h" + +#include