]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blame - arch/powerpc/include/asm/fs_pd.h
Merge branch 'pm-cpufreq'
[mirror_ubuntu-zesty-kernel.git] / arch / powerpc / include / asm / fs_pd.h
CommitLineData
3dd0dcbe
VB
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
f2a0bd37
VB
17#ifdef CONFIG_CPM2
18#include <asm/cpm2.h>
3dd0dcbe 19
5427828e
VB
20#if defined(CONFIG_8260)
21#include <asm/mpc8260.h>
5427828e
VB
22#endif
23
449012da
SW
24#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)
f2a0bd37
VB
27#endif
28
29#ifdef CONFIG_8xx
30#include <asm/8xx_immap.h>
f2a0bd37 31
fb533d0c 32extern immap_t __iomem *mpc8xx_immr;
f2a0bd37 33
fb533d0c
SW
34#define immr_map(member) (&mpc8xx_immr->member)
35#define immr_map_size(member, size) (&mpc8xx_immr->member)
36#define immr_unmap(addr) do {} while (0)
f2a0bd37
VB
37#endif
38
39static inline int uart_baudrate(void)
40{
41 return get_baudrate();
42}
43
44static inline int uart_clock(void)
45{
46 return ppc_proc_freq;
47}
fc8e50e3 48
3dd0dcbe 49#endif