[PATCH v1 1/2] arm: a driver for on-chip ETM and ETB

Woodruff, Richard r-woodruff2 at ti.com
Sun Oct 11 22:53:45 EDT 2009


> From: linux-omap-owner at vger.kernel.org [mailto:linux-omap-
> owner at vger.kernel.org] On Behalf Of Russell King - ARM Linux
> Sent: Sunday, October 11, 2009 5:30 PM

> > > +       clk = clk_get(&pdev->dev, "emu_core_alwon_ck");
> > > +       clk_enable(clk);
> > > +
> > > +       clk = clk_get(&pdev->dev, "emu_per_alwon_ck");
> > > +       clk_enable(clk);
> > > +
> > > +       clk = clk_get(&pdev->dev, "emu_mpu_alwon_ck");
> > > +       clk_enable(clk);
> > > +
> > > +       clk = clk_get(&pdev->dev, "emu_src_ck");
> > > +       clk_enable(clk);
> >
> > Are these clocks really generic? It looks a lot like OMAP-specific
> > stuff. Is it possible to hide these behind a single clock inside the
> > platform? like "etbclock" or so that increase refcount of the others
> > by 1?

More than ETM/ETB could be using those omap generated clocks.  Any one of the above can also source the trace clocks.



More information about the linux-arm-kernel mailing list