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-shmobile/Kconfig | 127 +- kernel/arch/arm/mach-shmobile/Makefile | 28 +- kernel/arch/arm/mach-shmobile/Makefile.boot | 15 - .../arch/arm/mach-shmobile/board-armadillo800eva.c | 1365 -------------------- .../arch/arm/mach-shmobile/board-bockw-reference.c | 86 -- kernel/arch/arm/mach-shmobile/board-bockw.c | 737 ----------- kernel/arch/arm/mach-shmobile/board-kzm9g.c | 916 ------------- .../arm/mach-shmobile/board-marzen-reference.c | 56 - kernel/arch/arm/mach-shmobile/board-marzen.c | 347 ----- kernel/arch/arm/mach-shmobile/clock-r8a7740.c | 675 ---------- kernel/arch/arm/mach-shmobile/clock-r8a7778.c | 342 ----- kernel/arch/arm/mach-shmobile/clock-r8a7779.c | 271 ---- kernel/arch/arm/mach-shmobile/clock-sh73a0.c | 752 ----------- kernel/arch/arm/mach-shmobile/clock.c | 47 - kernel/arch/arm/mach-shmobile/clock.h | 42 - kernel/arch/arm/mach-shmobile/common.h | 7 +- kernel/arch/arm/mach-shmobile/console.c | 27 - kernel/arch/arm/mach-shmobile/dma-register.h | 84 -- .../arm/mach-shmobile/include/mach/head-kzm9g.txt | 410 ------ kernel/arch/arm/mach-shmobile/include/mach/zboot.h | 19 - .../arm/mach-shmobile/include/mach/zboot_macros.h | 108 -- kernel/arch/arm/mach-shmobile/intc-sh73a0.c | 337 ----- kernel/arch/arm/mach-shmobile/intc.h | 295 ----- kernel/arch/arm/mach-shmobile/platsmp-apmu.c | 8 +- kernel/arch/arm/mach-shmobile/platsmp.c | 4 +- kernel/arch/arm/mach-shmobile/pm-r8a7740.c | 129 -- kernel/arch/arm/mach-shmobile/pm-r8a7779.c | 99 -- kernel/arch/arm/mach-shmobile/pm-rcar.c | 107 +- kernel/arch/arm/mach-shmobile/pm-rcar.h | 12 +- kernel/arch/arm/mach-shmobile/pm-rmobile.c | 88 +- kernel/arch/arm/mach-shmobile/pm-rmobile.h | 39 - kernel/arch/arm/mach-shmobile/pm-sh73a0.c | 32 - kernel/arch/arm/mach-shmobile/r8a7740.h | 58 - kernel/arch/arm/mach-shmobile/r8a7778.h | 78 -- kernel/arch/arm/mach-shmobile/r8a7779.h | 27 - .../arm/mach-shmobile/regulator-quirk-rcar-gen2.c | 3 +- kernel/arch/arm/mach-shmobile/setup-r7s72100.c | 2 +- kernel/arch/arm/mach-shmobile/setup-r8a73a4.c | 2 +- kernel/arch/arm/mach-shmobile/setup-r8a7740.c | 735 +---------- kernel/arch/arm/mach-shmobile/setup-r8a7778.c | 565 +------- kernel/arch/arm/mach-shmobile/setup-r8a7779.c | 685 +--------- kernel/arch/arm/mach-shmobile/setup-r8a7791.c | 2 +- kernel/arch/arm/mach-shmobile/setup-r8a7793.c | 33 + kernel/arch/arm/mach-shmobile/setup-rcar-gen2.c | 4 +- kernel/arch/arm/mach-shmobile/setup-sh73a0.c | 741 +---------- kernel/arch/arm/mach-shmobile/sh-gpio.h | 29 - kernel/arch/arm/mach-shmobile/sh73a0.h | 83 -- kernel/arch/arm/mach-shmobile/smp-r8a7779.c | 21 +- kernel/arch/arm/mach-shmobile/smp-r8a7790.c | 6 +- kernel/arch/arm/mach-shmobile/smp-r8a7791.c | 2 +- kernel/arch/arm/mach-shmobile/smp-sh73a0.c | 10 +- kernel/arch/arm/mach-shmobile/timer.c | 33 - 52 files changed, 181 insertions(+), 10549 deletions(-) delete mode 100644 kernel/arch/arm/mach-shmobile/Makefile.boot delete mode 100644 kernel/arch/arm/mach-shmobile/board-armadillo800eva.c delete mode 100644 kernel/arch/arm/mach-shmobile/board-bockw-reference.c delete mode 100644 kernel/arch/arm/mach-shmobile/board-bockw.c delete mode 100644 kernel/arch/arm/mach-shmobile/board-kzm9g.c delete mode 100644 kernel/arch/arm/mach-shmobile/board-marzen-reference.c delete mode 100644 kernel/arch/arm/mach-shmobile/board-marzen.c delete mode 100644 kernel/arch/arm/mach-shmobile/clock-r8a7740.c delete mode 100644 kernel/arch/arm/mach-shmobile/clock-r8a7778.c delete mode 100644 kernel/arch/arm/mach-shmobile/clock-r8a7779.c delete mode 100644 kernel/arch/arm/mach-shmobile/clock-sh73a0.c delete mode 100644 kernel/arch/arm/mach-shmobile/clock.c delete mode 100644 kernel/arch/arm/mach-shmobile/clock.h delete mode 100644 kernel/arch/arm/mach-shmobile/console.c delete mode 100644 kernel/arch/arm/mach-shmobile/dma-register.h delete mode 100644 kernel/arch/arm/mach-shmobile/include/mach/head-kzm9g.txt delete mode 100644 kernel/arch/arm/mach-shmobile/include/mach/zboot.h delete mode 100644 kernel/arch/arm/mach-shmobile/include/mach/zboot_macros.h delete mode 100644 kernel/arch/arm/mach-shmobile/intc-sh73a0.c delete mode 100644 kernel/arch/arm/mach-shmobile/intc.h delete mode 100644 kernel/arch/arm/mach-shmobile/pm-r8a7740.c delete mode 100644 kernel/arch/arm/mach-shmobile/pm-sh73a0.c delete mode 100644 kernel/arch/arm/mach-shmobile/r8a7740.h delete mode 100644 kernel/arch/arm/mach-shmobile/r8a7778.h create mode 100644 kernel/arch/arm/mach-shmobile/setup-r8a7793.c delete mode 100644 kernel/arch/arm/mach-shmobile/sh-gpio.h (limited to 'kernel/arch/arm/mach-shmobile') diff --git a/kernel/arch/arm/mach-shmobile/Kconfig b/kernel/arch/arm/mach-shmobile/Kconfig index 0fb484221..88734a5e1 100644 --- a/kernel/arch/arm/mach-shmobile/Kconfig +++ b/kernel/arch/arm/mach-shmobile/Kconfig @@ -4,6 +4,7 @@ config ARCH_SHMOBILE config PM_RCAR bool + select PM_GENERIC_DOMAINS if PM config PM_RMOBILE bool @@ -50,6 +51,7 @@ config ARCH_EMEV2 config ARCH_R7S72100 bool "RZ/A1H (R7S72100)" + select PM_GENERIC_DOMAINS if PM select SYS_SUPPORTS_SH_MTU2 config ARCH_R8A73A4 @@ -80,6 +82,11 @@ config ARCH_R8A7791 select ARCH_RCAR_GEN2 select I2C +config ARCH_R8A7793 + bool "R-Car M2-N (R8A7793)" + select ARCH_RCAR_GEN2 + select I2C + config ARCH_R8A7794 bool "R-Car E2 (R8A77940)" select ARCH_RCAR_GEN2 @@ -89,125 +96,5 @@ config ARCH_SH73A0 select ARCH_RMOBILE select RENESAS_INTC_IRQPIN -comment "Renesas ARM SoCs Board Type" - -config MACH_MARZEN - bool "MARZEN board" - depends on ARCH_R8A7779 - select REGULATOR_FIXED_VOLTAGE if REGULATOR - -comment "Renesas ARM SoCs System Configuration" -endif - -if ARCH_SHMOBILE_LEGACY - -comment "Renesas ARM SoCs System Type" - -config ARCH_SH73A0 - bool "SH-Mobile AG5 (R8A73A00)" - select ARCH_RMOBILE - select ARCH_WANT_OPTIONAL_GPIOLIB - select ARM_GIC - select I2C - select SH_INTC - select RENESAS_INTC_IRQPIN - -config ARCH_R8A7740 - bool "R-Mobile A1 (R8A77400)" - select ARCH_RMOBILE - select ARCH_WANT_OPTIONAL_GPIOLIB - select ARM_GIC - select RENESAS_INTC_IRQPIN - -config ARCH_R8A7778 - bool "R-Car M1A (R8A77781)" - select ARCH_RCAR_GEN1 - select ARCH_WANT_OPTIONAL_GPIOLIB - select ARM_GIC - -config ARCH_R8A7779 - bool "R-Car H1 (R8A77790)" - select ARCH_RCAR_GEN1 - select ARCH_WANT_OPTIONAL_GPIOLIB - select ARM_GIC - -comment "Renesas ARM SoCs Board Type" - -config MACH_ARMADILLO800EVA - bool "Armadillo-800 EVA board" - depends on ARCH_R8A7740 - select ARCH_REQUIRE_GPIOLIB - select REGULATOR_FIXED_VOLTAGE if REGULATOR - select SMSC_PHY if SH_ETH - select SND_SOC_WM8978 if SND_SIMPLE_CARD - select USE_OF - -config MACH_BOCKW - bool "BOCK-W platform" - depends on ARCH_R8A7778 - select ARCH_REQUIRE_GPIOLIB - select REGULATOR_FIXED_VOLTAGE if REGULATOR - select SND_SOC_AK4554 if SND_SIMPLE_CARD - select SND_SOC_AK4642 if SND_SIMPLE_CARD - select USE_OF - -config MACH_BOCKW_REFERENCE - bool "BOCK-W - Reference Device Tree Implementation" - depends on ARCH_R8A7778 - select ARCH_REQUIRE_GPIOLIB - select REGULATOR_FIXED_VOLTAGE if REGULATOR - select USE_OF - ---help--- - Use reference implementation of BockW board support - which makes use of device tree at the expense - of not supporting a number of devices. - - This is intended to aid developers - -config MACH_MARZEN - bool "MARZEN board" - depends on ARCH_R8A7779 - select ARCH_REQUIRE_GPIOLIB - select REGULATOR_FIXED_VOLTAGE if REGULATOR - select USE_OF - -config MACH_KZM9G - bool "KZM-A9-GT board" - depends on ARCH_SH73A0 - select ARCH_REQUIRE_GPIOLIB - select REGULATOR_FIXED_VOLTAGE if REGULATOR - select SND_SOC_AK4642 if SND_SIMPLE_CARD - select USE_OF - comment "Renesas ARM SoCs System Configuration" - -config CPU_HAS_INTEVT - bool - default y - -config SH_CLK_CPG - bool - -source "drivers/sh/Kconfig" - -endif - -if ARCH_SHMOBILE - -menu "Timer and clock configuration" - -config SHMOBILE_TIMER_HZ - int "Kernel HZ (jiffies per second)" - range 32 1024 - default "128" - help - Allows the configuration of the timer frequency. It is customary - to have the timer interrupt run at 1000 Hz or 100 Hz, but in the - case of low timer frequencies other values may be more suitable. - Renesas ARM SoC systems using a 32768 Hz RCLK for clock events may - want to select a HZ value such as 128 that can evenly divide RCLK. - A HZ value that does not divide evenly may cause timer drift. - -endmenu - endif diff --git a/kernel/arch/arm/mach-shmobile/Makefile b/kernel/arch/arm/mach-shmobile/Makefile index 89e463de4..a65c80ac9 100644 --- a/kernel/arch/arm/mach-shmobile/Makefile +++ b/kernel/arch/arm/mach-shmobile/Makefile @@ -3,29 +3,21 @@ # # Common objects -obj-y := timer.o console.o +obj-y := timer.o # CPU objects -obj-$(CONFIG_ARCH_SH73A0) += setup-sh73a0.o pm-sh73a0.o +obj-$(CONFIG_ARCH_SH73A0) += setup-sh73a0.o obj-$(CONFIG_ARCH_R8A73A4) += setup-r8a73a4.o -obj-$(CONFIG_ARCH_R8A7740) += setup-r8a7740.o pm-r8a7740.o +obj-$(CONFIG_ARCH_R8A7740) += setup-r8a7740.o obj-$(CONFIG_ARCH_R8A7778) += setup-r8a7778.o obj-$(CONFIG_ARCH_R8A7779) += setup-r8a7779.o pm-r8a7779.o obj-$(CONFIG_ARCH_R8A7790) += setup-r8a7790.o obj-$(CONFIG_ARCH_R8A7791) += setup-r8a7791.o +obj-$(CONFIG_ARCH_R8A7793) += setup-r8a7793.o obj-$(CONFIG_ARCH_R8A7794) += setup-r8a7794.o obj-$(CONFIG_ARCH_EMEV2) += setup-emev2.o obj-$(CONFIG_ARCH_R7S72100) += setup-r7s72100.o -# Clock objects -ifndef CONFIG_COMMON_CLK -obj-y += clock.o -obj-$(CONFIG_ARCH_SH73A0) += clock-sh73a0.o -obj-$(CONFIG_ARCH_R8A7740) += clock-r8a7740.o -obj-$(CONFIG_ARCH_R8A7778) += clock-r8a7778.o -obj-$(CONFIG_ARCH_R8A7779) += clock-r8a7779.o -endif - # CPU reset vector handling objects cpu-y := platsmp.o headsmp.o @@ -34,6 +26,7 @@ obj-$(CONFIG_ARCH_RCAR_GEN2) += setup-rcar-gen2.o platsmp-apmu.o $(cpu-y) CFLAGS_setup-rcar-gen2.o += -march=armv7-a obj-$(CONFIG_ARCH_R8A7790) += regulator-quirk-rcar-gen2.o obj-$(CONFIG_ARCH_R8A7791) += regulator-quirk-rcar-gen2.o +obj-$(CONFIG_ARCH_R8A7793) += regulator-quirk-rcar-gen2.o # SMP objects smp-y := $(cpu-y) @@ -50,16 +43,5 @@ obj-$(CONFIG_PM_RCAR) += pm-rcar.o obj-$(CONFIG_PM_RMOBILE) += pm-rmobile.o obj-$(CONFIG_ARCH_RCAR_GEN2) += pm-rcar-gen2.o -# Board objects -ifdef CONFIG_ARCH_SHMOBILE_MULTI -obj-$(CONFIG_MACH_MARZEN) += board-marzen-reference.o -else -obj-$(CONFIG_MACH_BOCKW) += board-bockw.o -obj-$(CONFIG_MACH_BOCKW_REFERENCE) += board-bockw-reference.o -obj-$(CONFIG_MACH_MARZEN) += board-marzen.o -obj-$(CONFIG_MACH_ARMADILLO800EVA) += board-armadillo800eva.o -obj-$(CONFIG_MACH_KZM9G) += board-kzm9g.o intc-sh73a0.o -endif - # Framework support obj-$(CONFIG_SMP) += $(smp-y) diff --git a/kernel/arch/arm/mach-shmobile/Makefile.boot b/kernel/arch/arm/mach-shmobile/Makefile.boot deleted file mode 100644 index e1ef19cef..000000000 --- a/kernel/arch/arm/mach-shmobile/Makefile.boot +++ /dev/null @@ -1,15 +0,0 @@ -# per-board load address for uImage -loadaddr-y := -loadaddr-$(CONFIG_MACH_ARMADILLO800EVA) += 0x40008000 -loadaddr-$(CONFIG_MACH_BOCKW) += 0x60008000 -loadaddr-$(CONFIG_MACH_BOCKW_REFERENCE) += 0x60008000 -loadaddr-$(CONFIG_MACH_KZM9G) += 0x41008000 -loadaddr-$(CONFIG_MACH_MARZEN) += 0x60008000 - -__ZRELADDR := $(sort $(loadaddr-y)) - zreladdr-y += $(__ZRELADDR) - -# Unsupported legacy stuff -# -#params_phys-y (Instead: Pass atags pointer in r2) -#initrd_phys-y (Instead: Use compiled-in initramfs) diff --git a/kernel/arch/arm/mach-shmobile/board-armadillo800eva.c b/kernel/arch/arm/mach-shmobile/board-armadillo800eva.c deleted file mode 100644 index bf37e3c53..000000000 --- a/kernel/arch/arm/mach-shmobile/board-armadillo800eva.c +++ /dev/null @@ -1,1365 +0,0 @@ -/* - * armadillo 800 eva board support - * - * Copyright (C) 2012 Renesas Solutions Corp. - * Copyright (C) 2012 Kuninori Morimoto - * - * 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; version 2 of the License. - * - * 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 -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include