diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2009-02-16 08:27:06 -0500 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2009-03-13 05:33:50 -0400 |
commit | d1755e3592305f8866b4d60d63a481959d5e58bf (patch) | |
tree | 237953bbce244a53398a967e61ea0c63ec95cb6e /arch/arm/plat-mxc/include | |
parent | e65fb0099fe4fe82d59ffe84f1e88a489218d7f9 (diff) |
[ARM] MXC: add clkdev support
This patch only adds general clkdev support without actually switching
any MXC architecture to clkdev.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/plat-mxc/include')
-rw-r--r-- | arch/arm/plat-mxc/include/mach/clkdev.h | 7 | ||||
-rw-r--r-- | arch/arm/plat-mxc/include/mach/clock.h | 4 |
2 files changed, 11 insertions, 0 deletions
diff --git a/arch/arm/plat-mxc/include/mach/clkdev.h b/arch/arm/plat-mxc/include/mach/clkdev.h new file mode 100644 index 000000000000..04b37a89801c --- /dev/null +++ b/arch/arm/plat-mxc/include/mach/clkdev.h | |||
@@ -0,0 +1,7 @@ | |||
1 | #ifndef __ASM_MACH_CLKDEV_H | ||
2 | #define __ASM_MACH_CLKDEV_H | ||
3 | |||
4 | #define __clk_get(clk) ({ 1; }) | ||
5 | #define __clk_put(clk) do { } while (0) | ||
6 | |||
7 | #endif | ||
diff --git a/arch/arm/plat-mxc/include/mach/clock.h b/arch/arm/plat-mxc/include/mach/clock.h index b830655514eb..43a82d0c534d 100644 --- a/arch/arm/plat-mxc/include/mach/clock.h +++ b/arch/arm/plat-mxc/include/mach/clock.h | |||
@@ -26,9 +26,13 @@ | |||
26 | struct module; | 26 | struct module; |
27 | 27 | ||
28 | struct clk { | 28 | struct clk { |
29 | #ifndef CONFIG_COMMON_CLKDEV | ||
30 | /* As soon as i.MX1 and i.MX31 switched to clkdev, this | ||
31 | * block can go away */ | ||
29 | struct list_head node; | 32 | struct list_head node; |
30 | struct module *owner; | 33 | struct module *owner; |
31 | const char *name; | 34 | const char *name; |
35 | #endif | ||
32 | int id; | 36 | int id; |
33 | /* Source clock this clk depends on */ | 37 | /* Source clock this clk depends on */ |
34 | struct clk *parent; | 38 | struct clk *parent; |