diff options
author | Scott Wood <scottwood@freescale.com> | 2007-09-14 15:22:36 -0400 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2007-10-03 21:36:35 -0400 |
commit | fb533d0c5a9783ecafa9a177bace6384c47282a9 (patch) | |
tree | 7be09cf401674b176455530ab4fec98bf9681751 /include/asm-powerpc/commproc.h | |
parent | ccf0d68e835003f19d5a9463d5a8c1e092d3a31a (diff) |
[POWERPC] 8xx: Infrastructure code cleanup.
1. Keep a global mpc8xx_immr mapping, rather than constantly
creating temporary mappings.
2. Look for new fsl,cpm1 and fsl,cpm1-pic names.
3. Always reset the CPM when not using the udbg console;
this is required in case the firmware initialized a device
that is incompatible with one that the kernel is about to
use.
4. Remove some superfluous casts and header includes.
5. Change a usage of IMAP_ADDR to get_immrbase().
6. Use phys_addr_t, not uint, for dpram_pbase.
7. Various sparse-related fixes, such as __iomem annotations.
8. Remove mpc8xx_show_cpuinfo, which doesn't provide anything
useful beyond the generic cpuinfo handler.
9. Move prototypes for 8xx support functions from board files
to sysdev/commproc.h.
Signed-off-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'include/asm-powerpc/commproc.h')
-rw-r--r-- | include/asm-powerpc/commproc.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/asm-powerpc/commproc.h b/include/asm-powerpc/commproc.h index 397248705e0e..86fcf265c54a 100644 --- a/include/asm-powerpc/commproc.h +++ b/include/asm-powerpc/commproc.h | |||
@@ -66,7 +66,7 @@ | |||
66 | /* Export the base address of the communication processor registers | 66 | /* Export the base address of the communication processor registers |
67 | * and dual port ram. | 67 | * and dual port ram. |
68 | */ | 68 | */ |
69 | extern cpm8xx_t *cpmp; /* Pointer to comm processor */ | 69 | extern cpm8xx_t __iomem *cpmp; /* Pointer to comm processor */ |
70 | extern unsigned long cpm_dpalloc(uint size, uint align); | 70 | extern unsigned long cpm_dpalloc(uint size, uint align); |
71 | extern int cpm_dpfree(unsigned long offset); | 71 | extern int cpm_dpfree(unsigned long offset); |
72 | extern unsigned long cpm_dpalloc_fixed(unsigned long offset, uint size, uint align); | 72 | extern unsigned long cpm_dpalloc_fixed(unsigned long offset, uint size, uint align); |
@@ -689,4 +689,6 @@ typedef struct risc_timer_pram { | |||
689 | extern void cpm_install_handler(int vec, void (*handler)(void *), void *dev_id); | 689 | extern void cpm_install_handler(int vec, void (*handler)(void *), void *dev_id); |
690 | extern void cpm_free_handler(int vec); | 690 | extern void cpm_free_handler(int vec); |
691 | 691 | ||
692 | #define IMAP_ADDR (get_immrbase()) | ||
693 | |||
692 | #endif /* __CPM_8XX__ */ | 694 | #endif /* __CPM_8XX__ */ |