diff options
author | Jochen Friedrich <jochen@scram.de> | 2008-01-24 10:18:32 -0500 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2008-01-28 09:31:02 -0500 |
commit | 49b51545ff33734ac1c7e0a28c16ca1f49e51b8a (patch) | |
tree | 6cad556dfcf4abbc874277ed7822e943cc3996f0 /arch | |
parent | 9e8f38b0388144c0a400499abd0f8370abc88ced (diff) |
[POWERPC] 8xx: Remove sysdev/commproc.h
Move cpm1 specific prototypes to asm/commproc.h and mpc8xx specific
prototypes to asm/mpc8xx.h. Adjust includes accordingly. Remove now
unneeded sysdev/commproc.h.
Signed-off-by: Jochen Friedrich <jochen@scram.de>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/platforms/8xx/ep88xc.c | 2 | ||||
-rw-r--r-- | arch/powerpc/platforms/8xx/m8xx_setup.c | 3 | ||||
-rw-r--r-- | arch/powerpc/platforms/8xx/mpc86xads_setup.c | 4 | ||||
-rw-r--r-- | arch/powerpc/platforms/8xx/mpc885ads_setup.c | 2 | ||||
-rw-r--r-- | arch/powerpc/platforms/8xx/mpc8xx.h | 21 | ||||
-rw-r--r-- | arch/powerpc/sysdev/commproc.c | 1 | ||||
-rw-r--r-- | arch/powerpc/sysdev/commproc.h | 12 | ||||
-rw-r--r-- | arch/powerpc/sysdev/mpc8xx_pic.c | 1 |
8 files changed, 26 insertions, 20 deletions
diff --git a/arch/powerpc/platforms/8xx/ep88xc.c b/arch/powerpc/platforms/8xx/ep88xc.c index 372b1e2921e7..4897edab1ae1 100644 --- a/arch/powerpc/platforms/8xx/ep88xc.c +++ b/arch/powerpc/platforms/8xx/ep88xc.c | |||
@@ -17,7 +17,7 @@ | |||
17 | #include <asm/udbg.h> | 17 | #include <asm/udbg.h> |
18 | #include <asm/commproc.h> | 18 | #include <asm/commproc.h> |
19 | 19 | ||
20 | #include <sysdev/commproc.h> | 20 | #include "mpc8xx.h" |
21 | 21 | ||
22 | struct cpm_pin { | 22 | struct cpm_pin { |
23 | int port, pin, flags; | 23 | int port, pin, flags; |
diff --git a/arch/powerpc/platforms/8xx/m8xx_setup.c b/arch/powerpc/platforms/8xx/m8xx_setup.c index 85abd61a8140..1867a07d0faa 100644 --- a/arch/powerpc/platforms/8xx/m8xx_setup.c +++ b/arch/powerpc/platforms/8xx/m8xx_setup.c | |||
@@ -25,7 +25,8 @@ | |||
25 | #include <mm/mmu_decl.h> | 25 | #include <mm/mmu_decl.h> |
26 | 26 | ||
27 | #include <sysdev/mpc8xx_pic.h> | 27 | #include <sysdev/mpc8xx_pic.h> |
28 | #include <sysdev/commproc.h> | 28 | |
29 | #include "mpc8xx.h" | ||
29 | 30 | ||
30 | #ifdef CONFIG_PCMCIA_M8XX | 31 | #ifdef CONFIG_PCMCIA_M8XX |
31 | struct mpc8xx_pcmcia_ops m8xx_pcmcia_ops; | 32 | struct mpc8xx_pcmcia_ops m8xx_pcmcia_ops; |
diff --git a/arch/powerpc/platforms/8xx/mpc86xads_setup.c b/arch/powerpc/platforms/8xx/mpc86xads_setup.c index 2a4a50f8e749..c0dda534f44d 100644 --- a/arch/powerpc/platforms/8xx/mpc86xads_setup.c +++ b/arch/powerpc/platforms/8xx/mpc86xads_setup.c | |||
@@ -21,15 +21,13 @@ | |||
21 | #include <asm/machdep.h> | 21 | #include <asm/machdep.h> |
22 | #include <asm/system.h> | 22 | #include <asm/system.h> |
23 | #include <asm/time.h> | 23 | #include <asm/time.h> |
24 | #include <asm/mpc8xx.h> | ||
25 | #include <asm/8xx_immap.h> | 24 | #include <asm/8xx_immap.h> |
26 | #include <asm/commproc.h> | 25 | #include <asm/commproc.h> |
27 | #include <asm/fs_pd.h> | 26 | #include <asm/fs_pd.h> |
28 | #include <asm/udbg.h> | 27 | #include <asm/udbg.h> |
29 | 28 | ||
30 | #include <sysdev/commproc.h> | ||
31 | |||
32 | #include "mpc86xads.h" | 29 | #include "mpc86xads.h" |
30 | #include "mpc8xx.h" | ||
33 | 31 | ||
34 | struct cpm_pin { | 32 | struct cpm_pin { |
35 | int port, pin, flags; | 33 | int port, pin, flags; |
diff --git a/arch/powerpc/platforms/8xx/mpc885ads_setup.c b/arch/powerpc/platforms/8xx/mpc885ads_setup.c index 2931bae9c6af..bdceb57adc7a 100644 --- a/arch/powerpc/platforms/8xx/mpc885ads_setup.c +++ b/arch/powerpc/platforms/8xx/mpc885ads_setup.c | |||
@@ -40,7 +40,7 @@ | |||
40 | #include <asm/fs_pd.h> | 40 | #include <asm/fs_pd.h> |
41 | #include <asm/udbg.h> | 41 | #include <asm/udbg.h> |
42 | 42 | ||
43 | #include <sysdev/commproc.h> | 43 | #include "mpc8xx.h" |
44 | 44 | ||
45 | static u32 __iomem *bcsr, *bcsr5; | 45 | static u32 __iomem *bcsr, *bcsr5; |
46 | 46 | ||
diff --git a/arch/powerpc/platforms/8xx/mpc8xx.h b/arch/powerpc/platforms/8xx/mpc8xx.h new file mode 100644 index 000000000000..239a243a6161 --- /dev/null +++ b/arch/powerpc/platforms/8xx/mpc8xx.h | |||
@@ -0,0 +1,21 @@ | |||
1 | /* | ||
2 | * Prototypes, etc. for the Freescale MPC8xx embedded cpu chips | ||
3 | * May need to be cleaned as the port goes on ... | ||
4 | * | ||
5 | * Copyright (C) 2008 Jochen Friedrich <jochen@scram.de> | ||
6 | * | ||
7 | * This file is licensed under the terms of the GNU General Public License | ||
8 | * version 2. This program is licensed "as is" without any warranty of any | ||
9 | * kind, whether express or implied. | ||
10 | */ | ||
11 | #ifndef __MPC8xx_H | ||
12 | #define __MPC8xx_H | ||
13 | |||
14 | extern void mpc8xx_restart(char *cmd); | ||
15 | extern void mpc8xx_calibrate_decr(void); | ||
16 | extern int mpc8xx_set_rtc_time(struct rtc_time *tm); | ||
17 | extern void mpc8xx_get_rtc_time(struct rtc_time *tm); | ||
18 | extern void mpc8xx_pics_init(void); | ||
19 | extern unsigned int mpc8xx_get_irq(void); | ||
20 | |||
21 | #endif /* __MPC8xx_H */ | ||
diff --git a/arch/powerpc/sysdev/commproc.c b/arch/powerpc/sysdev/commproc.c index 818d4b03f4e3..ef82587d4d28 100644 --- a/arch/powerpc/sysdev/commproc.c +++ b/arch/powerpc/sysdev/commproc.c | |||
@@ -30,7 +30,6 @@ | |||
30 | #include <linux/interrupt.h> | 30 | #include <linux/interrupt.h> |
31 | #include <linux/irq.h> | 31 | #include <linux/irq.h> |
32 | #include <linux/module.h> | 32 | #include <linux/module.h> |
33 | #include <asm/mpc8xx.h> | ||
34 | #include <asm/page.h> | 33 | #include <asm/page.h> |
35 | #include <asm/pgtable.h> | 34 | #include <asm/pgtable.h> |
36 | #include <asm/8xx_immap.h> | 35 | #include <asm/8xx_immap.h> |
diff --git a/arch/powerpc/sysdev/commproc.h b/arch/powerpc/sysdev/commproc.h deleted file mode 100644 index f481adf313f5..000000000000 --- a/arch/powerpc/sysdev/commproc.h +++ /dev/null | |||
@@ -1,12 +0,0 @@ | |||
1 | #ifndef _POWERPC_SYSDEV_COMMPROC_H | ||
2 | #define _POWERPC_SYSDEV_COMMPROC_H | ||
3 | |||
4 | extern void cpm_reset(void); | ||
5 | extern void mpc8xx_restart(char *cmd); | ||
6 | extern void mpc8xx_calibrate_decr(void); | ||
7 | extern int mpc8xx_set_rtc_time(struct rtc_time *tm); | ||
8 | extern void mpc8xx_get_rtc_time(struct rtc_time *tm); | ||
9 | extern void mpc8xx_pics_init(void); | ||
10 | extern unsigned int mpc8xx_get_irq(void); | ||
11 | |||
12 | #endif | ||
diff --git a/arch/powerpc/sysdev/mpc8xx_pic.c b/arch/powerpc/sysdev/mpc8xx_pic.c index 7aa4ff5f5ec8..0e74a4bd9827 100644 --- a/arch/powerpc/sysdev/mpc8xx_pic.c +++ b/arch/powerpc/sysdev/mpc8xx_pic.c | |||
@@ -10,7 +10,6 @@ | |||
10 | #include <asm/irq.h> | 10 | #include <asm/irq.h> |
11 | #include <asm/io.h> | 11 | #include <asm/io.h> |
12 | #include <asm/8xx_immap.h> | 12 | #include <asm/8xx_immap.h> |
13 | #include <asm/mpc8xx.h> | ||
14 | 13 | ||
15 | #include "mpc8xx_pic.h" | 14 | #include "mpc8xx_pic.h" |
16 | 15 | ||