diff options
author | Lennert Buytenhek <buytenh@wantstofly.org> | 2008-03-27 14:51:40 -0400 |
---|---|---|
committer | Nicolas Pitre <nico@marvell.com> | 2008-03-27 14:51:40 -0400 |
commit | 2bac1de2031aa4cad88a437d4410ec289da4f7dc (patch) | |
tree | 1f9abbf6f3d428bbdcbfc93337e3e2e28e3d81c9 /include/asm-arm | |
parent | abc0197d7a74e51a1581ce9971d7c2c0f2adadaf (diff) |
plat-orion: share time handling code
Split off Orion time handling code into plat-orion/.
Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
Reviewed-by: Tzachi Perelstein <tzachi@marvell.com>
Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Nicolas Pitre <nico@marvell.com>
Diffstat (limited to 'include/asm-arm')
-rw-r--r-- | include/asm-arm/arch-orion/orion.h | 7 | ||||
-rw-r--r-- | include/asm-arm/arch-orion/timex.h | 3 | ||||
-rw-r--r-- | include/asm-arm/plat-orion/time.h | 17 |
3 files changed, 23 insertions, 4 deletions
diff --git a/include/asm-arm/arch-orion/orion.h b/include/asm-arm/arch-orion/orion.h index 673a418a7419..884f3e2717d0 100644 --- a/include/asm-arm/arch-orion/orion.h +++ b/include/asm-arm/arch-orion/orion.h | |||
@@ -137,11 +137,12 @@ | |||
137 | #define POWER_MNG_CTRL_REG ORION_BRIDGE_REG(0x11C) | 137 | #define POWER_MNG_CTRL_REG ORION_BRIDGE_REG(0x11C) |
138 | #define BRIDGE_CAUSE ORION_BRIDGE_REG(0x110) | 138 | #define BRIDGE_CAUSE ORION_BRIDGE_REG(0x110) |
139 | #define BRIDGE_MASK ORION_BRIDGE_REG(0x114) | 139 | #define BRIDGE_MASK ORION_BRIDGE_REG(0x114) |
140 | #define BRIDGE_INT_TIMER0 0x0002 | ||
141 | #define BRIDGE_INT_TIMER1 0x0004 | ||
140 | #define MAIN_IRQ_CAUSE ORION_BRIDGE_REG(0x200) | 142 | #define MAIN_IRQ_CAUSE ORION_BRIDGE_REG(0x200) |
141 | #define MAIN_IRQ_MASK ORION_BRIDGE_REG(0x204) | 143 | #define MAIN_IRQ_MASK ORION_BRIDGE_REG(0x204) |
142 | #define TIMER_CTRL ORION_BRIDGE_REG(0x300) | 144 | |
143 | #define TIMER_VAL(x) ORION_BRIDGE_REG(0x314 + ((x) * 8)) | 145 | #define TIMER_VIRT_BASE (ORION_BRIDGE_VIRT_BASE | 0x300) |
144 | #define TIMER_VAL_RELOAD(x) ORION_BRIDGE_REG(0x310 + ((x) * 8)) | ||
145 | 146 | ||
146 | #ifndef __ASSEMBLY__ | 147 | #ifndef __ASSEMBLY__ |
147 | 148 | ||
diff --git a/include/asm-arm/arch-orion/timex.h b/include/asm-arm/arch-orion/timex.h index 26c2c91eecf0..cc0fc7075ebe 100644 --- a/include/asm-arm/arch-orion/timex.h +++ b/include/asm-arm/arch-orion/timex.h | |||
@@ -8,5 +8,6 @@ | |||
8 | * warranty of any kind, whether express or implied. | 8 | * warranty of any kind, whether express or implied. |
9 | */ | 9 | */ |
10 | 10 | ||
11 | #define CLOCK_TICK_RATE (100 * HZ) | ||
12 | |||
11 | #define ORION_TCLK 166666667 | 13 | #define ORION_TCLK 166666667 |
12 | #define CLOCK_TICK_RATE ORION_TCLK | ||
diff --git a/include/asm-arm/plat-orion/time.h b/include/asm-arm/plat-orion/time.h new file mode 100644 index 000000000000..0e85cc8f44d9 --- /dev/null +++ b/include/asm-arm/plat-orion/time.h | |||
@@ -0,0 +1,17 @@ | |||
1 | /* | ||
2 | * include/asm-arm/plat-orion/time.h | ||
3 | * | ||
4 | * Marvell Orion SoC time handling. | ||
5 | * | ||
6 | * This file is licensed under the terms of the GNU General Public | ||
7 | * License version 2. This program is licensed "as is" without any | ||
8 | * warranty of any kind, whether express or implied. | ||
9 | */ | ||
10 | |||
11 | #ifndef __ASM_PLAT_ORION_TIME_H | ||
12 | #define __ASM_PLAT_ORION_TIME_H | ||
13 | |||
14 | void orion_time_init(unsigned int irq, unsigned int tclk); | ||
15 | |||
16 | |||
17 | #endif | ||