Skip to content

Commit 3552570

Browse files
committed
Merge tag 'fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
Pull ARM SoC fixes from Olof Johansson: "A small batch of fixes this week, mostly OMAP related. Nothing stands out as particularly controversial. Also a fix for a 3.12-rc1 timer regression for Exynos platforms, including the Chromebooks" * tag 'fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: ARM: exynos: dts: Update 5250 arch timer node with clock frequency ARM: OMAP2: RX-51: Add missing max_current to rx51_lp5523_led_config ARM: mach-omap2: board-generic: fix undefined symbol ARM: dts: Fix pinctrl mask for omap3 ARM: OMAP3: Fix hardware detection for omap3630 when booted with device tree ARM: OMAP2: gpmc-onenand: fix sync mode setup with DT
2 parents 2d4712b + 4d594dd commit 3552570

File tree

9 files changed

+50
-12
lines changed

9 files changed

+50
-12
lines changed

arch/arm/boot/dts/exynos5250.dtsi

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,11 @@
9696
<1 14 0xf08>,
9797
<1 11 0xf08>,
9898
<1 10 0xf08>;
99+
/* Unfortunately we need this since some versions of U-Boot
100+
* on Exynos don't set the CNTFRQ register, so we need the
101+
* value from DT.
102+
*/
103+
clock-frequency = <24000000>;
99104
};
100105

