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/powerpc/platforms/8xx | |
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/powerpc/platforms/8xx')
-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 |
5 files changed, 26 insertions, 6 deletions
diff --git a/arch/powerpc/platforms/8xx/ep88xc.c b/arch/powerpc/platforms/8xx/ep88xc.c index 372b1e2921e..4897edab1ae 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 85abd61a814..1867a07d0fa 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 2a4a50f8e74..c0dda534f44 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 2931bae9c6a..bdceb57adc7 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 00000000000..239a243a616 --- /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 */ | ||