Vitaly Bordug | 3dd0dcb | 2006-09-21 17:27:15 +0400 | [diff] [blame] | 1 | /* |
| 2 | * Platform information definitions. |
| 3 | * |
| 4 | * 2006 (c) MontaVista Software, Inc. |
| 5 | * Vitaly Bordug <vbordug@ru.mvista.com> |
| 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 | |
| 12 | #ifndef FS_PD_H |
| 13 | #define FS_PD_H |
| 14 | #include <sysdev/fsl_soc.h> |
| 15 | #include <asm/time.h> |
| 16 | |
Vitaly Bordug | f2a0bd3 | 2007-01-24 22:41:24 +0300 | [diff] [blame] | 17 | #ifdef CONFIG_CPM2 |
| 18 | #include <asm/cpm2.h> |
Vitaly Bordug | 3dd0dcb | 2006-09-21 17:27:15 +0400 | [diff] [blame] | 19 | |
Vitaly Bordug | 5427828 | 2007-01-31 02:09:00 +0300 | [diff] [blame] | 20 | #if defined(CONFIG_8260) |
| 21 | #include <asm/mpc8260.h> |
| 22 | #elif defined(CONFIG_85xx) |
| 23 | #include <asm/mpc85xx.h> |
| 24 | #endif |
| 25 | |
Scott Wood | 449012d | 2007-09-14 15:30:44 -0500 | [diff] [blame^] | 26 | #define cpm2_map(member) (&cpm2_immr->member) |
| 27 | #define cpm2_map_size(member, size) (&cpm2_immr->member) |
| 28 | #define cpm2_unmap(addr) do {} while(0) |
Vitaly Bordug | f2a0bd3 | 2007-01-24 22:41:24 +0300 | [diff] [blame] | 29 | #endif |
| 30 | |
| 31 | #ifdef CONFIG_8xx |
| 32 | #include <asm/8xx_immap.h> |
| 33 | #include <asm/mpc8xx.h> |
| 34 | |
Scott Wood | fb533d0 | 2007-09-14 14:22:36 -0500 | [diff] [blame] | 35 | extern immap_t __iomem *mpc8xx_immr; |
Vitaly Bordug | f2a0bd3 | 2007-01-24 22:41:24 +0300 | [diff] [blame] | 36 | |
Scott Wood | fb533d0 | 2007-09-14 14:22:36 -0500 | [diff] [blame] | 37 | #define immr_map(member) (&mpc8xx_immr->member) |
| 38 | #define immr_map_size(member, size) (&mpc8xx_immr->member) |
| 39 | #define immr_unmap(addr) do {} while (0) |
Vitaly Bordug | f2a0bd3 | 2007-01-24 22:41:24 +0300 | [diff] [blame] | 40 | #endif |
| 41 | |
| 42 | static inline int uart_baudrate(void) |
| 43 | { |
| 44 | return get_baudrate(); |
| 45 | } |
| 46 | |
| 47 | static inline int uart_clock(void) |
| 48 | { |
| 49 | return ppc_proc_freq; |
| 50 | } |
Vitaly Bordug | fc8e50e | 2006-09-21 22:37:58 +0400 | [diff] [blame] | 51 | |
Vitaly Bordug | 3dd0dcb | 2006-09-21 17:27:15 +0400 | [diff] [blame] | 52 | #endif |