Skip to content

Commit d2f3e9e

Browse files
committed
Merge tag 'fixes-nc-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
Pull ARM SoC low-priority fixes from Olof Johansson: "This branch contains a handful of fixes for various platforms that weren't serious enough to be included in late 3.11-rc releases. Most of them are for minor cleanups and cosmetic fixes. There's also a bit of code removal here, one board file removal for clps711x, and removal of some legacy device creation on OMAP2+" * tag 'fixes-nc-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (25 commits) ARM: OMAP2: use 'int' instead of 'unsigned' for variable 'gpmc_irq_start' ARM: OMAP2: remove useless variable 'ret' ARM: OMAP: dma: fix error return code in omap_system_dma_probe() ARM: OMAP2+: fix wrong address when loading PRM_FRAC_INCREMENTOR_DENUMERATOR_RELOAD ARM: OMAP2+: am33xx-restart: trigger warm reset on omap2+ boards ARM: OMAP2: Use a consistent AM33XX SoC option description ARM: OMAP2+: Remove legacy device creation for McPDM and DMIC ARM: clps711x: edb7211: Remove extra iotable_init() call ARM: clps711x: autcpu12: Remove incorrect config checking ARM: clps711x: Drop fortunet board support ARM: clps711x: Remove the special name for the syscon driver ARM: dts: Fix memory node in skeleton64.dtsi 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 ARM: dove: fix missing __init section of dove_mpp_gpio_mode ARM: shmobile: armadillo800eva-reference: fix compiler warning ...
2 parents 1bda20d + 2bbc31e commit d2f3e9e

27 files changed

Lines changed: 83 additions & 190 deletions

‎arch/arm/boot/compressed/head-shmobile.S‎

Lines changed: 39 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,47 @@ __tmp_stack:
5555
__continue:
5656
#endif /* CONFIG_ZBOOT_ROM_MMC || CONFIG_ZBOOT_ROM_SH_MOBILE_SDHI */
5757

58-
/* Set board ID necessary for boot */
59-
ldr r7, 1f @ Set machine type register
60-
mov r8, #0 @ pass null pointer as atag
58+
adr r0, dtb_info
59+
ldmia r0, {r1, r3, r4, r5, r7}
60+
61+
sub r0, r0, r1 @ calculate the delta offset
62+
add r5, r5, r0 @ _edata
63+
64+
ldr lr, [r5, #0] @ check if valid DTB is present
65+
cmp lr, r3
66+
bne 0f
67+
68+
add r9, r7, #31 @ rounded up to a multiple
69+
bic r9, r9, #31 @ ... of 32 bytes
70+
71+
add r6, r9, r5 @ copy from _edata
72+
add r9, r9, r4 @ to MEMORY_START
73+
74+
1: ldmdb r6!, {r0 - r3, r10 - r12, lr}
75+
cmp r6, r5
76+
stmdb r9!, {r0 - r3, r10 - r12, lr}
77+
bhi 1b
78+
79+
/* Success: Zero board ID, pointer to start of memory for atag/dtb */
80+
mov r7, #0
81+
mov r8, r4
6182
b 2f
6283

63-
1 : .long MACH_TYPE
84+
.align 2
85+
dtb_info:
86+
.word dtb_info
87+
#ifndef __ARMEB__
88+
.word 0xedfe0dd0 @ sig is 0xd00dfeed big endian
89+
#else
90+
.word 0xd00dfeed
91+
#endif
92+
.word MEMORY_START
93+
.word _edata
94+
.word 0x4000 @ maximum DTB size
95+
0:
96+
/* Failure: Zero board ID, NULL atag/dtb */
97+
mov r7, #0
98+
mov r8, #0 @ pass null pointer as atag
6499
2 :
65100

66101
#endif /* CONFIG_ZBOOT_ROM */

‎arch/arm/boot/dts/keystone.dts‎

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
*/
88

99
/dts-v1/;
10-
/include/ "skeleton.dtsi"
10+
#include <dt-bindings/interrupt-controller/arm-gic.h>
11+
12+
#include "skeleton.dtsi"
1113

1214
/ {
1315
model = "Texas Instruments Keystone 2 SoC";
@@ -67,18 +69,23 @@
6769

6870
timer {
6971
compatible = "arm,armv7-timer";
70-
interrupts = <1 13 0xf08>,
71-
<1 14 0xf08>,
72-
<1 11 0xf08>,
73-
<1 10 0x308>;
72+
interrupts =
73+
<GIC_PPI 13
74+
(GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
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)>;
7481
};
7582

7683
pmu {
7784
compatible = "arm,cortex-a15-pmu";
78-
interrupts = <0 20 0xf01>,
79-
<0 21 0xf01>,
80-
<0 22 0xf01>,
81-
<0 23 0xf01>;
85+
interrupts = <GIC_SPI 20 IRQ_TYPE_EDGE_RISING>,
86+
<GIC_SPI 21 IRQ_TYPE_EDGE_RISING>,
87+
<GIC_SPI 22 IRQ_TYPE_EDGE_RISING>,
88+
<GIC_SPI 23 IRQ_TYPE_EDGE_RISING>;
8289
};
8390

8491
soc {
@@ -100,7 +107,7 @@
100107
reg-io-width = <4>;
101108
reg = <0x02530c00 0x100>;
102109
clock-frequency = <133120000>;
103-
interrupts = <0 277 0xf01>;
110+
interrupts = <GIC_SPI 277 IRQ_TYPE_EDGE_RISING>;
104111
};
105112

106113
uart1: serial@02531000 {
@@ -110,7 +117,7 @@
110117
reg-io-width = <4>;
111118
reg = <0x02531000 0x100>;
112119
clock-frequency = <133120000>;
113-
interrupts = <0 280 0xf01>;
120+
interrupts = <GIC_SPI 280 IRQ_TYPE_EDGE_RISING>;
114121
};
115122

116123
};

‎arch/arm/boot/dts/skeleton64.dtsi‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
#size-cells = <2>;
1010
chosen { };
1111
aliases { };
12-
memory { device_type = "memory"; reg = <0 0>; };
12+
memory { device_type = "memory"; reg = <0 0 0 0>; };
1313
};

