blob: 9361cd5342cccb7a9bd825b216159d7cfe9d4b5d [file] [log] [blame]
Vitaly Bordug3dd0dcb2006-09-21 17:27:15 +04001/*
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 Bordugf2a0bd32007-01-24 22:41:24 +030017#ifdef CONFIG_CPM2
18#include <asm/cpm2.h>
Vitaly Bordug3dd0dcb2006-09-21 17:27:15 +040019
Vitaly Bordug54278282007-01-31 02:09:00 +030020#if defined(CONFIG_8260)
21#include <asm/mpc8260.h>
Vitaly Bordug54278282007-01-31 02:09:00 +030022#endif
23
Scott Wood449012d2007-09-14 15:30:44 -050024#define cpm2_map(member) (&cpm2_immr->member)
25#define cpm2_map_size(member, size) (&cpm2_immr->member)
26#define cpm2_unmap(addr) do {} while(0)
Vitaly Bordugf2a0bd32007-01-24 22:41:24 +030027#endif
28
29#ifdef CONFIG_8xx
30#include <asm/8xx_immap.h>
31#include <asm/mpc8xx.h>
32
Scott Woodfb533d02007-09-14 14:22:36 -050033extern immap_t __iomem *mpc8xx_immr;
Vitaly Bordugf2a0bd32007-01-24 22:41:24 +030034
Scott Woodfb533d02007-09-14 14:22:36 -050035#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)
Vitaly Bordugf2a0bd32007-01-24 22:41:24 +030038#endif
39
40static inline int uart_baudrate(void)
41{
42 return get_baudrate();
43}
44
45static inline int uart_clock(void)
46{
47 return ppc_proc_freq;
48}
Vitaly Bordugfc8e50e2006-09-21 22:37:58 +040049
Vitaly Bordug3dd0dcb2006-09-21 17:27:15 +040050#endif