• Ben Dooks's avatar
    [ARM PATCH] 2403/1: S3C2410 - clock initialsation tidy · 8d8f47da
    Ben Dooks authored
    Patch from Ben Dooks
    
    Update to the s3c2410/s3c2440 clock code to use
    the naming conventions now used throughout the
    arch/arm/mach-s3c2410/ directory, as well as
    a re-organisation of the initialisation of the
    clocks.
    The previous method was to initialise the clocks
    as part of the function that initialised the
    statically mapped IO regions, which was called
    from the machine initialisation. This proves
    a problem if the machine initialisation needs
    to use these IO areas to determine the frequency
    of PLL crystal fitted.
    This patch makes the following changes:
     - s3c2410_init_clocks renamed s3c24xx_setup_clocks
     - s3c2410_clkcon_enable renamed s3c24xx_clk_enable
     - s3c2410_register_clock renamed s3c24xx_register_clock
     - cpu specific init_clocks to be called from cpu.c
     - add s3c24xx_init_clocks for machine init to call
     - split the cpu specific clock code from xxx_map_io
     - update all machine initialisation methods
    and the following changes as cleanup which should
    have been caught by previous patches:
     - remove s3c2440_hdiv (unused)
     - remove s3c2440_clock_tick_rate (unused)
    This patch has been generated from a request by
    Dimitry Andric.
    
    Signed-off-by: Ben Dooks
    Signed-off-by: Russell King
    8d8f47da
clock.c 8.74 KB