diff options
author | Arnd Bergmann <arnd@arndb.de> | 2014-09-05 11:08:14 -0400 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2014-09-05 11:08:14 -0400 |
commit | a6fff11391e7bf170ed803d2786df4cb34258546 (patch) | |
tree | dfea8a1401d3715c9afb683fde64fb0207070eb2 | |
parent | e4e3a37d3316332e02e06188dccf4401611e07b9 (diff) | |
parent | 5ac9e7f35db00e630c9f95a1f73ac329371cdbbf (diff) |
Merge tag 'renesas-soc-for-v3.18' of git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas into next/soc
Merge "Renesas ARM Based SoC Updates for v3.18" from Simon Horman:
* Remove unnecessary nr_irqs initialisation on sh73a0, sh7372,
and r8a7779 SoCs
* Use defines hardcoded numbers for DMA
* Rework multiplatform include workaround
* Correctly use shmobile_init_late on a wider range of SoCs
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
* tag 'renesas-soc-for-v3.18' of git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas:
ARM: shmobile: sh73a0: Remove unneeded nr_irqs initialization
ARM: shmobile: sh7372: Remove unneeded nr_irqs initialization
ARM: shmobile: r8a7779: Remove NR_IRQS_LEGACY
ARM: shmobile: dma: Use defines instead of hardcoded numbers
ARM: shmobile: Rework multiplatform include workaround
ARM: shmobile: r7s72100: Add shmobile_init_late()
ARM: shmobile: r8a73a4: Add shmobile_init_late()
ARM: shmobile: r8a7778: Fix shmobile_init_late()
ARM: shmobile: r8a7779: Fix shmobile_init_late()
ARM: shmobile: sh73a0: Add shmobile_init_late()
ARM: shmobile: r8a7778: Add missing call to shmobile_init_late()
-rw-r--r-- | arch/arm/mach-shmobile/Makefile | 2 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/dma-register.h | 4 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/irqs.h | 2 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/setup-r7s72100.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/setup-r8a73a4.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/setup-r8a7778.c | 3 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/setup-r8a7779.c | 3 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/setup-sh7372.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/setup-sh73a0.c | 2 |
9 files changed, 9 insertions, 10 deletions
diff --git a/arch/arm/mach-shmobile/Makefile b/arch/arm/mach-shmobile/Makefile index fe3878a1a69a..a6a1dc0335ae 100644 --- a/arch/arm/mach-shmobile/Makefile +++ b/arch/arm/mach-shmobile/Makefile | |||
@@ -2,8 +2,6 @@ | |||
2 | # Makefile for the linux kernel. | 2 | # Makefile for the linux kernel. |
3 | # | 3 | # |
4 | 4 | ||
5 | ccflags-$(CONFIG_ARCH_MULTIPLATFORM) := -I$(srctree)/arch/arm/mach-shmobile/include | ||
6 | |||
7 | # Common objects | 5 | # Common objects |
8 | obj-y := timer.o console.o | 6 | obj-y := timer.o console.o |
9 | 7 | ||
diff --git a/arch/arm/mach-shmobile/dma-register.h b/arch/arm/mach-shmobile/dma-register.h index 97c40bd9b94f..52a2f66e600f 100644 --- a/arch/arm/mach-shmobile/dma-register.h +++ b/arch/arm/mach-shmobile/dma-register.h | |||
@@ -52,8 +52,8 @@ static const unsigned int dma_ts_shift[] = { | |||
52 | ((((i) & TS_LOW_BIT) << TS_LOW_SHIFT) |\ | 52 | ((((i) & TS_LOW_BIT) << TS_LOW_SHIFT) |\ |
53 | (((i) & TS_HI_BIT) << TS_HI_SHIFT)) | 53 | (((i) & TS_HI_BIT) << TS_HI_SHIFT)) |
54 | 54 | ||
55 | #define CHCR_TX(xmit_sz) (DM_FIX | SM_INC | 0x800 | TS_INDEX2VAL((xmit_sz))) | 55 | #define CHCR_TX(xmit_sz) (DM_FIX | SM_INC | RS_ERS | TS_INDEX2VAL((xmit_sz))) |
56 | #define CHCR_RX(xmit_sz) (DM_INC | SM_FIX | 0x800 | TS_INDEX2VAL((xmit_sz))) | 56 | #define CHCR_RX(xmit_sz) (DM_INC | SM_FIX | RS_ERS | TS_INDEX2VAL((xmit_sz))) |
57 | 57 | ||
58 | 58 | ||
59 | /* | 59 | /* |
diff --git a/arch/arm/mach-shmobile/irqs.h b/arch/arm/mach-shmobile/irqs.h index 4ff2d2aa94f0..8e28223f1b3c 100644 --- a/arch/arm/mach-shmobile/irqs.h +++ b/arch/arm/mach-shmobile/irqs.h | |||
@@ -2,7 +2,7 @@ | |||
2 | #define __SHMOBILE_IRQS_H | 2 | #define __SHMOBILE_IRQS_H |
3 | 3 | ||
4 | #include <linux/sh_intc.h> | 4 | #include <linux/sh_intc.h> |
5 | #include <mach/irqs.h> | 5 | #include "include/mach/irqs.h" |
6 | 6 | ||
7 | /* GIC */ | 7 | /* GIC */ |
8 | #define gic_spi(nr) ((nr) + 32) | 8 | #define gic_spi(nr) ((nr) + 32) |
diff --git a/arch/arm/mach-shmobile/setup-r7s72100.c b/arch/arm/mach-shmobile/setup-r7s72100.c index f3b3b14ba972..8cdc25d146a9 100644 --- a/arch/arm/mach-shmobile/setup-r7s72100.c +++ b/arch/arm/mach-shmobile/setup-r7s72100.c | |||
@@ -53,6 +53,7 @@ static const char *r7s72100_boards_compat_dt[] __initdata = { | |||
53 | 53 | ||
54 | DT_MACHINE_START(R7S72100_DT, "Generic R7S72100 (Flattened Device Tree)") | 54 | DT_MACHINE_START(R7S72100_DT, "Generic R7S72100 (Flattened Device Tree)") |
55 | .init_early = shmobile_init_delay, | 55 | .init_early = shmobile_init_delay, |
56 | .init_late = shmobile_init_late, | ||
56 | .dt_compat = r7s72100_boards_compat_dt, | 57 | .dt_compat = r7s72100_boards_compat_dt, |
57 | MACHINE_END | 58 | MACHINE_END |
58 | #endif /* CONFIG_USE_OF */ | 59 | #endif /* CONFIG_USE_OF */ |
diff --git a/arch/arm/mach-shmobile/setup-r8a73a4.c b/arch/arm/mach-shmobile/setup-r8a73a4.c index 6683072a9d98..6fbcdcc39d53 100644 --- a/arch/arm/mach-shmobile/setup-r8a73a4.c +++ b/arch/arm/mach-shmobile/setup-r8a73a4.c | |||
@@ -311,6 +311,7 @@ static const char *r8a73a4_boards_compat_dt[] __initdata = { | |||
311 | 311 | ||
312 | DT_MACHINE_START(R8A73A4_DT, "Generic R8A73A4 (Flattened Device Tree)") | 312 | DT_MACHINE_START(R8A73A4_DT, "Generic R8A73A4 (Flattened Device Tree)") |
313 | .init_early = r8a73a4_init_early, | 313 | .init_early = r8a73a4_init_early, |
314 | .init_late = shmobile_init_late, | ||
314 | .dt_compat = r8a73a4_boards_compat_dt, | 315 | .dt_compat = r8a73a4_boards_compat_dt, |
315 | MACHINE_END | 316 | MACHINE_END |
316 | #endif /* CONFIG_USE_OF */ | 317 | #endif /* CONFIG_USE_OF */ |
diff --git a/arch/arm/mach-shmobile/setup-r8a7778.c b/arch/arm/mach-shmobile/setup-r8a7778.c index f00a488dcf43..e1a477bce447 100644 --- a/arch/arm/mach-shmobile/setup-r8a7778.c +++ b/arch/arm/mach-shmobile/setup-r8a7778.c | |||
@@ -520,6 +520,7 @@ void __init r8a7778_add_standard_devices(void) | |||
520 | 520 | ||
521 | void __init r8a7778_init_late(void) | 521 | void __init r8a7778_init_late(void) |
522 | { | 522 | { |
523 | shmobile_init_late(); | ||
523 | platform_device_register_full(&ehci_info); | 524 | platform_device_register_full(&ehci_info); |
524 | platform_device_register_full(&ohci_info); | 525 | platform_device_register_full(&ohci_info); |
525 | } | 526 | } |
@@ -609,8 +610,8 @@ static const char *r8a7778_compat_dt[] __initdata = { | |||
609 | DT_MACHINE_START(R8A7778_DT, "Generic R8A7778 (Flattened Device Tree)") | 610 | DT_MACHINE_START(R8A7778_DT, "Generic R8A7778 (Flattened Device Tree)") |
610 | .init_early = r8a7778_init_delay, | 611 | .init_early = r8a7778_init_delay, |
611 | .init_irq = r8a7778_init_irq_dt, | 612 | .init_irq = r8a7778_init_irq_dt, |
613 | .init_late = shmobile_init_late, | ||
612 | .dt_compat = r8a7778_compat_dt, | 614 | .dt_compat = r8a7778_compat_dt, |
613 | .init_late = r8a7778_init_late, | ||
614 | MACHINE_END | 615 | MACHINE_END |
615 | 616 | ||
616 | #endif /* CONFIG_USE_OF */ | 617 | #endif /* CONFIG_USE_OF */ |
diff --git a/arch/arm/mach-shmobile/setup-r8a7779.c b/arch/arm/mach-shmobile/setup-r8a7779.c index 236c1befb9e3..6829cd19ea72 100644 --- a/arch/arm/mach-shmobile/setup-r8a7779.c +++ b/arch/arm/mach-shmobile/setup-r8a7779.c | |||
@@ -771,10 +771,9 @@ static const char *r8a7779_compat_dt[] __initdata = { | |||
771 | DT_MACHINE_START(R8A7779_DT, "Generic R8A7779 (Flattened Device Tree)") | 771 | DT_MACHINE_START(R8A7779_DT, "Generic R8A7779 (Flattened Device Tree)") |
772 | .map_io = r8a7779_map_io, | 772 | .map_io = r8a7779_map_io, |
773 | .init_early = shmobile_init_delay, | 773 | .init_early = shmobile_init_delay, |
774 | .nr_irqs = NR_IRQS_LEGACY, | ||
775 | .init_irq = r8a7779_init_irq_dt, | 774 | .init_irq = r8a7779_init_irq_dt, |
776 | .init_machine = r8a7779_add_standard_devices_dt, | 775 | .init_machine = r8a7779_add_standard_devices_dt, |
777 | .init_late = r8a7779_init_late, | 776 | .init_late = shmobile_init_late, |
778 | .dt_compat = r8a7779_compat_dt, | 777 | .dt_compat = r8a7779_compat_dt, |
779 | MACHINE_END | 778 | MACHINE_END |
780 | #endif /* CONFIG_USE_OF */ | 779 | #endif /* CONFIG_USE_OF */ |
diff --git a/arch/arm/mach-shmobile/setup-sh7372.c b/arch/arm/mach-shmobile/setup-sh7372.c index 9cdfcdfd38fc..3731eccccef4 100644 --- a/arch/arm/mach-shmobile/setup-sh7372.c +++ b/arch/arm/mach-shmobile/setup-sh7372.c | |||
@@ -1008,7 +1008,6 @@ static const char *sh7372_boards_compat_dt[] __initdata = { | |||
1008 | DT_MACHINE_START(SH7372_DT, "Generic SH7372 (Flattened Device Tree)") | 1008 | DT_MACHINE_START(SH7372_DT, "Generic SH7372 (Flattened Device Tree)") |
1009 | .map_io = sh7372_map_io, | 1009 | .map_io = sh7372_map_io, |
1010 | .init_early = sh7372_add_early_devices_dt, | 1010 | .init_early = sh7372_add_early_devices_dt, |
1011 | .nr_irqs = NR_IRQS_LEGACY, | ||
1012 | .init_irq = sh7372_init_irq, | 1011 | .init_irq = sh7372_init_irq, |
1013 | .handle_irq = shmobile_handle_irq_intc, | 1012 | .handle_irq = shmobile_handle_irq_intc, |
1014 | .init_machine = sh7372_add_standard_devices_dt, | 1013 | .init_machine = sh7372_add_standard_devices_dt, |
diff --git a/arch/arm/mach-shmobile/setup-sh73a0.c b/arch/arm/mach-shmobile/setup-sh73a0.c index 2c802ae9b241..e7a0296b81b1 100644 --- a/arch/arm/mach-shmobile/setup-sh73a0.c +++ b/arch/arm/mach-shmobile/setup-sh73a0.c | |||
@@ -797,8 +797,8 @@ DT_MACHINE_START(SH73A0_DT, "Generic SH73A0 (Flattened Device Tree)") | |||
797 | .smp = smp_ops(sh73a0_smp_ops), | 797 | .smp = smp_ops(sh73a0_smp_ops), |
798 | .map_io = sh73a0_map_io, | 798 | .map_io = sh73a0_map_io, |
799 | .init_early = sh73a0_init_delay, | 799 | .init_early = sh73a0_init_delay, |
800 | .nr_irqs = NR_IRQS_LEGACY, | ||
801 | .init_machine = sh73a0_add_standard_devices_dt, | 800 | .init_machine = sh73a0_add_standard_devices_dt, |
801 | .init_late = shmobile_init_late, | ||
802 | .dt_compat = sh73a0_boards_compat_dt, | 802 | .dt_compat = sh73a0_boards_compat_dt, |
803 | MACHINE_END | 803 | MACHINE_END |
804 | #endif /* CONFIG_USE_OF */ | 804 | #endif /* CONFIG_USE_OF */ |