From 9ca8dbcc65cfc63d6f5ef3312a33184e1d726e00 Mon Sep 17 00:00:00 2001 From: Yunhong Jiang Date: Tue, 4 Aug 2015 12:17:53 -0700 Subject: Add the rt linux 4.1.3-rt3 as base Import the rt linux 4.1.3-rt3 as OPNFV kvm base. It's from git://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git linux-4.1.y-rt and the base is: commit 0917f823c59692d751951bf5ea699a2d1e2f26a2 Author: Sebastian Andrzej Siewior Date: Sat Jul 25 12:13:34 2015 +0200 Prepare v4.1.3-rt3 Signed-off-by: Sebastian Andrzej Siewior We lose all the git history this way and it's not good. We should apply another opnfv project repo in future. Change-Id: I87543d81c9df70d99c5001fbdf646b202c19f423 Signed-off-by: Yunhong Jiang --- kernel/arch/arm/mach-sa1100/Kconfig | 172 ++ kernel/arch/arm/mach-sa1100/Makefile | 40 + kernel/arch/arm/mach-sa1100/Makefile.boot | 8 + kernel/arch/arm/mach-sa1100/assabet.c | 764 ++++++++ kernel/arch/arm/mach-sa1100/badge4.c | 344 ++++ kernel/arch/arm/mach-sa1100/cerf.c | 181 ++ kernel/arch/arm/mach-sa1100/clock.c | 148 ++ kernel/arch/arm/mach-sa1100/collie.c | 437 +++++ kernel/arch/arm/mach-sa1100/generic.c | 418 +++++ kernel/arch/arm/mach-sa1100/generic.h | 46 + kernel/arch/arm/mach-sa1100/h3100.c | 143 ++ kernel/arch/arm/mach-sa1100/h3600.c | 151 ++ kernel/arch/arm/mach-sa1100/h3xxx.c | 317 ++++ kernel/arch/arm/mach-sa1100/hackkit.c | 236 +++ kernel/arch/arm/mach-sa1100/include/mach/SA-1100.h | 1831 ++++++++++++++++++++ kernel/arch/arm/mach-sa1100/include/mach/SA-1101.h | 925 ++++++++++ kernel/arch/arm/mach-sa1100/include/mach/assabet.h | 104 ++ kernel/arch/arm/mach-sa1100/include/mach/badge4.h | 75 + .../arch/arm/mach-sa1100/include/mach/bitfield.h | 113 ++ kernel/arch/arm/mach-sa1100/include/mach/cerf.h | 23 + kernel/arch/arm/mach-sa1100/include/mach/collie.h | 95 + kernel/arch/arm/mach-sa1100/include/mach/generic.h | 1 + kernel/arch/arm/mach-sa1100/include/mach/h3xxx.h | 85 + .../arch/arm/mach-sa1100/include/mach/hardware.h | 81 + kernel/arch/arm/mach-sa1100/include/mach/irqs.h | 100 ++ .../arch/arm/mach-sa1100/include/mach/jornada720.h | 32 + kernel/arch/arm/mach-sa1100/include/mach/memory.h | 36 + kernel/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 + kernel/arch/arm/mach-sa1100/include/mach/reset.h | 18 + kernel/arch/arm/mach-sa1100/include/mach/shannon.h | 39 + kernel/arch/arm/mach-sa1100/include/mach/simpad.h | 158 ++ .../arch/arm/mach-sa1100/include/mach/uncompress.h | 51 + kernel/arch/arm/mach-sa1100/irq.c | 178 ++ kernel/arch/arm/mach-sa1100/jornada720.c | 356 ++++ kernel/arch/arm/mach-sa1100/jornada720_ssp.c | 203 +++ kernel/arch/arm/mach-sa1100/lart.c | 176 ++ kernel/arch/arm/mach-sa1100/nanoengine.c | 117 ++ kernel/arch/arm/mach-sa1100/neponset.c | 441 +++++ kernel/arch/arm/mach-sa1100/pci-nanoengine.c | 204 +++ kernel/arch/arm/mach-sa1100/pleb.c | 147 ++ kernel/arch/arm/mach-sa1100/pm.c | 126 ++ kernel/arch/arm/mach-sa1100/shannon.c | 109 ++ kernel/arch/arm/mach-sa1100/simpad.c | 402 +++++ kernel/arch/arm/mach-sa1100/sleep.S | 143 ++ kernel/arch/arm/mach-sa1100/ssp.c | 243 +++ 47 files changed, 10125 insertions(+) create mode 100644 kernel/arch/arm/mach-sa1100/Kconfig create mode 100644 kernel/arch/arm/mach-sa1100/Makefile create mode 100644 kernel/arch/arm/mach-sa1100/Makefile.boot create mode 100644 kernel/arch/arm/mach-sa1100/assabet.c create mode 100644 kernel/arch/arm/mach-sa1100/badge4.c create mode 100644 kernel/arch/arm/mach-sa1100/cerf.c create mode 100644 kernel/arch/arm/mach-sa1100/clock.c create mode 100644 kernel/arch/arm/mach-sa1100/collie.c create mode 100644 kernel/arch/arm/mach-sa1100/generic.c create mode 100644 kernel/arch/arm/mach-sa1100/generic.h create mode 100644 kernel/arch/arm/mach-sa1100/h3100.c create mode 100644 kernel/arch/arm/mach-sa1100/h3600.c create mode 100644 kernel/arch/arm/mach-sa1100/h3xxx.c create mode 100644 kernel/arch/arm/mach-sa1100/hackkit.c create mode 100644 kernel/arch/arm/mach-sa1100/include/mach/SA-1100.h create mode 100644 kernel/arch/arm/mach-sa1100/include/mach/SA-1101.h create mode 100644 kernel/arch/arm/mach-sa1100/include/mach/assabet.h create mode 100644 kernel/arch/arm/mach-sa1100/include/mach/badge4.h create mode 100644 kernel/arch/arm/mach-sa1100/include/mach/bitfield.h create mode 100644 kernel/arch/arm/mach-sa1100/include/mach/cerf.h create mode 100644 kernel/arch/arm/mach-sa1100/include/mach/collie.h create mode 100644 kernel/arch/arm/mach-sa1100/include/mach/generic.h create mode 100644 kernel/arch/arm/mach-sa1100/include/mach/h3xxx.h create mode 100644 kernel/arch/arm/mach-sa1100/include/mach/hardware.h create mode 100644 kernel/arch/arm/mach-sa1100/include/mach/irqs.h create mode 100644 kernel/arch/arm/mach-sa1100/include/mach/jornada720.h create mode 100644 kernel/arch/arm/mach-sa1100/include/mach/memory.h create mode 100644 kernel/arch/arm/mach-sa1100/include/mach/mtd-xip.h create mode 100644 kernel/arch/arm/mach-sa1100/include/mach/nanoengine.h create mode 100644 kernel/arch/arm/mach-sa1100/include/mach/neponset.h create mode 100644 kernel/arch/arm/mach-sa1100/include/mach/reset.h create mode 100644 kernel/arch/arm/mach-sa1100/include/mach/shannon.h create mode 100644 kernel/arch/arm/mach-sa1100/include/mach/simpad.h create mode 100644 kernel/arch/arm/mach-sa1100/include/mach/uncompress.h create mode 100644 kernel/arch/arm/mach-sa1100/irq.c create mode 100644 kernel/arch/arm/mach-sa1100/jornada720.c create mode 100644 kernel/arch/arm/mach-sa1100/jornada720_ssp.c create mode 100644 kernel/arch/arm/mach-sa1100/lart.c create mode 100644 kernel/arch/arm/mach-sa1100/nanoengine.c create mode 100644 kernel/arch/arm/mach-sa1100/neponset.c create mode 100644 kernel/arch/arm/mach-sa1100/pci-nanoengine.c create mode 100644 kernel/arch/arm/mach-sa1100/pleb.c create mode 100644 kernel/arch/arm/mach-sa1100/pm.c create mode 100644 kernel/arch/arm/mach-sa1100/shannon.c create mode 100644 kernel/arch/arm/mach-sa1100/simpad.c create mode 100644 kernel/arch/arm/mach-sa1100/sleep.S create mode 100644 kernel/arch/arm/mach-sa1100/ssp.c (limited to 'kernel/arch/arm/mach-sa1100') diff --git a/kernel/arch/arm/mach-sa1100/Kconfig b/kernel/arch/arm/mach-sa1100/Kconfig new file mode 100644 index 000000000..c6f6ed1cb --- /dev/null +++ b/kernel/arch/arm/mach-sa1100/Kconfig @@ -0,0 +1,172 @@ +if ARCH_SA1100 + +menu "SA11x0 Implementations" + +config SA1100_ASSABET + bool "Assabet" + select ARM_SA1110_CPUFREQ + 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 ARM_SA1110_CPUFREQ + 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 ARM_SA11x0_CPUFREQ + select SHARP_LOCOMO + select SHARP_PARAM + select SHARP_SCOOP + help + Say Y here to support the Sharp Zaurus SL5500 PDAs. + +config SA1100_H3100 + bool "Compaq iPAQ H3100" + select ARM_SA1110_CPUFREQ + select HTC_EGPIO + select MFD_IPAQ_MICRO + 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 ARM_SA1110_CPUFREQ + select HTC_EGPIO + select MFD_IPAQ_MICRO + 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 ARM_SA1100_CPUFREQ + select SA1111 + help + Say Y here if you want to build a kernel for the HP Laboratories + BadgePAD 4. + +config SA1100_JORNADA720 + bool "HP Jornada 720" + # FIXME: select ARM_SA11x0_CPUFREQ + select SA1111 + 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" + depends on SA1100_JORNADA720 + select SA1100_SSP + 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 ARM_SA1100_CPUFREQ + help + Say Y here to support the HackKit Core CPU Board + ; + +config SA1100_LART + bool "LART" + select ARM_SA1100_CPUFREQ + 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 ARM_SA1110_CPUFREQ + 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 ARM_SA1100_CPUFREQ + 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 ARM_SA1100_CPUFREQ + 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 ARM_SA1110_CPUFREQ + 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/kernel/arch/arm/mach-sa1100/Makefile b/kernel/arch/arm/mach-sa1100/Makefile new file mode 100644 index 000000000..61ff91e76 --- /dev/null +++ b/kernel/arch/arm/mach-sa1100/Makefile @@ -0,0 +1,40 @@ +# +# Makefile for the linux kernel. +# + +# Common support +obj-y := clock.o generic.o irq.o #nmi-oopser.o + +# Specific board support +obj-$(CONFIG_SA1100_ASSABET) += assabet.o +obj-$(CONFIG_ASSABET_NEPONSET) += neponset.o + +obj-$(CONFIG_SA1100_BADGE4) += badge4.o + +obj-$(CONFIG_SA1100_CERF) += 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 + +obj-$(CONFIG_SA1100_JORNADA720) += jornada720.o +obj-$(CONFIG_SA1100_JORNADA720_SSP) += jornada720_ssp.o + +obj-$(CONFIG_SA1100_LART) += 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 + +# Miscellaneous functions +obj-$(CONFIG_PM) += pm.o sleep.o +obj-$(CONFIG_SA1100_SSP) += ssp.o + diff --git a/kernel/arch/arm/mach-sa1100/Makefile.boot b/kernel/arch/arm/mach-sa1100/Makefile.boot new file mode 100644 index 000000000..f7951aa04 --- /dev/null +++ b/kernel/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/kernel/arch/arm/mach-sa1100/assabet.c b/kernel/arch/arm/mach-sa1100/assabet.c new file mode 100644 index 000000000..d28ecb9ef --- /dev/null +++ b/kernel/arch/arm/mach-sa1100/assabet.c @@ -0,0 +1,764 @@ +/* + * 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 +#include +#include +#include + +#include