13 May, 2016

1 commit

  • The JZ4780's MSC clock divider registers multiply the clock divider by 2.
    This means that MMC devices run at half their expected speed. Add the
    ability to divide the clock divider in order to solve this.

    Signed-off-by: Harvey Hunt
    Cc: Paul Burton
    Cc: Ralf Baechle
    Cc: linux-clk@vger.kernel.org
    Cc: linux-kernel@vger.kernel.org
    Signed-off-by: Stephen Boyd

    Harvey Hunt
     

21 Jul, 2015

1 commit


22 Jun, 2015

6 commits

  • Add support for the clocks provided by the CGU in the Ingenic JZ4780
    SoC, making use of the SoC-agnostic CGU code to do the heavy lifting.

    Signed-off-by: Paul Burton
    Co-authored-by: Paul Cercueil
    Cc: Lars-Peter Clausen
    Cc: Mike Turquette
    Cc: Stephen Boyd
    Cc: linux-clk@vger.kernel.org
    Cc: linux-mips@linux-mips.org
    Cc: linux-kernel@vger.kernel.org
    Patchwork: https://patchwork.linux-mips.org/patch/10157/
    Signed-off-by: Ralf Baechle

    Paul Burton
     
  • The jz4740-cgu driver already has access to the CGU, so it makes sense
    to move the few remaining accesses to the CGU from arch/mips/jz4740
    there too. Move the jz4740_clock_{suspend,resume} functions there for
    such consistency. The arch/mips/jz4740/clock.c file now contains nothing
    more of use & so is removed.

    Signed-off-by: Paul Burton
    Cc: Lars-Peter Clausen
    Cc: Mike Turquette
    Cc: Stephen Boyd
    Cc: linux-clk@vger.kernel.org
    Cc: linux-mips@linux-mips.org
    Cc: Deng-Cheng Zhu
    Cc: linux-kernel@vger.kernel.org
    Patchwork: https://patchwork.linux-mips.org/patch/10158/
    Signed-off-by: Ralf Baechle

    Paul Burton
     
  • The jz4740-cgu driver already has access to the CGU, so it makes sense
    to move the few remaining accesses to the CGU from arch/mips/jz4740
    there too. Move the jz4740_clock_udc_{dis,en}able_auto_suspend functions
    there for such consistency.

    Signed-off-by: Paul Burton
    Cc: Lars-Peter Clausen
    Cc: Mike Turquette
    Cc: Stephen Boyd
    Cc: linux-clk@vger.kernel.org
    Cc: linux-mips@linux-mips.org
    Cc: linux-kernel@vger.kernel.org
    Patchwork: https://patchwork.linux-mips.org/patch/10154/
    Signed-off-by: Ralf Baechle

    Paul Burton
     
  • The jz4740-cgu driver already has access to the CGU, so it makes sense
    to move the few remaining accesses to the CGU from arch/mips/jz4740
    there too. Move jz4740_clock_set_wait_mode for such consistency.

    Signed-off-by: Paul Burton
    Cc: Lars-Peter Clausen
    Cc: Mike Turquette
    Cc: Stephen Boyd
    Cc: linux-clk@vger.kernel.org
    Cc: linux-mips@linux-mips.org
    Cc: linux-kernel@vger.kernel.org
    Patchwork: https://patchwork.linux-mips.org/patch/10153/
    Signed-off-by: Ralf Baechle

    Paul Burton
     
  • Migrate the JZ4740 & the qi_lb60 board to use common clock framework
    via the new Ingenic SoC CGU driver. Note that the JZ4740-specific
    debugfs code is removed since common clock framework provides its own
    debug capabilities.

    Signed-off-by: Paul Burton
    Co-authored-by: Paul Cercueil
    Cc: Ian Campbell
    Cc: Kumar Gala
    Cc: Lars-Peter Clausen
    Cc: Mark Rutland
    Cc: Mike Turquette
    Cc: Pawel Moll
    Cc: Rob Herring
    Cc: Stephen Boyd
    Cc: devicetree@vger.kernel.org
    Cc: linux-clk@vger.kernel.org
    Cc: linux-mips@linux-mips.org
    Cc: Fabian Frederick
    Cc: Deng-Cheng Zhu
    Cc: Linus Walleij
    Cc: Stephen Warren
    Cc: linux-kernel@vger.kernel.org
    Cc: Brian Norris
    Patchwork: https://patchwork.linux-mips.org/patch/10151/
    Signed-off-by: Ralf Baechle

    Paul Burton
     
  • This driver supports the CGU clocks for Ingenic SoCs. It is generic
    enough to be usable across at least the JZ4740 to the JZ4780, and will
    be made use of on such devices in subsequent commits. This patch by
    itself only adds the SoC-agnostic infrastructure that forms the bulk of
    the CGU driver for the aforementioned further commits to make use of.

    Signed-off-by: Paul Burton
    Co-authored-by: Paul Cercueil
    Cc: Lars-Peter Clausen
    Cc: Mike Turquette
    Cc: Stephen Boyd
    Cc: linux-clk@vger.kernel.org
    Cc: linux-mips@linux-mips.org
    Cc: linux-kernel@vger.kernel.org
    Patchwork: https://patchwork.linux-mips.org/patch/10150/
    Signed-off-by: Ralf Baechle

    Paul Burton