101106
mct@101C0000 {

arch/arm/boot/dts/omap3-beagle-xm.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
/ {
1313
model = "TI OMAP3 BeagleBoard xM";
14-
compatible = "ti,omap3-beagle-xm", "ti,omap3-beagle", "ti,omap3";
14+
compatible = "ti,omap3-beagle-xm", "ti,omap36xx", "ti,omap3";
1515

1616
cpus {
1717
cpu@0 {

arch/arm/boot/dts/omap3.dtsi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
#address-cells = <1>;
109109
#size-cells = <0>;
110110
pinctrl-single,register-width = <16>;
111-
pinctrl-single,function-mask = <0x7f1f>;
111+
pinctrl-single,function-mask = <0xff1f>;
112112
};
113113

114114
omap3_pmx_wkup: pinmux@0x48002a00 {
@@ -117,7 +117,7 @@
117117
#address-cells = <1>;
118118
#size-cells = <0>;
119119
pinctrl-single,register-width = <16>;
120-
pinctrl-single,function-mask = <0x7f1f>;
120+
pinctrl-single,function-mask = <0xff1f>;
121121
};
122122

123123
gpio1: gpio@48310000 {

arch/arm/mach-omap2/board-generic.c

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,24 @@ DT_MACHINE_START(OMAP3_DT, "Generic OMAP3 (Flattened Device Tree)")
129129
.restart = omap3xxx_restart,
130130
MACHINE_END
131131

132+
static const char *omap36xx_boards_compat[] __initdata = {
133+
"ti,omap36xx",
134+
NULL,
135+
};
136+
137+
DT_MACHINE_START(OMAP36XX_DT, "Generic OMAP36xx (Flattened Device Tree)")
138+
.reserve = omap_reserve,
139+
.map_io = omap3_map_io,
140+
.init_early = omap3630_init_early,
141+
.init_irq = omap_intc_of_init,
142+
.handle_irq = omap3_intc_handle_irq,
143+
.init_machine = omap_generic_init,
144+
.init_late = omap3_init_late,
145+
.init_time = omap3_sync32k_timer_init,
146+
.dt_compat = omap36xx_boards_compat,
147+
.restart = omap3xxx_restart,
148+
MACHINE_END
149+
132150
static const char *omap3_gp_boards_compat[] __initdata = {
133151
"ti,omap3-beagle",
134152
"timll,omap3-devkit8000",

arch/arm/mach-omap2/board-rx51-peripherals.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,38 +167,47 @@ static struct lp55xx_led_config rx51_lp5523_led_config[] = {
167167
.name = "lp5523:kb1",
168168
.chan_nr = 0,
169169
.led_current = 50,
170+
.max_current = 100,
170171
}, {
171172
.name = "lp5523:kb2",
172173
.chan_nr = 1,
173174
.led_current = 50,
175+
.max_current = 100,
174176
}, {
175177
.name = "lp5523:kb3",
176178
.chan_nr = 2,
177179
.led_current = 50,
180+
.max_current = 100,
178181
}, {
179182
.name = "lp5523:kb4",
180183
.chan_nr = 3,
181184
.led_current = 50,
185+
.max_current = 100,
182186
}, {
183187
.name = "lp5523:b",
184188
.chan_nr = 4,
185189
.led_current = 50,
190+
.max_current = 100,
186191
}, {
187192
.name = "lp5523:g",
188193
.chan_nr = 5,
189194
.led_current = 50,
195+
.max_current = 100,
190196
}, {
191197
.name = "lp5523:r",
192198
.chan_nr = 6,
193199
.led_current = 50,
200+
.max_current = 100,
194201
}, {
195202
.name = "lp5523:kb5",
196203
.chan_nr = 7,
197204
.led_current = 50,
205+
.max_current = 100,
198206
}, {
199207
.name = "lp5523:kb6",
200208
.chan_nr = 8,
201209
.led_current = 50,
210+
.max_current = 100,
202211
}
203212
};
204213

arch/arm/mach-omap2/gpmc-onenand.c

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,9 +272,19 @@ static int omap2_onenand_setup_async(void __iomem *onenand_base)
272272
struct gpmc_timings t;
273273
int ret;
274274

275-
if (gpmc_onenand_data->of_node)
275+
if (gpmc_onenand_data->of_node) {
276276
gpmc_read_settings_dt(gpmc_onenand_data->of_node,
277277
&onenand_async);
278+
if (onenand_async.sync_read || onenand_async.sync_write) {
279+
if (onenand_async.sync_write)
280+
gpmc_onenand_data->flags |=
281+
ONENAND_SYNC_READWRITE;
282+
else
283+
gpmc_onenand_data->flags |= ONENAND_SYNC_READ;
284+
onenand_async.sync_read = false;
285+
onenand_async.sync_write = false;
286+
}
287+
}
278288

279289
omap2_onenand_set_async_mode(onenand_base);
280290

arch/arm/mach-omap2/mux.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,14 @@
2828
#define OMAP_PULL_UP (1 << 4)
2929
#define OMAP_ALTELECTRICALSEL (1 << 5)
3030

31-
/* 34xx specific mux bit defines */
31+
/* omap3/4/5 specific mux bit defines */
3232
#define OMAP_INPUT_EN (1 << 8)
3333
#define OMAP_OFF_EN (1 << 9)
3434
#define OMAP_OFFOUT_EN (1 << 10)
3535
#define OMAP_OFFOUT_VAL (1 << 11)
3636
#define OMAP_OFF_PULL_EN (1 << 12)
3737
#define OMAP_OFF_PULL_UP (1 << 13)
3838
#define OMAP_WAKEUP_EN (1 << 14)
39-
40-
/* 44xx specific mux bit defines */
4139
#define OMAP_WAKEUP_EVENT (1 << 15)
4240

4341
/* Active pin states */

arch/arm/mach-omap2/timer.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -628,15 +628,15 @@ void __init omap4_local_timer_init(void)
628628
#endif /* CONFIG_HAVE_ARM_TWD */
629629
#endif /* CONFIG_ARCH_OMAP4 */
630630

631-
#ifdef CONFIG_SOC_OMAP5
631+
#if defined(CONFIG_SOC_OMAP5) || defined(CONFIG_SOC_DRA7XX)
632632
void __init omap5_realtime_timer_init(void)
633633
{
634634
omap4_sync32k_timer_init();
635635
realtime_counter_init();
636636

637637
clocksource_of_init();
638638
}
639-
#endif /* CONFIG_SOC_OMAP5 */
639+
#endif /* CONFIG_SOC_OMAP5 || CONFIG_SOC_DRA7XX */
640640

641641
/**
642642
* omap_timer_init - build and register timer device with an

include/dt-bindings/pinctrl/omap.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,14 @@
2323
#define PULL_UP (1 << 4)
2424
#define ALTELECTRICALSEL (1 << 5)
2525

26-
/* 34xx specific mux bit defines */
26+
/* omap3/4/5 specific mux bit defines */
2727
#define INPUT_EN (1 << 8)
2828
#define OFF_EN (1 << 9)
2929
#define OFFOUT_EN (1 << 10)
3030
#define OFFOUT_VAL (1 << 11)
3131
#define OFF_PULL_EN (1 << 12)
3232
#define OFF_PULL_UP (1 << 13)
3333
#define WAKEUP_EN (1 << 14)
34-
35-
/* 44xx specific mux bit defines */
3634
#define WAKEUP_EVENT (1 << 15)
3735

3836
/* Active pin states */

0 commit comments

Comments
 (0)