From d467dab9075d817433a487ad909cde1146ec6212 Mon Sep 17 00:00:00 2001 From: Philipp Zabel Date: Fri, 28 Mar 2008 18:04:51 +0100 Subject: [PATCH] WIP: experimental hx4700 support --- arch/arm/mach-pxa/Kconfig | 17 +- arch/arm/mach-pxa/Makefile | 1 + arch/arm/mach-pxa/hx4700.c | 746 +++++++++++++++++++++++++++++++++++++ include/asm-arm/arch-pxa/hx4700.h | 149 ++++++++ 4 files changed, 907 insertions(+), 6 deletions(-) create mode 100644 arch/arm/mach-pxa/hx4700.c create mode 100644 include/asm-arm/arch-pxa/hx4700.h diff --git a/arch/arm/mach-pxa/Kconfig b/arch/arm/mach-pxa/Kconfig index cd33f3f..988872f 100644 --- a/arch/arm/mach-pxa/Kconfig +++ b/arch/arm/mach-pxa/Kconfig @@ -58,6 +58,17 @@ config PXA_SHARPSL SL-C3000 (Spitz), SL-C3100 (Borzoi) or SL-C6000x (Tosa) handheld computer. +config MACH_MAGICIAN + bool "Enable HTC Magician Support" + select PXA27x + select IWMMXT + select HAVE_PWM + +config MACH_H4700 + bool "Enable HP iPAQ hx4700 Support" + select PXA27x + select IWMMXT + config ARCH_PXA_ESERIES bool "PXA based Toshiba e-series PDAs" select PXA25x @@ -129,12 +140,6 @@ config MACH_ARMCORE select PXA27x select IWMMXT -config MACH_MAGICIAN - bool "Enable HTC Magician Support" - depends on ARCH_PXA - select PXA27x - select IWMMXT - config MACH_PCM027 bool "Phytec phyCORE-PXA270 CPU module (PCM-027)" select PXA27x diff --git a/arch/arm/mach-pxa/Makefile b/arch/arm/mach-pxa/Makefile index 2721c32..c26c45e 100644 --- a/arch/arm/mach-pxa/Makefile +++ b/arch/arm/mach-pxa/Makefile @@ -36,6 +36,7 @@ obj-$(CONFIG_MACH_PCM990_BASEBOARD) += pcm990-baseboard.o obj-$(CONFIG_MACH_TOSA) += tosa.o obj-$(CONFIG_MACH_EM_X270) += em-x270.o obj-$(CONFIG_MACH_MAGICIAN) += magician.o +obj-$(CONFIG_MACH_H4700) += hx4700.o obj-$(CONFIG_ARCH_PXA_ESERIES) += eseries.o ifeq ($(CONFIG_MACH_ZYLONITE),y) diff --git a/arch/arm/mach-pxa/hx4700.c b/arch/arm/mach-pxa/hx4700.c new file mode 100644 index 0000000..85ef656 --- /dev/null +++ b/arch/arm/mach-pxa/hx4700.c @@ -0,0 +1,746 @@ +/* + * Support for HP iPAQ hx4700 PDAs. + * + * Copyright (c) 2008 Philipp Zabel + * Copyright (c) 2006 Anton Vorontsov + * Copyright (c) 2005 SDG Systems, LLC + * + * Based on code: + * Copyright 2004 Hewlett-Packard Company. + * + * 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 +#include +#include + +#include +#include +#include + +#include +#include +#include +#include +#include + +#include