10 Sep, 2016

3 commits


26 Aug, 2016

1 commit

  • Add a new style driver for the clock control unit in Allwinner A31/A31s.

    A few clocks are still missing:

    - MIPI PLL's HDMI mode support
    - EMAC clock

    Signed-off-by: Chen-Yu Tsai
    Acked-by: Rob Herring
    Signed-off-by: Maxime Ripard

    Chen-Yu Tsai
     

09 Jul, 2016

12 commits

  • Add the list of clocks and resets found in the H3 CCU.

    Signed-off-by: Maxime Ripard
    Signed-off-by: Michael Turquette
    Link: lkml.kernel.org/r/20160629190535.11855-14-maxime.ripard@free-electrons.com

    Maxime Ripard
     
  • Introduce support for clocks that use a combination of two linear
    multipliers (N and K factors), one linear divider (M) and one power of two
    divider (P).

    Signed-off-by: Maxime Ripard
    Signed-off-by: Michael Turquette
    Link: lkml.kernel.org/r/20160629190535.11855-13-maxime.ripard@free-electrons.com

    Maxime Ripard
     
  • Introduce support for clocks that multiply and divide using two linear
    multipliers and one linear divider.

    Signed-off-by: Maxime Ripard
    Signed-off-by: Michael Turquette
    Link: lkml.kernel.org/r/20160629190535.11855-12-maxime.ripard@free-electrons.com

    Maxime Ripard
     
  • Introduce support for clocks that multiply and divide using linear factors.

    Signed-off-by: Maxime Ripard
    Signed-off-by: Michael Turquette
    Link: lkml.kernel.org/r/20160629190535.11855-11-maxime.ripard@free-electrons.com

    Maxime Ripard
     
  • Introduce support for clocks that use a combination of two linear
    multipliers.

    Signed-off-by: Maxime Ripard
    Signed-off-by: Michael Turquette
    Link: lkml.kernel.org/r/20160629190535.11855-10-maxime.ripard@free-electrons.com

    Maxime Ripard
     
  • Introduce support for the clocks that combine a linear divider and a
    power-of-two based one.

    Signed-off-by: Maxime Ripard
    Signed-off-by: Michael Turquette
    Link: lkml.kernel.org/r/20160629190535.11855-9-maxime.ripard@free-electrons.com

    Maxime Ripard
     
  • Add support for the various dividers (linear, table or pow-of-two based)
    found in the CCU.

    Signed-off-by: Maxime Ripard
    Signed-off-by: Michael Turquette
    Link: lkml.kernel.org/r/20160629190535.11855-8-maxime.ripard@free-electrons.com

    Maxime Ripard
     
  • Add support for the clocks in the CCU that introduce a phase shift from
    their parent clock.

    Signed-off-by: Maxime Ripard
    Signed-off-by: Michael Turquette
    Link: lkml.kernel.org/r/20160629190535.11855-7-maxime.ripard@free-electrons.com

    Maxime Ripard
     
  • Some clocks in the Allwinner SoCs clocks unit are just muxes.

    However, those muxes might also be found in some other complicated clocks
    that would benefit from the code in there to deal with "advanced" features,
    like pre-dividers.

    Introduce a set of helpers to reduce the code duplication in such cases.

    Signed-off-by: Maxime Ripard
    Signed-off-by: Michael Turquette
    Link: lkml.kernel.org/r/20160629190535.11855-6-maxime.ripard@free-electrons.com

    Maxime Ripard
     
  • Some clocks in the Allwinner SoCs clocks unit are just simple gates. Add
    support for those clocks.

    Since it's a feature that can also be found in more complex clocks, provide
    a bunch of helpers that can be reused later on.

    Signed-off-by: Maxime Ripard
    Signed-off-by: Michael Turquette
    Link: lkml.kernel.org/r/20160629190535.11855-5-maxime.ripard@free-electrons.com

    Maxime Ripard
     
  • Some clocks can be switched to a mode called fractional that have two fixed
    output rate you can choose from.

    Add a small library to deal with those clocks.

    Signed-off-by: Maxime Ripard
    Signed-off-by: Michael Turquette
    Link: lkml.kernel.org/r/20160629190535.11855-4-maxime.ripard@free-electrons.com

    Maxime Ripard
     
  • Start our new clock infrastructure by adding the registration code, common
    structure and common code.

    Signed-off-by: Maxime Ripard
    Signed-off-by: Michael Turquette
    Link: lkml.kernel.org/r/20160629190535.11855-3-maxime.ripard@free-electrons.com

    Maxime Ripard