• Emilio López's avatar
    clk: arm: sunxi: Add a new clock driver for sunxi SOCs · e874a669
    Emilio López authored
    This commit implements the base CPU clocks for sunxi devices. It has
    been tested using a slightly modified cpufreq driver from the
    linux-sunxi 3.0 tree.
    
    Additionally, document the new bindings introduced by this patch.
    
    Idling:
        / # cat /sys/kernel/debug/clk/clk_summary
           clock                        enable_cnt  prepare_cnt  rate
        ---------------------------------------------------------------------
         osc32k                         0           0            32768
         osc24M_fixed                   0           0            24000000
            osc24M                      0           0            24000000
               apb1_mux                 0           0            24000000
                  apb1                  0           0            24000000
               pll1                     0           0            60000000
                  cpu                   0           0            60000000
                     axi                0           0            60000000
                        ahb             0           0            60000000
                           apb0         0           0            30000000
         dummy                          0           0            0
    
    After "yes >/dev/null &":
        / # cat /sys/kernel/debug/clk/clk_summary
           clock                        enable_cnt  prepare_cnt  rate
        ---------------------------------------------------------------------
         osc32k                         0           0            32768
         osc24M_fixed                   0           0            24000000
            osc24M                      0           0            24000000
               apb1_mux                 0           0            24000000
                  apb1                  0           0            24000000
               pll1                     0           0            1008000000
                  cpu                   0           0            1008000000
                     axi                0           0            336000000
                        ahb             0           0            168000000
                           apb0         0           0            84000000
         dummy                          0           0            0
    Signed-off-by: default avatarEmilio López <emilio@elopez.com.ar>
    Acked-by: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
    Signed-off-by: default avatarMike Turquette <mturquette@linaro.org>
    e874a669
clk-factors.h 612 Bytes