]> bbs.cooldavid.org Git - net-next-2.6.git/blame - arch/arm/mach-davinci/include/mach/common.h
Davinci: configurable pll divider mask
[net-next-2.6.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);
673dd36f 20extern void __iomem *davinci_intc_base;
0b0c4c2a 21extern int davinci_intc_type;
d0e47fba 22
f64691b3
MG
23struct davinci_timer_instance {
24 void __iomem *base;
25 u32 bottom_irq;
26 u32 top_irq;
3abd5acf
MG
27 unsigned long cmp_off;
28 unsigned int cmp_irq;
f64691b3
MG
29};
30
31struct davinci_timer_info {
32 struct davinci_timer_instance *timers;
33 unsigned int clockevent_id;
34 unsigned int clocksource_id;
35};
36
79c3c0b7
MG
37/* SoC specific init support */
38struct davinci_soc_info {
39 struct map_desc *io_desc;
40 unsigned long io_desc_num;
b9ab1279
MG
41 u32 cpu_id;
42 u32 jtag_id;
43 void __iomem *jtag_id_base;
44 struct davinci_id *ids;
45 unsigned long ids_num;
08aca087 46 struct clk_lookup *cpu_clks;
d81d188c
MG
47 void __iomem **psc_bases;
48 unsigned long psc_bases_num;
0e585952
MG
49 void __iomem *pinmux_base;
50 const struct mux_config *pinmux_pins;
51 unsigned long pinmux_pins_num;
673dd36f
MG
52 void __iomem *intc_base;
53 int intc_type;
54 u8 *intc_irq_prios;
55 unsigned long intc_irq_num;
f64691b3 56 struct davinci_timer_info *timer_info;
a994955c
MG
57 void __iomem *gpio_base;
58 unsigned gpio_num;
59 unsigned gpio_irq;
7a36071e 60 unsigned gpio_unbanked;
65e866a9 61 struct platform_device *serial_dev;
972412b6 62 struct emac_platform_data *emac_pdata;
0d04eb47
DB
63 dma_addr_t sram_dma;
64 unsigned sram_len;
79c3c0b7
MG
65};
66
67extern struct davinci_soc_info davinci_soc_info;
68
69extern void davinci_common_init(struct davinci_soc_info *soc_info);
79c3c0b7 70
0d04eb47
DB
71/* standard place to map on-chip SRAMs; they *may* support DMA */
72#define SRAM_VIRT 0xfffe0000
73#define SRAM_SIZE SZ_128K
74
7c6337e2 75#endif /* __ARCH_ARM_MACH_DAVINCI_COMMON_H */