aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-s3c24xx
diff options
context:
space:
mode:
authorHeiko Stuebner <heiko@sntech.de>2011-10-14 02:08:56 -0400
committerKukjin Kim <kgene.kim@samsung.com>2011-10-14 02:15:49 -0400
commitd9a3bfbd7e80ecf24d2322659d5c0542f9d95e78 (patch)
treeb567ffbdcc241a9ceb3dfac0391963872b4d7c98 /arch/arm/plat-s3c24xx
parent0d23d059da0f7a2ce4744b2212d64a17057d8424 (diff)
ARM: S3C24XX: Add infrastructure to transmit armdiv to common code
This is needed for making the armdiv clock common to S3C2443 and S3C2416/2450. Signed-off-by: Heiko Stuebner <heiko@sntech.de> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm/plat-s3c24xx')
-rw-r--r--arch/arm/plat-s3c24xx/s3c2443-clock.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/arch/arm/plat-s3c24xx/s3c2443-clock.c b/arch/arm/plat-s3c24xx/s3c2443-clock.c
index 07a4c81587ac..3f2117b8c0d4 100644
--- a/arch/arm/plat-s3c24xx/s3c2443-clock.c
+++ b/arch/arm/plat-s3c24xx/s3c2443-clock.c
@@ -160,6 +160,10 @@ static struct clk clk_prediv = {
160 }, 160 },
161}; 161};
162 162
163static unsigned int *armdiv;
164static int nr_armdiv;
165static int armdivmask;
166
163/* usbhost 167/* usbhost
164 * 168 *
165 * usb host bus-clock, usually 48MHz to provide USB bus clock timing 169 * usb host bus-clock, usually 48MHz to provide USB bus clock timing
@@ -470,10 +474,16 @@ static struct clksrc_clk *clksrcs[] __initdata = {
470}; 474};
471 475
472void __init s3c2443_common_init_clocks(int xtal, pll_fn get_mpll, 476void __init s3c2443_common_init_clocks(int xtal, pll_fn get_mpll,
473 fdiv_fn get_fdiv) 477 fdiv_fn get_fdiv,
478 unsigned int *divs, int nr_divs,
479 int divmask)
474{ 480{
475 int ptr; 481 int ptr;
476 482
483 armdiv = divs;
484 nr_armdiv = nr_divs;
485 armdivmask = divmask;
486
477 /* s3c2443 parents h and p clocks from prediv */ 487 /* s3c2443 parents h and p clocks from prediv */
478 clk_h.parent = &clk_prediv; 488 clk_h.parent = &clk_prediv;
479 clk_p.parent = &clk_prediv; 489 clk_p.parent = &clk_prediv;