• Thomas Abraham's avatar
    ARM: S5PV210: Remove usage of clk_h133 and add clk_hclk_psys clock · acfa245f
    Thomas Abraham authored
    The clk_h133 clock, which is the HCLK clock for PSYS domain, is of
    type 'struct clk' whereas on S5PV210, this clock is suitable to be
    of type clksrc_clk clock (since it has a choice of clock source
    and a pre-divider). So this patch replaces the 'struct clk' type
    clock to 'struct clksrc_clk' type clock for the HCLK PSYS clock.
    
    This patch modifies the following.
    
    1. Remove definitions and usage of 'clk_h133' clock.
    2. Adds 'clk_hclk_psys' clock which is of type 'struct clksrc_clk'.
    3. Replace all usage of clk_h133 with clk_hclk_psys clock.
    4. Adds clk_hclk_psys into list of clocks to be registered.
    5. Removes the clock rate calculation of hclk133 and replaces
       it with code that derives the HCLK PSYS clock rate from
       the clk_hclk_psys clock.
    6. Modify printing of the system clock rates.
    Signed-off-by: default avatarThomas Abraham <thomas.ab@samsung.com>
    Signed-off-by: default avatarKukjin Kim <kgene.kim@samsung.com>
    Signed-off-by: default avatarBen Dooks <ben-linux@fluff.org>
    acfa245f
clock.c 10.6 KB