davinci: Move pinmux setup info to SoC infrastructure
[linux-2.6-block.git] / arch / arm / mach-davinci / include / mach / common.h
CommitLineData
7c6337e2
KH
1/*
2 * Header for code common to all DaVinci machines.
3 *
4 * Author: Kevin Hilman, MontaVista Software, Inc. <source@mvista.com>
5 *
6 * 2007 (c) MontaVista Software, Inc. This file is licensed under
7 * the terms of the GNU General Public License version 2. This program
8 * is licensed "as is" without any warranty of any kind, whether express
9 * or implied.
10 */
11
12#ifndef __ARCH_ARM_MACH_DAVINCI_COMMON_H
13#define __ARCH_ARM_MACH_DAVINCI_COMMON_H
14
15struct sys_timer;
16
17extern struct sys_timer davinci_timer;
18
d0e47fba 19extern void davinci_irq_init(void);
d0e47fba
KH
20
21/* parameters describe VBUS sourcing for host mode */
22extern void setup_usb(unsigned mA, unsigned potpgt_msec);
23
cece6e5a
DB
24/* parameters describe VBUS sourcing for host mode */
25extern void setup_usb(unsigned mA, unsigned potpgt_msec);
26
79c3c0b7
MG
27/* SoC specific init support */
28struct davinci_soc_info {
29 struct map_desc *io_desc;
30 unsigned long io_desc_num;
b9ab1279
MG
31 u32 cpu_id;
32 u32 jtag_id;
33 void __iomem *jtag_id_base;
34 struct davinci_id *ids;
35 unsigned long ids_num;
66e0c399 36 struct davinci_clk *cpu_clks;
d81d188c
MG
37 void __iomem **psc_bases;
38 unsigned long psc_bases_num;
0e585952
MG
39 void __iomem *pinmux_base;
40 const struct mux_config *pinmux_pins;
41 unsigned long pinmux_pins_num;
79c3c0b7
MG
42};
43
44extern struct davinci_soc_info davinci_soc_info;
45
46extern void davinci_common_init(struct davinci_soc_info *soc_info);
79c3c0b7 47
7c6337e2 48#endif /* __ARCH_ARM_MACH_DAVINCI_COMMON_H */