diff options
author | Kevin Hilman <khilman@linaro.org> | 2013-08-07 19:11:29 -0400 |
---|---|---|
committer | Kevin Hilman <khilman@linaro.org> | 2013-08-07 19:17:16 -0400 |
commit | 44de76b6306ff6d9012eb00174f3ea7b0a15242f (patch) | |
tree | 9b73d38eb60a654b4304d706e1d9c5ecfa334622 | |
parent | 6a33fc8cacfc7fac829c72bd321868be7e72f609 (diff) | |
parent | eb788f43a6c6e6c7a5b2879543b565e4cd452de8 (diff) |
Merge tag 'keystone-fixes-non-critical' of git://git.kernel.org/pub/scm/linux/kernel/git/ssantosh/linux-keystone into next/fixes-non-critical
From: Santosh Shilimkar <santosh.shilimkar@ti.com>:
ARM: keystone: non-critical fixes, cleanup for 3.12
Summary of changes:
- Drop unused HAVE_SCHED_CLOCK config option
- Remove now redundant smp_init_cpus call
- Update the smc code to remove dsb and r12 usage
- Convert device tree to use #include and GIC bindings
* tag 'keystone-fixes-non-critical' of git://git.kernel.org/pub/scm/linux/kernel/git/ssantosh/linux-keystone:
ARM: Keystone: Convert device tree file to use IRQ defines
ARM: keystone: use #include to include skeleton.dtsi
ARM: keystone: Drop the un-necessary dsb from keystone_cpu_smc()
ARM: Keystone: No need to preserve r12 across smc call
ARM: keystone: remove redundant smp_init_cpus definition
ARM: keystone: drop useless HAVE_SCHED_CLOCK
Signed-off-by: Kevin Hilman <khilman@linaro.org>
-rw-r--r-- | arch/arm/boot/dts/keystone.dts | 29 | ||||
-rw-r--r-- | arch/arm/mach-keystone/Kconfig | 1 | ||||
-rw-r--r-- | arch/arm/mach-keystone/platsmp.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-keystone/smc.S | 5 |
4 files changed, 20 insertions, 16 deletions
diff --git a/arch/arm/boot/dts/keystone.dts b/arch/arm/boot/dts/keystone.dts index 1334b42c6b77..a68e34bbecb2 100644 --- a/arch/arm/boot/dts/keystone.dts +++ b/arch/arm/boot/dts/keystone.dts | |||
@@ -7,7 +7,9 @@ | |||
7 | */ | 7 | */ |
8 | 8 | ||
9 | /dts-v1/; | 9 | /dts-v1/; |
10 | /include/ "skeleton.dtsi" | 10 | #include <dt-bindings/interrupt-controller/arm-gic.h> |
11 | |||
12 | #include "skeleton.dtsi" | ||
11 | 13 | ||
12 | / { | 14 | / { |
13 | model = "Texas Instruments Keystone 2 SoC"; | 15 | model = "Texas Instruments Keystone 2 SoC"; |
@@ -67,18 +69,23 @@ | |||
67 | 69 | ||
68 | timer { | 70 | timer { |
69 | compatible = "arm,armv7-timer"; | 71 | compatible = "arm,armv7-timer"; |
70 | interrupts = <1 13 0xf08>, | 72 | interrupts = |
71 | <1 14 0xf08>, | 73 | <GIC_PPI 13 |
72 | <1 11 0xf08>, | 74 | (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, |
73 | <1 10 0x308>; | 75 | <GIC_PPI 14 |
76 | (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, | ||
77 | <GIC_PPI 11 | ||
78 | (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, | ||
79 | <GIC_PPI 10 | ||
80 | (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>; | ||
74 | }; | 81 | }; |
75 | 82 | ||
76 | pmu { | 83 | pmu { |
77 | compatible = "arm,cortex-a15-pmu"; | 84 | compatible = "arm,cortex-a15-pmu"; |
78 | interrupts = <0 20 0xf01>, | 85 | interrupts = <GIC_SPI 20 IRQ_TYPE_EDGE_RISING>, |
79 | <0 21 0xf01>, | 86 | <GIC_SPI 21 IRQ_TYPE_EDGE_RISING>, |
80 | <0 22 0xf01>, | 87 | <GIC_SPI 22 IRQ_TYPE_EDGE_RISING>, |
81 | <0 23 0xf01>; | 88 | <GIC_SPI 23 IRQ_TYPE_EDGE_RISING>; |
82 | }; | 89 | }; |
83 | 90 | ||
84 | soc { | 91 | soc { |
@@ -100,7 +107,7 @@ | |||
100 | reg-io-width = <4>; | 107 | reg-io-width = <4>; |
101 | reg = <0x02530c00 0x100>; | 108 | reg = <0x02530c00 0x100>; |
102 | clock-frequency = <133120000>; | 109 | clock-frequency = <133120000>; |
103 | interrupts = <0 277 0xf01>; | 110 | interrupts = <GIC_SPI 277 IRQ_TYPE_EDGE_RISING>; |
104 | }; | 111 | }; |
105 | 112 | ||
106 | uart1: serial@02531000 { | 113 | uart1: serial@02531000 { |
@@ -110,7 +117,7 @@ | |||
110 | reg-io-width = <4>; | 117 | reg-io-width = <4>; |
111 | reg = <0x02531000 0x100>; | 118 | reg = <0x02531000 0x100>; |
112 | clock-frequency = <133120000>; | 119 | clock-frequency = <133120000>; |
113 | interrupts = <0 280 0xf01>; | 120 | interrupts = <GIC_SPI 280 IRQ_TYPE_EDGE_RISING>; |
114 | }; | 121 | }; |
115 | 122 | ||
116 | }; | 123 | }; |
diff --git a/arch/arm/mach-keystone/Kconfig b/arch/arm/mach-keystone/Kconfig index 51a50e996840..366d1a3b418d 100644 --- a/arch/arm/mach-keystone/Kconfig +++ b/arch/arm/mach-keystone/Kconfig | |||
@@ -7,7 +7,6 @@ config ARCH_KEYSTONE | |||
7 | select HAVE_SMP | 7 | select HAVE_SMP |
8 | select CLKSRC_MMIO | 8 | select CLKSRC_MMIO |
9 | select GENERIC_CLOCKEVENTS | 9 | select GENERIC_CLOCKEVENTS |
10 | select HAVE_SCHED_CLOCK | ||
11 | select ARCH_WANT_OPTIONAL_GPIOLIB | 10 | select ARCH_WANT_OPTIONAL_GPIOLIB |
12 | select ARM_ERRATA_798181 if SMP | 11 | select ARM_ERRATA_798181 if SMP |
13 | help | 12 | help |
diff --git a/arch/arm/mach-keystone/platsmp.c b/arch/arm/mach-keystone/platsmp.c index 14378e3fef16..c12296157d4a 100644 --- a/arch/arm/mach-keystone/platsmp.c +++ b/arch/arm/mach-keystone/platsmp.c | |||
@@ -38,6 +38,5 @@ static int keystone_smp_boot_secondary(unsigned int cpu, | |||
38 | } | 38 | } |
39 | 39 | ||
40 | struct smp_operations keystone_smp_ops __initdata = { | 40 | struct smp_operations keystone_smp_ops __initdata = { |
41 | .smp_init_cpus = arm_dt_init_cpu_maps, | ||
42 | .smp_boot_secondary = keystone_smp_boot_secondary, | 41 | .smp_boot_secondary = keystone_smp_boot_secondary, |
43 | }; | 42 | }; |
diff --git a/arch/arm/mach-keystone/smc.S b/arch/arm/mach-keystone/smc.S index 9b9e4f7b241e..d15de8179fab 100644 --- a/arch/arm/mach-keystone/smc.S +++ b/arch/arm/mach-keystone/smc.S | |||
@@ -22,8 +22,7 @@ | |||
22 | * Return: Non zero value on failure | 22 | * Return: Non zero value on failure |
23 | */ | 23 | */ |
24 | ENTRY(keystone_cpu_smc) | 24 | ENTRY(keystone_cpu_smc) |
25 | stmfd sp!, {r4-r12, lr} | 25 | stmfd sp!, {r4-r11, lr} |
26 | smc #0 | 26 | smc #0 |
27 | dsb | 27 | ldmfd sp!, {r4-r11, pc} |
28 | ldmfd sp!, {r4-r12, pc} | ||
29 | ENDPROC(keystone_cpu_smc) | 28 | ENDPROC(keystone_cpu_smc) |