[PATCHv6 2/5] clk: socfpga: Add a clock type for the SD/MMC driver

Chen-Yu Tsai wens at csie.org
Mon Dec 16 21:17:26 EST 2013


Hi,

On Tue, Dec 17, 2013 at 4:55 AM, Emilio López <emilio at elopez.com.ar> wrote:
> I also saw a similar requirement from the gmac people (on cc too), who
> needed to set the phy type (or something like that) on one of the clock

The GMAC clock register controls the tx clock source (a mux) and the
interface type, which is most likely a gate to control the direction
of the tx clock.

So I modeled it as a composite clock source for now.
I'm open to other options.

> registers; so I'm thinking maybe a generic "tune something" approach that
> lets users configure some clock-dependent, arbitrary aspect of the clock is
> the way forward. Otherwise, we're going to end up bloating the clock
> framework with a lot of callback pointers that are going to be used in one
> or two clocks out of potentially hundreds on the whole system.

ChenYu



More information about the linux-arm-kernel mailing list