1. Sep 02, 2017
    • Quentin Schulz's avatar
      dt-bindings: clk: at91: add audio plls to the compatible list · 33202fa3
      Quentin Schulz authored
      
      
      This new clock driver set allows to have a fractional divided clock that
      would generate a precise clock particularly suitable for audio
      applications.
      
      The main audio pll clock has two children clocks: one that is connected
      to the PMC, the other that can directly drive a pad. As these two routes
      have different enable bits and different dividers and divider formulas,
      they are handled by two different drivers.
      
      This adds the audio plls (frac, pad and pmc) to the compatible list of
      at91 clocks in DT binding.
      
      Signed-off-by: default avatarQuentin Schulz <quentin.schulz@free-electrons.com>
      Acked-by: default avatarRob Herring <robh@kernel.org>
      Acked-by: default avatarBoris Brezillon <boris.brezillon@free-electrons.com>
      Acked-by: default avatarNicolas Ferre <nicolas.ferre@microchip.com>
      Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
      33202fa3
    • Quentin Schulz's avatar
      clk: at91: clk-generated: remove useless divisor loop · 8c7aa632
      Quentin Schulz authored
      
      
      The driver requests the current clk rate of each of its parent clocks to
      decide whether a clock rate is suitable or not. It does not request
      determine_rate from a parent clock which could request a rate change in
      parent clock (i.e. there is no parent rate propagation).
      
      We know the rate we want (passed along req argument of the function) and
      the parent clock rate, thus we know the closest rounded divisor, we
      don't need to iterate over the available divisors to find the best one
      for a given clock.
      
      Signed-off-by: default avatarQuentin Schulz <quentin.schulz@free-electrons.com>
      Acked-by: default avatarBoris Brezillon <boris.brezillon@free-electrons.com>
      Acked-by: default avatarNicolas Ferre <nicolas.ferre@microchip.com>
      Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
      8c7aa632
    • Andreas Färber's avatar
      clk: mb86s7x: Drop non-building driver · 8bb48f79
      Andreas Färber authored
      
      
      It fails to build once we introduce the ARCH_MB86S7X Kconfig symbol:
      
        drivers/clk/clk-mb86s7x.c:27:10: fatal error: soc/mb86s7x/scb_mhu.h: No such file or directory
         #include <soc/mb86s7x/scb_mhu.h>
                  ^~~~~~~~~~~~~~~~~~~~~~~
        compilation terminated.
      
      And when commenting out that line, we get:
      
        drivers/clk/clk-mb86s7x.c: In function 'crg_gate_control':
        drivers/clk/clk-mb86s7x.c:72:8: error: implicit declaration of function 'mb86s7x_send_packet' [-Werror=implicit-function-declaration]
          ret = mb86s7x_send_packet(CMD_PERI_CLOCK_GATE_SET_REQ,
                ^~~~~~~~~~~~~~~~~~~
        drivers/clk/clk-mb86s7x.c:72:28: error: 'CMD_PERI_CLOCK_GATE_SET_REQ' undeclared (first use in this function)
          ret = mb86s7x_send_packet(CMD_PERI_CLOCK_GATE_SET_REQ,
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
        drivers/clk/clk-mb86s7x.c:72:28: note: each undeclared identifier is reported only once for each function it appears in
        drivers/clk/clk-mb86s7x.c: In function 'crg_rate_control':
        drivers/clk/clk-mb86s7x.c:116:10: error: 'CMD_PERI_CLOCK_RATE_SET_REQ' undeclared (first use in this function)
           code = CMD_PERI_CLOCK_RATE_SET_REQ;
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
        drivers/clk/clk-mb86s7x.c:121:10: error: 'CMD_PERI_CLOCK_RATE_GET_REQ' undeclared (first use in this function); did you mean 'CMD_PERI_CLOCK_RATE_SET_REQ'?
           code = CMD_PERI_CLOCK_RATE_GET_REQ;
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
                  CMD_PERI_CLOCK_RATE_SET_REQ
        drivers/clk/clk-mb86s7x.c: In function 'mhu_cluster_rate':
        drivers/clk/clk-mb86s7x.c:276:10: error: 'CMD_CPU_CLOCK_RATE_GET_REQ' undeclared (first use in this function)
           code = CMD_CPU_CLOCK_RATE_GET_REQ;
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~
        drivers/clk/clk-mb86s7x.c:278:10: error: 'CMD_CPU_CLOCK_RATE_SET_REQ' undeclared (first use in this function); did you mean 'CMD_CPU_CLOCK_RATE_GET_REQ'?
           code = CMD_CPU_CLOCK_RATE_SET_REQ;
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~
                  CMD_CPU_CLOCK_RATE_GET_REQ
        cc1: some warnings being treated as errors
        scripts/Makefile.build:302: recipe for target
        'drivers/clk/clk-mb86s7x.o' failed
        make[2]: *** [drivers/clk/clk-mb86s7x.o] Error 1
      
      Remove the driver for now.
      
      Signed-off-by: default avatarAndreas Färber <afaerber@suse.de>
      Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
      8bb48f79
  2. Sep 01, 2017
  3. Aug 31, 2017
  4. Aug 24, 2017