S3C2443: Update clock sources for HS-MMC (SDHCI) The SHDCI controller has a clock mux to add to the one already in the clock control block. Export the 4 clocks that the SDHCI controller can choose as hsmmc-if where is the value to pass to the SDHCI mux. Signed-off-by: Ben Dooks Index: linux-2.6.22-rc4-mmc1/arch/arm/mach-s3c2443/clock.c =================================================================== --- linux-2.6.22-rc4-mmc1.orig/arch/arm/mach-s3c2443/clock.c 2007-06-10 20:48:02.000000000 +0100 +++ linux-2.6.22-rc4-mmc1/arch/arm/mach-s3c2443/clock.c 2007-06-10 20:53:32.000000000 +0100 @@ -917,6 +917,32 @@ static inline unsigned long s3c2443_get_ return clkcon0 + 1; } +/* hsmmc interface clock sources */ + +struct clk clk_hsmmc_if0 = { + .name = "hsmmc-if0", + .id = -1, + .parent = &clk_p, +}; + +struct clk clk_hsmmc_if1 = { + .name = "hsmmc-if1", + .id = -1, + .parent = &clk_p, +}; + +struct clk clk_hsmmc_if2 = { + .name = "hsmmc-if2", + .id = -1, + .parent = &clk_hsmmc, +}; + +struct clk clk_hsmmc_if3 = { + .name = "hsmmc-if3", + .id = -1, + .parent = &clk_p, +}; + /* clocks to add straight away */ static struct clk *clks[] __initdata = { @@ -936,6 +962,10 @@ static struct clk *clks[] __initdata = { &clk_hsspi, &clk_hsmmc_div, &clk_hsmmc, + &clk_hsmmc_if0, + &clk_hsmmc_if1, + &clk_hsmmc_if2, + &clk_hsmmc_if3, }; void __init s3c2443_init_clocks(int xtal)