From e09b41010ba33a20a87472ee821fa407a5b8da36 Mon Sep 17 00:00:00 2001 From: José Pekkarinen Date: Mon, 11 Apr 2016 10:41:07 +0300 Subject: These changes are the raw update to linux-4.4.6-rt14. Kernel sources are taken from kernel.org, and rt patch from the rt wiki download page. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit During the rebasing, the following patch collided: Force tick interrupt and get rid of softirq magic(I70131fb85). Collisions have been removed because its logic was found on the source already. Change-Id: I7f57a4081d9deaa0d9ccfc41a6c8daccdee3b769 Signed-off-by: José Pekkarinen --- kernel/arch/arm/mach-omap2/Kconfig | 64 +- kernel/arch/arm/mach-omap2/Makefile | 35 +- kernel/arch/arm/mach-omap2/board-cm-t35.c | 769 ------------------- kernel/arch/arm/mach-omap2/board-generic.c | 35 +- kernel/arch/arm/mach-omap2/board-ldp.c | 2 +- kernel/arch/arm/mach-omap2/board-omap3beagle.c | 595 --------------- kernel/arch/arm/mach-omap2/board-omap3logic.c | 249 ------- kernel/arch/arm/mach-omap2/board-omap3pandora.c | 633 ---------------- kernel/arch/arm/mach-omap2/board-overo.c | 571 -------------- kernel/arch/arm/mach-omap2/board-rx51.c | 2 +- .../arch/arm/mach-omap2/clkt2xxx_virt_prcm_set.c | 12 +- kernel/arch/arm/mach-omap2/clkt34xx_dpll3m2.c | 119 --- kernel/arch/arm/mach-omap2/clkt_clksel.c | 466 ------------ kernel/arch/arm/mach-omap2/clkt_dpll.c | 370 ---------- kernel/arch/arm/mach-omap2/clkt_iclk.c | 68 -- kernel/arch/arm/mach-omap2/clock.c | 676 +---------------- kernel/arch/arm/mach-omap2/clock.h | 205 +----- kernel/arch/arm/mach-omap2/clock2430.c | 57 -- kernel/arch/arm/mach-omap2/clock2xxx.c | 57 -- kernel/arch/arm/mach-omap2/clock34xx.c | 138 ---- kernel/arch/arm/mach-omap2/clock34xx.h | 18 - kernel/arch/arm/mach-omap2/clock3517.c | 118 --- kernel/arch/arm/mach-omap2/clock3517.h | 14 - kernel/arch/arm/mach-omap2/clock36xx.c | 69 -- kernel/arch/arm/mach-omap2/clock36xx.h | 13 - kernel/arch/arm/mach-omap2/clock3xxx.c | 135 ---- kernel/arch/arm/mach-omap2/clock44xx.h | 20 - kernel/arch/arm/mach-omap2/clock_common_data.c | 115 --- kernel/arch/arm/mach-omap2/clockdomain.h | 3 +- kernel/arch/arm/mach-omap2/clockdomains81xx_data.c | 23 +- kernel/arch/arm/mach-omap2/common.c | 1 + kernel/arch/arm/mach-omap2/common.h | 13 +- kernel/arch/arm/mach-omap2/control.c | 4 + kernel/arch/arm/mach-omap2/control.h | 3 + kernel/arch/arm/mach-omap2/devices.c | 57 +- kernel/arch/arm/mach-omap2/devices.h | 19 - kernel/arch/arm/mach-omap2/display.c | 32 +- kernel/arch/arm/mach-omap2/dma.c | 1 - kernel/arch/arm/mach-omap2/dpll3xxx.c | 818 --------------------- kernel/arch/arm/mach-omap2/dpll44xx.c | 232 ------ kernel/arch/arm/mach-omap2/fb.c | 2 +- kernel/arch/arm/mach-omap2/gpmc-onenand.c | 24 +- kernel/arch/arm/mach-omap2/hsmmc.c | 2 +- kernel/arch/arm/mach-omap2/hwspinlock.c | 60 -- kernel/arch/arm/mach-omap2/id.c | 38 +- kernel/arch/arm/mach-omap2/include/mach/barriers.h | 33 - kernel/arch/arm/mach-omap2/io.c | 76 +- kernel/arch/arm/mach-omap2/iomap.h | 63 ++ kernel/arch/arm/mach-omap2/omap-hotplug.c | 2 +- kernel/arch/arm/mach-omap2/omap-iommu.c | 13 +- kernel/arch/arm/mach-omap2/omap-mpuss-lowpower.c | 2 +- kernel/arch/arm/mach-omap2/omap-smp.c | 6 +- kernel/arch/arm/mach-omap2/omap-wakeupgen.c | 67 +- kernel/arch/arm/mach-omap2/omap3-restart.c | 1 + kernel/arch/arm/mach-omap2/omap4-common.c | 121 +++ kernel/arch/arm/mach-omap2/omap4-restart.c | 1 + kernel/arch/arm/mach-omap2/omap54xx.h | 8 + kernel/arch/arm/mach-omap2/omap_device.c | 64 +- kernel/arch/arm/mach-omap2/omap_hwmod.c | 102 ++- kernel/arch/arm/mach-omap2/omap_hwmod.h | 19 +- .../arm/mach-omap2/omap_hwmod_2xxx_ipblock_data.c | 14 +- .../mach-omap2/omap_hwmod_33xx_43xx_common_data.h | 1 + .../omap_hwmod_33xx_43xx_interconnect_data.c | 20 - .../mach-omap2/omap_hwmod_33xx_43xx_ipblock_data.c | 16 +- kernel/arch/arm/mach-omap2/omap_hwmod_33xx_data.c | 13 - kernel/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c | 148 ++-- kernel/arch/arm/mach-omap2/omap_hwmod_43xx_data.c | 24 +- kernel/arch/arm/mach-omap2/omap_hwmod_44xx_data.c | 21 +- kernel/arch/arm/mach-omap2/omap_hwmod_54xx_data.c | 3 +- kernel/arch/arm/mach-omap2/omap_hwmod_7xx_data.c | 122 ++- kernel/arch/arm/mach-omap2/omap_hwmod_81xx_data.c | 576 ++++++++++----- kernel/arch/arm/mach-omap2/opp2430_data.c | 4 +- kernel/arch/arm/mach-omap2/pdata-quirks.c | 165 ++++- kernel/arch/arm/mach-omap2/pm.h | 3 +- kernel/arch/arm/mach-omap2/pm24xx.c | 1 + kernel/arch/arm/mach-omap2/pm34xx.c | 4 +- kernel/arch/arm/mach-omap2/pm44xx.c | 2 +- kernel/arch/arm/mach-omap2/pmu.c | 2 +- kernel/arch/arm/mach-omap2/powerdomains3xxx_data.c | 126 +++- kernel/arch/arm/mach-omap2/prcm-common.h | 8 + kernel/arch/arm/mach-omap2/prcm43xx.h | 9 + kernel/arch/arm/mach-omap2/prm44xx.c | 61 +- kernel/arch/arm/mach-omap2/prm_common.c | 5 +- kernel/arch/arm/mach-omap2/sdrc2xxx.c | 2 +- kernel/arch/arm/mach-omap2/serial.c | 2 +- kernel/arch/arm/mach-omap2/sleep34xx.S | 61 +- kernel/arch/arm/mach-omap2/sleep44xx.S | 33 +- kernel/arch/arm/mach-omap2/soc.h | 197 ++--- kernel/arch/arm/mach-omap2/sram.c | 25 - kernel/arch/arm/mach-omap2/sram.h | 14 - kernel/arch/arm/mach-omap2/sram242x.S | 2 +- kernel/arch/arm/mach-omap2/sram243x.S | 2 +- kernel/arch/arm/mach-omap2/sram34xx.S | 346 --------- kernel/arch/arm/mach-omap2/timer.c | 242 +++--- kernel/arch/arm/mach-omap2/vc.c | 8 +- .../arch/arm/mach-omap2/voltagedomains3xxx_data.c | 2 +- .../arch/arm/mach-omap2/voltagedomains44xx_data.c | 2 +- .../arch/arm/mach-omap2/voltagedomains54xx_data.c | 2 +- 98 files changed, 1824 insertions(+), 7999 deletions(-) delete mode 100644 kernel/arch/arm/mach-omap2/board-cm-t35.c delete mode 100644 kernel/arch/arm/mach-omap2/board-omap3beagle.c delete mode 100644 kernel/arch/arm/mach-omap2/board-omap3logic.c delete mode 100644 kernel/arch/arm/mach-omap2/board-omap3pandora.c delete mode 100644 kernel/arch/arm/mach-omap2/board-overo.c delete mode 100644 kernel/arch/arm/mach-omap2/clkt34xx_dpll3m2.c delete mode 100644 kernel/arch/arm/mach-omap2/clkt_clksel.c delete mode 100644 kernel/arch/arm/mach-omap2/clkt_dpll.c delete mode 100644 kernel/arch/arm/mach-omap2/clkt_iclk.c delete mode 100644 kernel/arch/arm/mach-omap2/clock2430.c delete mode 100644 kernel/arch/arm/mach-omap2/clock2xxx.c delete mode 100644 kernel/arch/arm/mach-omap2/clock34xx.c delete mode 100644 kernel/arch/arm/mach-omap2/clock34xx.h delete mode 100644 kernel/arch/arm/mach-omap2/clock3517.c delete mode 100644 kernel/arch/arm/mach-omap2/clock3517.h delete mode 100644 kernel/arch/arm/mach-omap2/clock36xx.c delete mode 100644 kernel/arch/arm/mach-omap2/clock36xx.h delete mode 100644 kernel/arch/arm/mach-omap2/clock3xxx.c delete mode 100644 kernel/arch/arm/mach-omap2/clock44xx.h delete mode 100644 kernel/arch/arm/mach-omap2/clock_common_data.c delete mode 100644 kernel/arch/arm/mach-omap2/devices.h delete mode 100644 kernel/arch/arm/mach-omap2/dpll3xxx.c delete mode 100644 kernel/arch/arm/mach-omap2/dpll44xx.c delete mode 100644 kernel/arch/arm/mach-omap2/hwspinlock.c delete mode 100644 kernel/arch/arm/mach-omap2/include/mach/barriers.h delete mode 100644 kernel/arch/arm/mach-omap2/sram34xx.S (limited to 'kernel/arch/arm/mach-omap2') diff --git a/kernel/arch/arm/mach-omap2/Kconfig b/kernel/arch/arm/mach-omap2/Kconfig index 6468f15f0..0517f0c15 100644 --- a/kernel/arch/arm/mach-omap2/Kconfig +++ b/kernel/arch/arm/mach-omap2/Kconfig @@ -29,6 +29,7 @@ config ARCH_OMAP4 select HAVE_ARM_SCU if SMP select HAVE_ARM_TWD if SMP select OMAP_INTERCONNECT + select OMAP_INTERCONNECT_BARRIER select PL310_ERRATA_588369 if CACHE_L2X0 select PL310_ERRATA_727915 if CACHE_L2X0 select PM_OPP if PM @@ -43,9 +44,12 @@ config SOC_OMAP5 select ARM_CPU_SUSPEND if PM select ARM_GIC select HAVE_ARM_SCU if SMP - select HAVE_ARM_TWD if SMP select HAVE_ARM_ARCH_TIMER select ARM_ERRATA_798181 if SMP + select OMAP_INTERCONNECT + select OMAP_INTERCONNECT_BARRIER + select PM_OPP if PM + select ZONE_DMA if ARM_LPAE config SOC_AM33XX bool "TI AM33XX" @@ -60,6 +64,9 @@ config SOC_AM43XX select ARM_GIC select MACH_OMAP_GENERIC select MIGHT_HAVE_CACHE_L2X0 + select HAVE_ARM_SCU + select GENERIC_CLOCKEVENTS_BROADCAST + select HAVE_ARM_TWD config SOC_DRA7XX bool "TI DRA7XX" @@ -67,9 +74,14 @@ config SOC_DRA7XX select ARCH_OMAP2PLUS select ARM_CPU_SUSPEND if PM select ARM_GIC + select HAVE_ARM_SCU if SMP select HAVE_ARM_ARCH_TIMER select IRQ_CROSSBAR select ARM_ERRATA_798181 if SMP + select OMAP_INTERCONNECT + select OMAP_INTERCONNECT_BARRIER + select PM_OPP if PM + select ZONE_DMA if ARM_LPAE config ARCH_OMAP2PLUS bool @@ -86,11 +98,15 @@ config ARCH_OMAP2PLUS select OMAP_GPMC select PINCTRL select SOC_BUS - select TI_PRIV_EDMA select OMAP_IRQCHIP + select CLKSRC_TI_32K help Systems based on OMAP2, OMAP3, OMAP4 or OMAP5 +config OMAP_INTERCONNECT_BARRIER + bool + select ARM_HEAVY_MB + if ARCH_OMAP2PLUS @@ -107,6 +123,7 @@ config ARCH_OMAP2PLUS_TYPICAL select NEON if CPU_V7 select PM select REGULATOR + select REGULATOR_FIXED_VOLTAGE select TWL4030_CORE if ARCH_OMAP3 || ARCH_OMAP4 select TWL4030_POWER if ARCH_OMAP3 || ARCH_OMAP4 select VFP @@ -171,44 +188,12 @@ config MACH_OMAP2_TUSB6010 depends on ARCH_OMAP2 && SOC_OMAP2420 default y if MACH_NOKIA_N8X0 -config MACH_OMAP3_BEAGLE - bool "OMAP3 BEAGLE board" - depends on ARCH_OMAP3 - default y - select OMAP_PACKAGE_CBB - config MACH_OMAP_LDP bool "OMAP3 LDP board" depends on ARCH_OMAP3 default y select OMAP_PACKAGE_CBB -config MACH_OMAP3530_LV_SOM - bool "OMAP3 Logic 3530 LV SOM board" - depends on ARCH_OMAP3 - default y - select OMAP_PACKAGE_CBB - help - Support for the LogicPD OMAP3530 SOM Development kit - for full description please see the products webpage at - http://www.logicpd.com/products/development-kits/texas-instruments-zoom%E2%84%A2-omap35x-development-kit - -config MACH_OMAP3_TORPEDO - bool "OMAP3 Logic 35x Torpedo board" - depends on ARCH_OMAP3 - default y - select OMAP_PACKAGE_CBB - help - Support for the LogicPD OMAP35x Torpedo Development kit - for full description please see the products webpage at - http://www.logicpd.com/products/development-kits/zoom-omap35x-torpedo-development-kit - -config MACH_OVERO - bool "Gumstix Overo board" - depends on ARCH_OMAP3 - default y - select OMAP_PACKAGE_CBB - config MACH_OMAP3517EVM bool "OMAP3517/ AM3517 EVM board" depends on ARCH_OMAP3 @@ -219,7 +204,6 @@ config MACH_OMAP3_PANDORA depends on ARCH_OMAP3 default y select OMAP_PACKAGE_CBB - select REGULATOR_FIXED_VOLTAGE if REGULATOR config MACH_NOKIA_N810 bool @@ -240,16 +224,6 @@ config MACH_NOKIA_RX51 default y select OMAP_PACKAGE_CBB -config MACH_CM_T35 - bool "CompuLab CM-T35/CM-T3730 modules" - depends on ARCH_OMAP3 - default y - select MACH_CM_T3730 - select OMAP_PACKAGE_CUS - -config MACH_CM_T3730 - bool - config OMAP3_SDRC_AC_TIMING bool "Enable SDRC AC timing register changes" depends on ARCH_OMAP3 diff --git a/kernel/arch/arm/mach-omap2/Makefile b/kernel/arch/arm/mach-omap2/Makefile index ec002bd4a..ceefcee6b 100644 --- a/kernel/arch/arm/mach-omap2/Makefile +++ b/kernel/arch/arm/mach-omap2/Makefile @@ -12,8 +12,7 @@ obj-y := id.o io.o control.o mux.o devices.o fb.o serial.o timer.o pm.o \ hwmod-common = omap_hwmod.o omap_hwmod_reset.o \ omap_hwmod_common_data.o -clock-common = clock.o clock_common_data.o \ - clkt_dpll.o clkt_clksel.o +clock-common = clock.o secure-common = omap-smc.o omap-secure.o obj-$(CONFIG_ARCH_OMAP2) += $(omap-2-3-common) $(hwmod-common) @@ -49,11 +48,9 @@ AFLAGS_sleep44xx.o :=-Wa,-march=armv7-a$(plus_sec) # Functions loaded to SRAM obj-$(CONFIG_SOC_OMAP2420) += sram242x.o obj-$(CONFIG_SOC_OMAP2430) += sram243x.o -obj-$(CONFIG_ARCH_OMAP3) += sram34xx.o AFLAGS_sram242x.o :=-Wa,-march=armv6 AFLAGS_sram243x.o :=-Wa,-march=armv6 -AFLAGS_sram34xx.o :=-Wa,-march=armv7-a # Restart code (OMAP4/5 currently in omap4-common.c) obj-$(CONFIG_SOC_OMAP2420) += omap2-restart.o @@ -182,24 +179,16 @@ obj-$(CONFIG_SOC_DRA7XX) += $(clockdomain-common) obj-$(CONFIG_SOC_DRA7XX) += clockdomains7xx_data.o # Clock framework -obj-$(CONFIG_ARCH_OMAP2) += $(clock-common) clock2xxx.o +obj-$(CONFIG_ARCH_OMAP2) += $(clock-common) obj-$(CONFIG_ARCH_OMAP2) += clkt2xxx_dpllcore.o obj-$(CONFIG_ARCH_OMAP2) += clkt2xxx_virt_prcm_set.o -obj-$(CONFIG_ARCH_OMAP2) += clkt2xxx_dpll.o clkt_iclk.o -obj-$(CONFIG_SOC_OMAP2430) += clock2430.o -obj-$(CONFIG_ARCH_OMAP3) += $(clock-common) clock3xxx.o -obj-$(CONFIG_ARCH_OMAP3) += clock34xx.o clkt34xx_dpll3m2.o -obj-$(CONFIG_ARCH_OMAP3) += clock3517.o clock36xx.o -obj-$(CONFIG_ARCH_OMAP3) += dpll3xxx.o -obj-$(CONFIG_ARCH_OMAP3) += clkt_iclk.o +obj-$(CONFIG_ARCH_OMAP2) += clkt2xxx_dpll.o +obj-$(CONFIG_ARCH_OMAP3) += $(clock-common) obj-$(CONFIG_ARCH_OMAP4) += $(clock-common) -obj-$(CONFIG_ARCH_OMAP4) += dpll3xxx.o dpll44xx.o -obj-$(CONFIG_SOC_AM33XX) += $(clock-common) dpll3xxx.o +obj-$(CONFIG_SOC_AM33XX) += $(clock-common) obj-$(CONFIG_SOC_OMAP5) += $(clock-common) -obj-$(CONFIG_SOC_OMAP5) += dpll3xxx.o dpll44xx.o obj-$(CONFIG_SOC_DRA7XX) += $(clock-common) -obj-$(CONFIG_SOC_DRA7XX) += dpll3xxx.o dpll44xx.o -obj-$(CONFIG_SOC_AM43XX) += $(clock-common) dpll3xxx.o +obj-$(CONFIG_SOC_AM43XX) += $(clock-common) # OMAP2 clock rate set data (old "OPP" data) obj-$(CONFIG_SOC_OMAP2420) += opp2420_data.o @@ -234,25 +223,18 @@ obj-$(CONFIG_SOC_DRA7XX) += omap_hwmod_7xx_data.o # EMU peripherals obj-$(CONFIG_HW_PERF_EVENTS) += pmu.o -iommu-$(CONFIG_OMAP_IOMMU) := omap-iommu.o -obj-y += $(iommu-m) $(iommu-y) +obj-$(CONFIG_OMAP_IOMMU) += omap-iommu.o # OMAP2420 MSDI controller integration support ("MMC") obj-$(CONFIG_SOC_OMAP2420) += msdi.o # Specific board support obj-$(CONFIG_MACH_OMAP_GENERIC) += board-generic.o pdata-quirks.o -obj-$(CONFIG_MACH_OMAP3_BEAGLE) += board-omap3beagle.o obj-$(CONFIG_MACH_OMAP_LDP) += board-ldp.o -obj-$(CONFIG_MACH_OMAP3530_LV_SOM) += board-omap3logic.o -obj-$(CONFIG_MACH_OMAP3_TORPEDO) += board-omap3logic.o -obj-$(CONFIG_MACH_OVERO) += board-overo.o -obj-$(CONFIG_MACH_OMAP3_PANDORA) += board-omap3pandora.o obj-$(CONFIG_MACH_NOKIA_N8X0) += board-n8x0.o obj-$(CONFIG_MACH_NOKIA_RX51) += board-rx51.o sdram-nokia.o obj-$(CONFIG_MACH_NOKIA_RX51) += board-rx51-peripherals.o obj-$(CONFIG_MACH_NOKIA_RX51) += board-rx51-video.o -obj-$(CONFIG_MACH_CM_T35) += board-cm-t35.o # Platform specific device init code @@ -277,8 +259,5 @@ obj-y += $(nand-m) $(nand-y) smsc911x-$(CONFIG_SMSC911X) := gpmc-smsc911x.o obj-y += $(smsc911x-m) $(smsc911x-y) -ifneq ($(CONFIG_HWSPINLOCK_OMAP),) -obj-y += hwspinlock.o -endif obj-y += common-board-devices.o twl-common.o dss-common.o diff --git a/kernel/arch/arm/mach-omap2/board-cm-t35.c b/kernel/arch/arm/mach-omap2/board-cm-t35.c deleted file mode 100644 index b5dfbc1b1..000000000 --- a/kernel/arch/arm/mach-omap2/board-cm-t35.c +++ /dev/null @@ -1,769 +0,0 @@ -/* - * CompuLab CM-T35/CM-T3730 modules support - * - * Copyright (C) 2009-2011 CompuLab, Ltd. - * Authors: Mike Rapoport - * Igor Grinberg - * - * 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. - * - * This program is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - */ - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include - -#include -#include - -#include -#include -#include - -#include -#include