Skip to contentSkip to conversation

ARM: OMAP3: Add missing enable/disable for EMU clock

PATCH New Jon Hunter 2 participants 2 messages Dec 20, 2012

Subsystems (4)
lore
Share & tools
lore

Jon Hunter

author
#0 lore raw

PATCH 1/1 ARM: OMAP3: Add missing enable/disable for EMU clock

The ETM/ETB drivers for OMAP3, enable the emu_src_ck clock in order to access the ETM/ETB hardware. The emu_src_ck should enable the EMU clock domain so that the ETM/ETB hardware is accessible. However, currently when enabling the emu_src_ck the EMU clock domain is not being enabled and so the ETM/ETB drivers are failing. Add enable/disable clock functions to enable the EMU clock domain when enabling the emu_src_ck.

---
 arch/arm/mach-omap2/cclock3xxx_data.c |    2 ++
 1 file changed, 2 insertions(+)
arch/arm/mach-omap2/cclock3xxx_data.c +2 -0
index bdf3948..6ef8758 100644
@@ -1167,6 +1167,8 @@ static const struct clk_ops emu_src_ck_ops = {
 	.recalc_rate	= &omap2_clksel_recalc,
 	.get_parent	= &omap2_clksel_find_parent_index,
 	.set_parent	= &omap2_clksel_set_parent,
+	.enable		= &omap2_clkops_enable_clkdm,
+	.disable	= &omap2_clkops_disable_clkdm,
 };
 
 static struct clk emu_src_ck;
Signature · 1 line
1.7.10.4
maintainer
#1 lore raw

PATCH 1/1 ARM: OMAP3: Add missing enable/disable for EMU clock

Quoted 9 lines · Jon Hunter

The ETM/ETB drivers for OMAP3, enable the emu_src_ck clock in order to access the ETM/ETB hardware. The emu_src_ck should enable the EMU clock domain so that the ETM/ETB hardware is accessible. However, currently when enabling the emu_src_ck the EMU clock domain is not being enabled and so the ETM/ETB drivers are failing. Add enable/disable clock functions to enable the EMU clock domain when enabling the emu_src_ck.

Thanks Jon, queued for 3.8-rc.

- Paul