‎arch/arm/mach-clps711x/Kconfig‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@ config ARCH_P720T
3333
Say Y here if you intend to run this kernel on the ARM Prospector
3434
720T.
3535

36-
config ARCH_FORTUNET
37-
bool "FORTUNET"
38-
3936
config EP72XX_ROM_BOOT
4037
bool "EP721x/EP731x ROM boot"
4138
help

‎arch/arm/mach-clps711x/Makefile‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,4 @@ obj-$(CONFIG_ARCH_AUTCPU12) += board-autcpu12.o
1010
obj-$(CONFIG_ARCH_CDB89712) += board-cdb89712.o
1111
obj-$(CONFIG_ARCH_CLEP7312) += board-clep7312.o
1212
obj-$(CONFIG_ARCH_EDB7211) += board-edb7211.o
13-
obj-$(CONFIG_ARCH_FORTUNET) += board-fortunet.o
1413
obj-$(CONFIG_ARCH_P720T) += board-p720t.o

‎arch/arm/mach-clps711x/board-autcpu12.c‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -259,11 +259,7 @@ static void __init autcpu12_init(void)
259259
static void __init autcpu12_init_late(void)
260260
{
261261
gpio_request_array(autcpu12_gpios, ARRAY_SIZE(autcpu12_gpios));
262-
263-
if (IS_ENABLED(MTD_NAND_GPIO) && IS_ENABLED(GPIO_GENERIC_PLATFORM)) {
264-
/* We are need both drivers to handle NAND */
265-
platform_device_register(&autcpu12_nand_pdev);
266-
}
262+
platform_device_register(&autcpu12_nand_pdev);
267263
}
268264

269265
MACHINE_START(AUTCPU12, "autronix autcpu12")

‎arch/arm/mach-clps711x/board-edb7211.c‎

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -126,21 +126,6 @@ static struct gpio edb7211_gpios[] __initconst = {
126126
{ EDB7211_LCDBL, GPIOF_OUT_INIT_LOW, "LCD BACKLIGHT" },
127127
};
128128

129-
static struct map_desc edb7211_io_desc[] __initdata = {
130-
{ /* Memory-mapped extra keyboard row */
131-
.virtual = IO_ADDRESS(EDB7211_EXTKBD_BASE),
132-
.pfn = __phys_to_pfn(EDB7211_EXTKBD_BASE),
133-
.length = SZ_1M,
134-
.type = MT_DEVICE,
135-
},
136-
};
137-
138-
void __init edb7211_map_io(void)
139-
{
140-
clps711x_map_io();
141-
iotable_init(edb7211_io_desc, ARRAY_SIZE(edb7211_io_desc));
142-
}
143-
144129
/* Reserve screen memory region at the start of main system memory. */
145130
static void __init edb7211_reserve(void)
146131
{
@@ -195,7 +180,7 @@ MACHINE_START(EDB7211, "CL-EDB7211 (EP7211 eval board)")
195180
.nr_irqs = CLPS711X_NR_IRQS,
196181
.fixup = fixup_edb7211,
197182
.reserve = edb7211_reserve,
198-
.map_io = edb7211_map_io,
183+
.map_io = clps711x_map_io,
199184
.init_early = clps711x_init_early,
200185
.init_irq = clps711x_init_irq,
201186
.init_time = clps711x_timer_init,

‎arch/arm/mach-clps711x/board-fortunet.c‎

Lines changed: 0 additions & 85 deletions
This file was deleted.

‎arch/arm/mach-clps711x/devices.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ static void __init clps711x_add_syscon(void)
5757
unsigned i;
5858

5959
for (i = 0; i < ARRAY_SIZE(clps711x_syscon_res); i++)
60-
platform_device_register_simple("clps711x-syscon", i + 1,
60+
platform_device_register_simple("syscon", i + 1,
6161
&clps711x_syscon_res[i], 1);
6262
}
6363

‎arch/arm/mach-dove/mpp.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ static const struct dove_mpp_grp dove_mpp_grp[] = {
4747

4848
/* Enable gpio for a range of pins. mode should be a combination of
4949
GPIO_OUTPUT_OK | GPIO_INPUT_OK */
50-
static void dove_mpp_gpio_mode(int start, int end, int gpio_mode)
50+
static void __init dove_mpp_gpio_mode(int start, int end, int gpio_mode)
5151
{
5252
int i;
5353

0 commit comments

Comments
 (0)