diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-11-07 13:02:39 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-11-21 04:49:30 -0500 |
commit | e5bc9e257a4ef3dabc6b5573215983d663ffcd55 (patch) | |
tree | 1f4fbd86f66ef1d14141a0b0c83add286ecb6132 /arch/arm/mach-w90x900 | |
parent | 3a083227a45cbbf5d29e6fe7c093af9e09905d4d (diff) |
ARM: w90x900: add common nuc9xx.h
Rather than having separate extern declarations in nuc9*.h, provide
a common header file containing these definitions.
Tested-by: Wan Zongshun <mcuos.com@gmail.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-w90x900')
-rw-r--r-- | arch/arm/mach-w90x900/irq.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-w90x900/nuc910.h | 9 | ||||
-rw-r--r-- | arch/arm/mach-w90x900/nuc950.h | 9 | ||||
-rw-r--r-- | arch/arm/mach-w90x900/nuc960.h | 9 | ||||
-rw-r--r-- | arch/arm/mach-w90x900/nuc9xx.h | 23 | ||||
-rw-r--r-- | arch/arm/mach-w90x900/time.c | 2 |
6 files changed, 30 insertions, 24 deletions
diff --git a/arch/arm/mach-w90x900/irq.c b/arch/arm/mach-w90x900/irq.c index 7bf143c443f1..b466e2450ba3 100644 --- a/arch/arm/mach-w90x900/irq.c +++ b/arch/arm/mach-w90x900/irq.c | |||
@@ -28,6 +28,8 @@ | |||
28 | #include <mach/hardware.h> | 28 | #include <mach/hardware.h> |
29 | #include <mach/regs-irq.h> | 29 | #include <mach/regs-irq.h> |
30 | 30 | ||
31 | #include "nuc9xx.h" | ||
32 | |||
31 | struct group_irq { | 33 | struct group_irq { |
32 | unsigned long gpen; | 34 | unsigned long gpen; |
33 | unsigned int enabled; | 35 | unsigned int enabled; |
diff --git a/arch/arm/mach-w90x900/nuc910.h b/arch/arm/mach-w90x900/nuc910.h index 83e9ba5fc26c..b14c71a9e683 100644 --- a/arch/arm/mach-w90x900/nuc910.h +++ b/arch/arm/mach-w90x900/nuc910.h | |||
@@ -12,14 +12,7 @@ | |||
12 | * published by the Free Software Foundation. | 12 | * published by the Free Software Foundation. |
13 | * | 13 | * |
14 | */ | 14 | */ |
15 | 15 | #include "nuc9xx.h" | |
16 | struct map_desc; | ||
17 | struct sys_timer; | ||
18 | |||
19 | /* core initialisation functions */ | ||
20 | |||
21 | extern void nuc900_init_irq(void); | ||
22 | extern struct sys_timer nuc900_timer; | ||
23 | 16 | ||
24 | /* extern file from nuc910.c */ | 17 | /* extern file from nuc910.c */ |
25 | 18 | ||
diff --git a/arch/arm/mach-w90x900/nuc950.h b/arch/arm/mach-w90x900/nuc950.h index 98a1148bc5ae..6e9de3051cd4 100644 --- a/arch/arm/mach-w90x900/nuc950.h +++ b/arch/arm/mach-w90x900/nuc950.h | |||
@@ -12,14 +12,7 @@ | |||
12 | * published by the Free Software Foundation. | 12 | * published by the Free Software Foundation. |
13 | * | 13 | * |
14 | */ | 14 | */ |
15 | 15 | #include "nuc9xx.h" | |
16 | struct map_desc; | ||
17 | struct sys_timer; | ||
18 | |||
19 | /* core initialisation functions */ | ||
20 | |||
21 | extern void nuc900_init_irq(void); | ||
22 | extern struct sys_timer nuc900_timer; | ||
23 | 16 | ||
24 | /* extern file from nuc950.c */ | 17 | /* extern file from nuc950.c */ |
25 | 18 | ||
diff --git a/arch/arm/mach-w90x900/nuc960.h b/arch/arm/mach-w90x900/nuc960.h index f0c07cbe3a82..9f6df9a00286 100644 --- a/arch/arm/mach-w90x900/nuc960.h +++ b/arch/arm/mach-w90x900/nuc960.h | |||
@@ -12,14 +12,7 @@ | |||
12 | * published by the Free Software Foundation. | 12 | * published by the Free Software Foundation. |
13 | * | 13 | * |
14 | */ | 14 | */ |
15 | 15 | #include "nuc9xx.h" | |
16 | struct map_desc; | ||
17 | struct sys_timer; | ||
18 | |||
19 | /* core initialisation functions */ | ||
20 | |||
21 | extern void nuc900_init_irq(void); | ||
22 | extern struct sys_timer nuc900_timer; | ||
23 | 16 | ||
24 | /* extern file from nuc960.c */ | 17 | /* extern file from nuc960.c */ |
25 | 18 | ||
diff --git a/arch/arm/mach-w90x900/nuc9xx.h b/arch/arm/mach-w90x900/nuc9xx.h new file mode 100644 index 000000000000..847c4f3e0440 --- /dev/null +++ b/arch/arm/mach-w90x900/nuc9xx.h | |||
@@ -0,0 +1,23 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-w90x900/nuc9xx.h | ||
3 | * | ||
4 | * Copied from nuc910.h, which had: | ||
5 | * | ||
6 | * Copyright (c) 2008 Nuvoton corporation | ||
7 | * | ||
8 | * Header file for NUC900 CPU support | ||
9 | * | ||
10 | * Wan ZongShun <mcuos.com@gmail.com> | ||
11 | * | ||
12 | * This program is free software; you can redistribute it and/or modify | ||
13 | * it under the terms of the GNU General Public License version 2 as | ||
14 | * published by the Free Software Foundation. | ||
15 | * | ||
16 | */ | ||
17 | struct map_desc; | ||
18 | struct sys_timer; | ||
19 | |||
20 | /* core initialisation functions */ | ||
21 | |||
22 | extern void nuc900_init_irq(void); | ||
23 | extern struct sys_timer nuc900_timer; | ||
diff --git a/arch/arm/mach-w90x900/time.c b/arch/arm/mach-w90x900/time.c index a2c4e2d0a0d4..fa27c498ac09 100644 --- a/arch/arm/mach-w90x900/time.c +++ b/arch/arm/mach-w90x900/time.c | |||
@@ -33,6 +33,8 @@ | |||
33 | #include <mach/map.h> | 33 | #include <mach/map.h> |
34 | #include <mach/regs-timer.h> | 34 | #include <mach/regs-timer.h> |
35 | 35 | ||
36 | #include "nuc9xx.h" | ||
37 | |||
36 | #define RESETINT 0x1f | 38 | #define RESETINT 0x1f |
37 | #define PERIOD (0x01 << 27) | 39 | #define PERIOD (0x01 << 27) |
38 | #define ONESHOT (0x00 << 27) | 40 | #define ONESHOT (0x00 << 27) |