Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 191691
b: refs/heads/master
c: 38803d7
h: refs/heads/master
i:
  191689: d6158ae
  191687: eaf8c9c
v: v3
  • Loading branch information
Magnus Damm authored and Paul Mundt committed May 13, 2010
1 parent 237f55f commit 52f6590
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f0e7f90223108e32f6b28393e4ab892209922e0b
refs/heads/master: 38803d7626c3903dea98d23dfe012e98975503f3
13 changes: 11 additions & 2 deletions trunk/arch/sh/kernel/cpu/sh4a/clock-shx3.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@
*/
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/io.h>
#include <asm/clkdev.h>
#include <asm/clock.h>
#include <asm/freq.h>
#include <asm/io.h>

static int ifc_divisors[] = { 1, 2, 4 ,6 };
static int bfc_divisors[] = { 1, 1, 1, 1, 1, 12, 16, 18, 24, 32, 36, 48 };
Expand Down Expand Up @@ -94,7 +95,6 @@ static struct clk_ops shx3_shyway_clk_ops = {
};

static struct clk shx3_shyway_clk = {
.name = "shyway_clk",
.flags = CLK_ENABLE_ON_INIT,
.ops = &shx3_shyway_clk_ops,
};
Expand All @@ -107,6 +107,13 @@ static struct clk *shx3_onchip_clocks[] = {
&shx3_shyway_clk,
};

#define CLKDEV_CON_ID(_id, _clk) { .con_id = _id, .clk = _clk }

static struct clk_lookup lookups[] = {
/* main clocks */
CLKDEV_CON_ID("shyway_clk", &shx3_shyway_clk),
};

int __init arch_clk_init(void)
{
struct clk *clk;
Expand All @@ -124,5 +131,7 @@ int __init arch_clk_init(void)

clk_put(clk);

clkdev_add_table(lookups, ARRAY_SIZE(lookups));

return ret;
}

0 comments on commit 52f6590

Please sign in to comment.