1. 02 9月, 2017 3 次提交
    • Q
      dt-bindings: clk: at91: add audio plls to the compatible list · 33202fa3
      Quentin Schulz 提交于
      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: NQuentin Schulz <quentin.schulz@free-electrons.com>
      Acked-by: NRob Herring <robh@kernel.org>
      Acked-by: NBoris Brezillon <boris.brezillon@free-electrons.com>
      Acked-by: NNicolas Ferre <nicolas.ferre@microchip.com>
      Signed-off-by: NStephen Boyd <sboyd@codeaurora.org>
      33202fa3
    • Q
      clk: at91: clk-generated: remove useless divisor loop · 8c7aa632
      Quentin Schulz 提交于
      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: NQuentin Schulz <quentin.schulz@free-electrons.com>
      Acked-by: NBoris Brezillon <boris.brezillon@free-electrons.com>
      Acked-by: NNicolas Ferre <nicolas.ferre@microchip.com>
      Signed-off-by: NStephen Boyd <sboyd@codeaurora.org>
      8c7aa632
    • A
      clk: mb86s7x: Drop non-building driver · 8bb48f79
      Andreas Färber 提交于
      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: NAndreas Färber <afaerber@suse.de>
      Signed-off-by: NStephen Boyd <sboyd@codeaurora.org>
      8bb48f79
  2. 01 9月, 2017 13 次提交
  3. 31 8月, 2017 10 次提交
  4. 24 8月, 2017 14 次提交