Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * Platform information definitions.
0003  *
0004  * 2006 (c) MontaVista Software, Inc.
0005  * Vitaly Bordug <vbordug@ru.mvista.com>
0006  *
0007  * This file is licensed under the terms of the GNU General Public License
0008  * version 2. This program is licensed "as is" without any warranty of any
0009  * kind, whether express or implied.
0010  */
0011 
0012 #ifndef FS_PD_H
0013 #define FS_PD_H
0014 #include <sysdev/fsl_soc.h>
0015 #include <asm/time.h>
0016 
0017 #ifdef CONFIG_CPM2
0018 #include <asm/cpm2.h>
0019 
0020 #if defined(CONFIG_8260)
0021 #include <asm/mpc8260.h>
0022 #endif
0023 
0024 #define cpm2_map(member) (&cpm2_immr->member)
0025 #define cpm2_map_size(member, size) (&cpm2_immr->member)
0026 #define cpm2_unmap(addr) do {} while(0)
0027 #endif
0028 
0029 #ifdef CONFIG_PPC_8xx
0030 #include <asm/8xx_immap.h>
0031 
0032 extern immap_t __iomem *mpc8xx_immr;
0033 
0034 #define immr_map(member) (&mpc8xx_immr->member)
0035 #define immr_map_size(member, size) (&mpc8xx_immr->member)
0036 #define immr_unmap(addr) do {} while (0)
0037 #endif
0038 
0039 static inline int uart_baudrate(void)
0040 {
0041         return get_baudrate();
0042 }
0043 
0044 static inline int uart_clock(void)
0045 {
0046         return ppc_proc_freq;
0047 }
0048 
0049 #endif