From e6d104f59fce202e420a5d75c8ef02e0d71df502 Mon Sep 17 00:00:00 2001 From: Thomas Abraham Date: Mon, 17 May 2010 09:38:44 +0900 Subject: [PATCH] --- yaml --- r: 192031 b: refs/heads/master c: 664f5b2065da188821fe5aa998c6351e8c042d98 h: refs/heads/master i: 192029: cf6daa73629b331e53b5ec7f9419a98b49def67d 192027: 21b39507262c878938531b40fabbf9d2e1b05619 192023: 016656021266bd6e9fbbe6ce89d0dd3801ef9be5 192015: 61799ec89a6c6e49aaaeccbcbdeb89c2f0900507 191999: 23a84c08838e8efac1447691f7c686fa692b3858 v: v3 --- [refs] | 2 +- trunk/arch/arm/mach-s5pv210/clock.c | 22 ++++++++++++++++------ 2 files changed, 17 insertions(+), 7 deletions(-) diff --git a/[refs] b/[refs] index 19cbd46a0906..93d00815d2b5 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 6ed91a202b3843d2fec51f00c31e65313ca00906 +refs/heads/master: 664f5b2065da188821fe5aa998c6351e8c042d98 diff --git a/trunk/arch/arm/mach-s5pv210/clock.c b/trunk/arch/arm/mach-s5pv210/clock.c index 4791642f3e6e..527c9c4262f1 100644 --- a/trunk/arch/arm/mach-s5pv210/clock.c +++ b/trunk/arch/arm/mach-s5pv210/clock.c @@ -155,11 +155,6 @@ static int s5pv210_clk_ip3_ctrl(struct clk *clk, int enable) return s5p_gatectrl(S5P_CLKGATE_IP3, clk, enable); } -static struct clk clk_h100 = { - .name = "hclk100", - .id = -1, -}; - static struct clk clk_p83 = { .name = "pclk83", .id = -1, @@ -171,11 +166,19 @@ static struct clk clk_p66 = { }; static struct clk *sys_clks[] = { - &clk_h100, &clk_p83, &clk_p66 }; +static unsigned long s5pv210_clk_imem_get_rate(struct clk *clk) +{ + return clk_get_rate(clk->parent) / 2; +} + +static struct clk_ops clk_hclk_imem_ops = { + .get_rate = s5pv210_clk_imem_get_rate, +}; + static struct clk init_clocks_disable[] = { { .name = "rot", @@ -326,6 +329,13 @@ static struct clk init_clocks_disable[] = { static struct clk init_clocks[] = { { + .name = "hclk_imem", + .id = -1, + .parent = &clk_hclk_msys.clk, + .ctrlbit = (1 << 5), + .enable = s5pv210_clk_ip0_ctrl, + .ops = &clk_hclk_imem_ops, + }, { .name = "uart", .id = 0, .parent = &clk_p66,