aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-powerpc/fs_pd.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-powerpc/fs_pd.h')
-rw-r--r--include/asm-powerpc/fs_pd.h40
1 files changed, 7 insertions, 33 deletions
diff --git a/include/asm-powerpc/fs_pd.h b/include/asm-powerpc/fs_pd.h
index c624915b757e..9361cd5342cc 100644
--- a/include/asm-powerpc/fs_pd.h
+++ b/include/asm-powerpc/fs_pd.h
@@ -19,48 +19,22 @@
19 19
20#if defined(CONFIG_8260) 20#if defined(CONFIG_8260)
21#include <asm/mpc8260.h> 21#include <asm/mpc8260.h>
22#elif defined(CONFIG_85xx)
23#include <asm/mpc85xx.h>
24#endif 22#endif
25 23
26#define cpm2_map(member) \ 24#define cpm2_map(member) (&cpm2_immr->member)
27({ \ 25#define cpm2_map_size(member, size) (&cpm2_immr->member)
28 u32 offset = offsetof(cpm2_map_t, member); \ 26#define cpm2_unmap(addr) do {} while(0)
29 void *addr = ioremap (CPM_MAP_ADDR + offset, \
30 sizeof( ((cpm2_map_t*)0)->member)); \
31 addr; \
32})
33
34#define cpm2_map_size(member, size) \
35({ \
36 u32 offset = offsetof(cpm2_map_t, member); \
37 void *addr = ioremap (CPM_MAP_ADDR + offset, size); \
38 addr; \
39})
40
41#define cpm2_unmap(addr) iounmap(addr)
42#endif 27#endif
43 28
44#ifdef CONFIG_8xx 29#ifdef CONFIG_8xx
45#include <asm/8xx_immap.h> 30#include <asm/8xx_immap.h>
46#include <asm/mpc8xx.h> 31#include <asm/mpc8xx.h>
47 32
48#define immr_map(member) \ 33extern immap_t __iomem *mpc8xx_immr;
49({ \
50 u32 offset = offsetof(immap_t, member); \
51 void *addr = ioremap (IMAP_ADDR + offset, \
52 sizeof( ((immap_t*)0)->member)); \
53 addr; \
54})
55
56#define immr_map_size(member, size) \
57({ \
58 u32 offset = offsetof(immap_t, member); \
59 void *addr = ioremap (IMAP_ADDR + offset, size); \
60 addr; \
61})
62 34
63#define immr_unmap(addr) iounmap(addr) 35#define immr_map(member) (&mpc8xx_immr->member)
36#define immr_map_size(member, size) (&mpc8xx_immr->member)
37#define immr_unmap(addr) do {} while (0)
64#endif 38#endif
65 39
66static inline int uart_baudrate(void) 40static inline int uart_baudrate(void)