diff options
author | Magnus Damm <damm@igel.co.jp> | 2009-07-03 06:08:05 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-07-04 11:28:39 -0400 |
commit | 79714acbab080ad351acf4bba9a2bbc21d65c93c (patch) | |
tree | 4cf6385ccefa0e47e753f78bc4bce1d1fd8b0861 /arch/sh/kernel/time.c | |
parent | 746a99a5af60ee676afa2ba469ccd1373493c7e7 (diff) |
sh: hwblk base implementation
This patch is the hwblk base implementation, containing
structures and shared functions dealing with hardware blocks.
A each processor model should provide a list of hwblks and
describe which module stop bit that is associated with each
hwblck and how the hwblks are grouped together into areas.
The shared code keeps track of the usage count for each
hwblk and the areas. Fallback implementations for processor
specific code are also kept as weak symbols.
The clock framework, the runtime pm code and cpuidle will
all tie into this hwblk implementation.
Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel/time.c')
-rw-r--r-- | arch/sh/kernel/time.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/sh/kernel/time.c b/arch/sh/kernel/time.c index 9b352a1e3fb4..d2424b068b7b 100644 --- a/arch/sh/kernel/time.c +++ b/arch/sh/kernel/time.c | |||
@@ -21,6 +21,7 @@ | |||
21 | #include <linux/smp.h> | 21 | #include <linux/smp.h> |
22 | #include <linux/rtc.h> | 22 | #include <linux/rtc.h> |
23 | #include <asm/clock.h> | 23 | #include <asm/clock.h> |
24 | #include <asm/hwblk.h> | ||
24 | #include <asm/rtc.h> | 25 | #include <asm/rtc.h> |
25 | 26 | ||
26 | /* Dummy RTC ops */ | 27 | /* Dummy RTC ops */ |
@@ -96,6 +97,7 @@ void __init time_init(void) | |||
96 | if (board_time_init) | 97 | if (board_time_init) |
97 | board_time_init(); | 98 | board_time_init(); |
98 | 99 | ||
100 | hwblk_init(); | ||
99 | clk_init(); | 101 | clk_init(); |
100 | 102 | ||
101 | rtc_sh_get_time(&xtime); | 103 | rtc_sh_get_time(&xtime); |