Skip to content

Commit 072167d

Browse files
committed
Merge branch 'pwm-dmtimer-fixes' into omap-for-v5.0/fixes-v2
2 parents d024369 + 0840242 commit 072167d

File tree

3 files changed

+18
-4
lines changed

3 files changed

+18
-4
lines changed

arch/arm/boot/dts/omap4-droid4-xt894.dts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -644,6 +644,17 @@
644644
};
645645
};
646646

647+
/* Configure pwm clock source for timers 8 & 9 */
648+
&timer8 {
649+
assigned-clocks = <&abe_clkctrl OMAP4_TIMER8_CLKCTRL 24>;
650+
assigned-clock-parents = <&sys_clkin_ck>;
651+
};
652+
653+
&timer9 {
654+
assigned-clocks = <&l4_per_clkctrl OMAP4_TIMER9_CLKCTRL 24>;
655+
assigned-clock-parents = <&sys_clkin_ck>;
656+
};
657+
647658
/*
648659
* As uart1 is wired to mdm6600 with rts and cts, we can use the cts pin for
649660
* uart1 wakeirq.

drivers/bus/ti-sysc.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -781,12 +781,12 @@ static const struct sysc_revision_quirk sysc_revision_quirks[] = {
781781
SYSC_QUIRK("smartreflex", 0, -1, 0x38, -1, 0x00000000, 0xffffffff,
782782
SYSC_QUIRK_LEGACY_IDLE),
783783
SYSC_QUIRK("timer", 0, 0, 0x10, 0x14, 0x00000015, 0xffffffff,
784-
SYSC_QUIRK_LEGACY_IDLE),
784+
0),
785785
/* Some timers on omap4 and later */
786786
SYSC_QUIRK("timer", 0, 0, 0x10, -1, 0x50002100, 0xffffffff,
787-
SYSC_QUIRK_LEGACY_IDLE),
787+
0),
788788
SYSC_QUIRK("timer", 0, 0, 0x10, -1, 0x4fff1301, 0xffff00ff,
789-
SYSC_QUIRK_LEGACY_IDLE),
789+
0),
790790
SYSC_QUIRK("uart", 0, 0x50, 0x54, 0x58, 0x00000052, 0xffffffff,
791791
SYSC_QUIRK_LEGACY_IDLE),
792792
/* Uarts on omap4 and later */

drivers/clocksource/timer-ti-dm.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,10 @@ static int omap_dm_timer_of_set_source(struct omap_dm_timer *timer)
154154
if (IS_ERR(parent))
155155
return -ENODEV;
156156

157+
/* Bail out if both clocks point to fck */
158+
if (clk_is_match(parent, timer->fclk))
159+
return 0;
160+
157161
ret = clk_set_parent(timer->fclk, parent);
158162
if (ret < 0)
159163
pr_err("%s: failed to set parent\n", __func__);
@@ -864,7 +868,6 @@ static int omap_dm_timer_probe(struct platform_device *pdev)
864868
timer->pdev = pdev;
865869

866870
pm_runtime_enable(dev);
867-
pm_runtime_irq_safe(dev);
868871

869872
if (!timer->reserved) {
870873
ret = pm_runtime_get_sync(dev);

0 commit comments

Comments
 (0)