From 392e8802486cb573b916e746010e141a75f507e6 Mon Sep 17 00:00:00 2001
From: Kevin
Date: Sat, 15 Nov 2014 09:58:27 +0800
Subject: init android origin source code
---
ANDROID_3.4.5/arch/arm/mach-sa1100/Kconfig | 170 ++
ANDROID_3.4.5/arch/arm/mach-sa1100/Makefile | 55 +
ANDROID_3.4.5/arch/arm/mach-sa1100/Makefile.boot | 8 +
ANDROID_3.4.5/arch/arm/mach-sa1100/assabet.c | 545 ++++++
ANDROID_3.4.5/arch/arm/mach-sa1100/badge4.c | 313 ++++
ANDROID_3.4.5/arch/arm/mach-sa1100/cerf.c | 138 ++
ANDROID_3.4.5/arch/arm/mach-sa1100/clock.c | 100 ++
ANDROID_3.4.5/arch/arm/mach-sa1100/collie.c | 405 +++++
ANDROID_3.4.5/arch/arm/mach-sa1100/cpu-sa1100.c | 248 +++
ANDROID_3.4.5/arch/arm/mach-sa1100/cpu-sa1110.c | 407 +++++
ANDROID_3.4.5/arch/arm/mach-sa1100/generic.c | 450 +++++
ANDROID_3.4.5/arch/arm/mach-sa1100/generic.h | 43 +
ANDROID_3.4.5/arch/arm/mach-sa1100/h3100.c | 115 ++
ANDROID_3.4.5/arch/arm/mach-sa1100/h3600.c | 165 ++
ANDROID_3.4.5/arch/arm/mach-sa1100/h3xxx.c | 306 ++++
ANDROID_3.4.5/arch/arm/mach-sa1100/hackkit.c | 203 +++
.../arch/arm/mach-sa1100/include/mach/SA-1100.h | 1831 ++++++++++++++++++++
.../arch/arm/mach-sa1100/include/mach/SA-1101.h | 925 ++++++++++
.../arch/arm/mach-sa1100/include/mach/SA-1111.h | 5 +
.../arch/arm/mach-sa1100/include/mach/assabet.h | 102 ++
.../arch/arm/mach-sa1100/include/mach/badge4.h | 75 +
.../arch/arm/mach-sa1100/include/mach/bitfield.h | 113 ++
.../arch/arm/mach-sa1100/include/mach/cerf.h | 23 +
.../arch/arm/mach-sa1100/include/mach/collie.h | 93 +
.../arm/mach-sa1100/include/mach/debug-macro.S | 62 +
.../arm/mach-sa1100/include/mach/entry-macro.S | 41 +
.../arch/arm/mach-sa1100/include/mach/gpio.h | 54 +
.../arch/arm/mach-sa1100/include/mach/h3xxx.h | 94 +
.../arch/arm/mach-sa1100/include/mach/hardware.h | 79 +
.../arch/arm/mach-sa1100/include/mach/irqs.h | 89 +
.../arch/arm/mach-sa1100/include/mach/jornada720.h | 32 +
.../arch/arm/mach-sa1100/include/mach/lart.h | 13 +
.../arch/arm/mach-sa1100/include/mach/mcp.h | 22 +
.../arch/arm/mach-sa1100/include/mach/memory.h | 41 +
.../arch/arm/mach-sa1100/include/mach/mtd-xip.h | 26 +
.../arch/arm/mach-sa1100/include/mach/nanoengine.h | 52 +
.../arch/arm/mach-sa1100/include/mach/neponset.h | 30 +
.../arch/arm/mach-sa1100/include/mach/reset.h | 18 +
.../arch/arm/mach-sa1100/include/mach/shannon.h | 39 +
.../arch/arm/mach-sa1100/include/mach/simpad.h | 158 ++
.../arch/arm/mach-sa1100/include/mach/timex.h | 12 +
.../arch/arm/mach-sa1100/include/mach/uncompress.h | 50 +
ANDROID_3.4.5/arch/arm/mach-sa1100/irq.c | 341 ++++
ANDROID_3.4.5/arch/arm/mach-sa1100/jornada720.c | 355 ++++
.../arch/arm/mach-sa1100/jornada720_ssp.c | 202 +++
ANDROID_3.4.5/arch/arm/mach-sa1100/lart.c | 152 ++
ANDROID_3.4.5/arch/arm/mach-sa1100/leds-assabet.c | 113 ++
ANDROID_3.4.5/arch/arm/mach-sa1100/leds-badge4.c | 110 ++
ANDROID_3.4.5/arch/arm/mach-sa1100/leds-cerf.c | 109 ++
ANDROID_3.4.5/arch/arm/mach-sa1100/leds-hackkit.c | 111 ++
ANDROID_3.4.5/arch/arm/mach-sa1100/leds-lart.c | 100 ++
ANDROID_3.4.5/arch/arm/mach-sa1100/leds.c | 50 +
ANDROID_3.4.5/arch/arm/mach-sa1100/leds.h | 13 +
ANDROID_3.4.5/arch/arm/mach-sa1100/nanoengine.c | 116 ++
ANDROID_3.4.5/arch/arm/mach-sa1100/neponset.c | 435 +++++
.../arch/arm/mach-sa1100/pci-nanoengine.c | 288 +++
ANDROID_3.4.5/arch/arm/mach-sa1100/pleb.c | 139 ++
ANDROID_3.4.5/arch/arm/mach-sa1100/pm.c | 126 ++
ANDROID_3.4.5/arch/arm/mach-sa1100/shannon.c | 108 ++
ANDROID_3.4.5/arch/arm/mach-sa1100/simpad.c | 400 +++++
ANDROID_3.4.5/arch/arm/mach-sa1100/sleep.S | 143 ++
ANDROID_3.4.5/arch/arm/mach-sa1100/ssp.c | 243 +++
ANDROID_3.4.5/arch/arm/mach-sa1100/time.c | 143 ++
63 files changed, 11547 insertions(+)
create mode 100644 ANDROID_3.4.5/arch/arm/mach-sa1100/Kconfig
create mode 100644 ANDROID_3.4.5/arch/arm/mach-sa1100/Makefile
create mode 100644 ANDROID_3.4.5/arch/arm/mach-sa1100/Makefile.boot
create mode 100644 ANDROID_3.4.5/arch/arm/mach-sa1100/assabet.c
create mode 100644 ANDROID_3.4.5/arch/arm/mach-sa1100/badge4.c
create mode 100644 ANDROID_3.4.5/arch/arm/mach-sa1100/cerf.c
create mode 100644 ANDROID_3.4.5/arch/arm/mach-sa1100/clock.c
create mode 100644 ANDROID_3.4.5/arch/arm/mach-sa1100/collie.c
create mode 100644 ANDROID_3.4.5/arch/arm/mach-sa1100/cpu-sa1100.c
create mode 100644 ANDROID_3.4.5/arch/arm/mach-sa1100/cpu-sa1110.c
create mode 100644 ANDROID_3.4.5/arch/arm/mach-sa1100/generic.c
create mode 100644 ANDROID_3.4.5/arch/arm/mach-sa1100/generic.h
create mode 100644 ANDROID_3.4.5/arch/arm/mach-sa1100/h3100.c
create mode 100644 ANDROID_3.4.5/arch/arm/mach-sa1100/h3600.c
create mode 100644 ANDROID_3.4.5/arch/arm/mach-sa1100/h3xxx.c
create mode 100644 ANDROID_3.4.5/arch/arm/mach-sa1100/hackkit.c
create mode 100644 ANDROID_3.4.5/arch/arm/mach-sa1100/include/mach/SA-1100.h
create mode 100644 ANDROID_3.4.5/arch/arm/mach-sa1100/include/mach/SA-1101.h
create mode 100644 ANDROID_3.4.5/arch/arm/mach-sa1100/include/mach/SA-1111.h
create mode 100644 ANDROID_3.4.5/arch/arm/mach-sa1100/include/mach/assabet.h
create mode 100644 ANDROID_3.4.5/arch/arm/mach-sa1100/include/mach/badge4.h
create mode 100644 ANDROID_3.4.5/arch/arm/mach-sa1100/include/mach/bitfield.h
create mode 100644 ANDROID_3.4.5/arch/arm/mach-sa1100/include/mach/cerf.h
create mode 100644 ANDROID_3.4.5/arch/arm/mach-sa1100/include/mach/collie.h
create mode 100644 ANDROID_3.4.5/arch/arm/mach-sa1100/include/mach/debug-macro.S
create mode 100644 ANDROID_3.4.5/arch/arm/mach-sa1100/include/mach/entry-macro.S
create mode 100644 ANDROID_3.4.5/arch/arm/mach-sa1100/include/mach/gpio.h
create mode 100644 ANDROID_3.4.5/arch/arm/mach-sa1100/include/mach/h3xxx.h
create mode 100644 ANDROID_3.4.5/arch/arm/mach-sa1100/include/mach/hardware.h
create mode 100644 ANDROID_3.4.5/arch/arm/mach-sa1100/include/mach/irqs.h
create mode 100644 ANDROID_3.4.5/arch/arm/mach-sa1100/include/mach/jornada720.h
create mode 100644 ANDROID_3.4.5/arch/arm/mach-sa1100/include/mach/lart.h
create mode 100644 ANDROID_3.4.5/arch/arm/mach-sa1100/include/mach/mcp.h
create mode 100644 ANDROID_3.4.5/arch/arm/mach-sa1100/include/mach/memory.h
create mode 100644 ANDROID_3.4.5/arch/arm/mach-sa1100/include/mach/mtd-xip.h
create mode 100644 ANDROID_3.4.5/arch/arm/mach-sa1100/include/mach/nanoengine.h
create mode 100644 ANDROID_3.4.5/arch/arm/mach-sa1100/include/mach/neponset.h
create mode 100644 ANDROID_3.4.5/arch/arm/mach-sa1100/include/mach/reset.h
create mode 100644 ANDROID_3.4.5/arch/arm/mach-sa1100/include/mach/shannon.h
create mode 100644 ANDROID_3.4.5/arch/arm/mach-sa1100/include/mach/simpad.h
create mode 100644 ANDROID_3.4.5/arch/arm/mach-sa1100/include/mach/timex.h
create mode 100644 ANDROID_3.4.5/arch/arm/mach-sa1100/include/mach/uncompress.h
create mode 100644 ANDROID_3.4.5/arch/arm/mach-sa1100/irq.c
create mode 100644 ANDROID_3.4.5/arch/arm/mach-sa1100/jornada720.c
create mode 100644 ANDROID_3.4.5/arch/arm/mach-sa1100/jornada720_ssp.c
create mode 100644 ANDROID_3.4.5/arch/arm/mach-sa1100/lart.c
create mode 100644 ANDROID_3.4.5/arch/arm/mach-sa1100/leds-assabet.c
create mode 100644 ANDROID_3.4.5/arch/arm/mach-sa1100/leds-badge4.c
create mode 100644 ANDROID_3.4.5/arch/arm/mach-sa1100/leds-cerf.c
create mode 100644 ANDROID_3.4.5/arch/arm/mach-sa1100/leds-hackkit.c
create mode 100644 ANDROID_3.4.5/arch/arm/mach-sa1100/leds-lart.c
create mode 100644 ANDROID_3.4.5/arch/arm/mach-sa1100/leds.c
create mode 100644 ANDROID_3.4.5/arch/arm/mach-sa1100/leds.h
create mode 100644 ANDROID_3.4.5/arch/arm/mach-sa1100/nanoengine.c
create mode 100644 ANDROID_3.4.5/arch/arm/mach-sa1100/neponset.c
create mode 100644 ANDROID_3.4.5/arch/arm/mach-sa1100/pci-nanoengine.c
create mode 100644 ANDROID_3.4.5/arch/arm/mach-sa1100/pleb.c
create mode 100644 ANDROID_3.4.5/arch/arm/mach-sa1100/pm.c
create mode 100644 ANDROID_3.4.5/arch/arm/mach-sa1100/shannon.c
create mode 100644 ANDROID_3.4.5/arch/arm/mach-sa1100/simpad.c
create mode 100644 ANDROID_3.4.5/arch/arm/mach-sa1100/sleep.S
create mode 100644 ANDROID_3.4.5/arch/arm/mach-sa1100/ssp.c
create mode 100644 ANDROID_3.4.5/arch/arm/mach-sa1100/time.c
(limited to 'ANDROID_3.4.5/arch/arm/mach-sa1100')
diff --git a/ANDROID_3.4.5/arch/arm/mach-sa1100/Kconfig b/ANDROID_3.4.5/arch/arm/mach-sa1100/Kconfig
new file mode 100644
index 00000000..42625e4d
--- /dev/null
+++ b/ANDROID_3.4.5/arch/arm/mach-sa1100/Kconfig
@@ -0,0 +1,170 @@
+if ARCH_SA1100
+
+menu "SA11x0 Implementations"
+
+config SA1100_ASSABET
+ bool "Assabet"
+ select CPU_FREQ_SA1110
+ help
+ Say Y here if you are using the Intel(R) StrongARM(R) SA-1110
+ Microprocessor Development Board (also known as the Assabet).
+
+config ASSABET_NEPONSET
+ bool "Include support for Neponset"
+ depends on SA1100_ASSABET
+ select SA1111
+ help
+ Say Y here if you are using the Intel(R) StrongARM(R) SA-1110
+ Microprocessor Development Board (Assabet) with the SA-1111
+ Development Board (Nepon).
+
+config SA1100_CERF
+ bool "CerfBoard"
+ select CPU_FREQ_SA1110
+ help
+ The Intrinsyc CerfBoard is based on the StrongARM 1110 (Discontinued).
+ More information is available at:
+ .
+
+ Say Y if configuring for an Intrinsyc CerfBoard.
+ Say N otherwise.
+
+choice
+ prompt "Cerf Flash available"
+ depends on SA1100_CERF
+ default SA1100_CERF_FLASH_8MB
+
+config SA1100_CERF_FLASH_8MB
+ bool "8MB"
+
+config SA1100_CERF_FLASH_16MB
+ bool "16MB"
+
+config SA1100_CERF_FLASH_32MB
+ bool "32MB"
+
+endchoice
+
+config SA1100_COLLIE
+ bool "Sharp Zaurus SL5500"
+ # FIXME: select CPU_FREQ_SA11x0
+ select SHARP_LOCOMO
+ select SHARP_SCOOP
+ select SHARP_PARAM
+ help
+ Say Y here to support the Sharp Zaurus SL5500 PDAs.
+
+config SA1100_H3100
+ bool "Compaq iPAQ H3100"
+ select HTC_EGPIO
+ select CPU_FREQ_SA1110
+ help
+ Say Y here if you intend to run this kernel on the Compaq iPAQ
+ H3100 handheld computer. Information about this machine and the
+ Linux port to this machine can be found at:
+
+
+
+config SA1100_H3600
+ bool "Compaq iPAQ H3600/H3700"
+ select HTC_EGPIO
+ select CPU_FREQ_SA1110
+ help
+ Say Y here if you intend to run this kernel on the Compaq iPAQ
+ H3600 handheld computer. Information about this machine and the
+ Linux port to this machine can be found at:
+
+
+
+config SA1100_BADGE4
+ bool "HP Labs BadgePAD 4"
+ select SA1111
+ select CPU_FREQ_SA1100
+ help
+ Say Y here if you want to build a kernel for the HP Laboratories
+ BadgePAD 4.
+
+config SA1100_JORNADA720
+ bool "HP Jornada 720"
+ select SA1111
+ # FIXME: select CPU_FREQ_SA11x0
+ help
+ Say Y here if you want to build a kernel for the HP Jornada 720
+ handheld computer. See
+
+
+config SA1100_JORNADA720_SSP
+ bool "HP Jornada 720 Extended SSP driver"
+ select SA1100_SSP
+ depends on SA1100_JORNADA720
+ help
+ Say Y here if you have a HP Jornada 7xx handheld computer and you
+ want to access devices connected to the MCU. Those include the
+ keyboard, touchscreen, backlight and battery. This driver also activates
+ the generic SSP which it extends.
+
+config SA1100_HACKKIT
+ bool "HackKit Core CPU Board"
+ select CPU_FREQ_SA1100
+ help
+ Say Y here to support the HackKit Core CPU Board
+ ;
+
+config SA1100_LART
+ bool "LART"
+ select CPU_FREQ_SA1100
+ help
+ Say Y here if you are using the Linux Advanced Radio Terminal
+ (also known as the LART). See for
+ information on the LART.
+
+config SA1100_NANOENGINE
+ bool "nanoEngine"
+ select CPU_FREQ_SA1110
+ select PCI
+ select PCI_NANOENGINE
+ help
+ Say Y here if you are using the Bright Star Engineering nanoEngine.
+ See for information
+ on the BSE nanoEngine.
+
+config SA1100_PLEB
+ bool "PLEB"
+ select CPU_FREQ_SA1100
+ help
+ Say Y here if you are using version 1 of the Portable Linux
+ Embedded Board (also known as PLEB).
+ See
+ for more information.
+
+config SA1100_SHANNON
+ bool "Shannon"
+ select CPU_FREQ_SA1100
+ help
+ The Shannon (also known as a Tuxscreen, and also as a IS2630) was a
+ limited edition webphone produced by Philips. The Shannon is a SA1100
+ platform with a 640x480 LCD, touchscreen, CIR keyboard, PCMCIA slots,
+ and a telco interface.
+
+config SA1100_SIMPAD
+ bool "Simpad"
+ select CPU_FREQ_SA1110
+ help
+ The SIEMENS webpad SIMpad is based on the StrongARM 1110. There
+ are two different versions CL4 and SL4. CL4 has 32MB RAM and 16MB
+ FLASH. The SL4 version got 64 MB RAM and 32 MB FLASH and a
+ PCMCIA-Slot. The version for the Germany Telecom (DTAG) is the same
+ like CL4 in additional it has a PCMCIA-Slot. For more information
+ visit or .
+
+config SA1100_SSP
+ tristate "Generic PIO SSP"
+ help
+ Say Y here to enable support for the generic PIO SSP driver.
+ This isn't for audio support, but for attached sensors and
+ other devices, eg for BadgePAD 4 sensor support.
+
+endmenu
+
+endif
+
diff --git a/ANDROID_3.4.5/arch/arm/mach-sa1100/Makefile b/ANDROID_3.4.5/arch/arm/mach-sa1100/Makefile
new file mode 100644
index 00000000..60b97ec0
--- /dev/null
+++ b/ANDROID_3.4.5/arch/arm/mach-sa1100/Makefile
@@ -0,0 +1,55 @@
+#
+# Makefile for the linux kernel.
+#
+
+# Common support
+obj-y := clock.o generic.o irq.o time.o #nmi-oopser.o
+obj-m :=
+obj-n :=
+obj- :=
+led-y := leds.o
+
+obj-$(CONFIG_CPU_FREQ_SA1100) += cpu-sa1100.o
+obj-$(CONFIG_CPU_FREQ_SA1110) += cpu-sa1110.o
+
+# Specific board support
+obj-$(CONFIG_SA1100_ASSABET) += assabet.o
+led-$(CONFIG_SA1100_ASSABET) += leds-assabet.o
+obj-$(CONFIG_ASSABET_NEPONSET) += neponset.o
+
+obj-$(CONFIG_SA1100_BADGE4) += badge4.o
+led-$(CONFIG_SA1100_BADGE4) += leds-badge4.o
+
+obj-$(CONFIG_SA1100_CERF) += cerf.o
+led-$(CONFIG_SA1100_CERF) += leds-cerf.o
+
+obj-$(CONFIG_SA1100_COLLIE) += collie.o
+
+obj-$(CONFIG_SA1100_H3100) += h3100.o h3xxx.o
+obj-$(CONFIG_SA1100_H3600) += h3600.o h3xxx.o
+
+obj-$(CONFIG_SA1100_HACKKIT) += hackkit.o
+led-$(CONFIG_SA1100_HACKKIT) += leds-hackkit.o
+
+obj-$(CONFIG_SA1100_JORNADA720) += jornada720.o
+obj-$(CONFIG_SA1100_JORNADA720_SSP) += jornada720_ssp.o
+
+obj-$(CONFIG_SA1100_LART) += lart.o
+led-$(CONFIG_SA1100_LART) += leds-lart.o
+
+obj-$(CONFIG_SA1100_NANOENGINE) += nanoengine.o
+obj-$(CONFIG_PCI_NANOENGINE) += pci-nanoengine.o
+
+obj-$(CONFIG_SA1100_PLEB) += pleb.o
+
+obj-$(CONFIG_SA1100_SHANNON) += shannon.o
+
+obj-$(CONFIG_SA1100_SIMPAD) += simpad.o
+
+# LEDs support
+obj-$(CONFIG_LEDS) += $(led-y)
+
+# Miscellaneous functions
+obj-$(CONFIG_PM) += pm.o sleep.o
+obj-$(CONFIG_SA1100_SSP) += ssp.o
+
diff --git a/ANDROID_3.4.5/arch/arm/mach-sa1100/Makefile.boot b/ANDROID_3.4.5/arch/arm/mach-sa1100/Makefile.boot
new file mode 100644
index 00000000..f7951aa0
--- /dev/null
+++ b/ANDROID_3.4.5/arch/arm/mach-sa1100/Makefile.boot
@@ -0,0 +1,8 @@
+ifeq ($(CONFIG_SA1111),y)
+ zreladdr-y += 0xc0208000
+else
+ zreladdr-y += 0xc0008000
+endif
+params_phys-y := 0xc0000100
+initrd_phys-y := 0xc0800000
+
diff --git a/ANDROID_3.4.5/arch/arm/mach-sa1100/assabet.c b/ANDROID_3.4.5/arch/arm/mach-sa1100/assabet.c
new file mode 100644
index 00000000..375d3f77
--- /dev/null
+++ b/ANDROID_3.4.5/arch/arm/mach-sa1100/assabet.c
@@ -0,0 +1,545 @@
+/*
+ * linux/arch/arm/mach-sa1100/assabet.c
+ *
+ * Author: Nicolas Pitre
+ *
+ * This file contains all Assabet-specific tweaks.
+ *
+ * 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
+#include
+#include
+#include
+
+#include