diff options
Diffstat (limited to 'arch/arm/mach-davinci/include/mach/common.h')
-rw-r--r-- | arch/arm/mach-davinci/include/mach/common.h | 55 |
1 files changed, 54 insertions, 1 deletions
diff --git a/arch/arm/mach-davinci/include/mach/common.h b/arch/arm/mach-davinci/include/mach/common.h index 191770976250..a1f03b606d8f 100644 --- a/arch/arm/mach-davinci/include/mach/common.h +++ b/arch/arm/mach-davinci/include/mach/common.h | |||
@@ -17,7 +17,8 @@ struct sys_timer; | |||
17 | extern struct sys_timer davinci_timer; | 17 | extern struct sys_timer davinci_timer; |
18 | 18 | ||
19 | extern void davinci_irq_init(void); | 19 | extern void davinci_irq_init(void); |
20 | extern void davinci_map_common_io(void); | 20 | extern void __iomem *davinci_intc_base; |
21 | extern int davinci_intc_type; | ||
21 | 22 | ||
22 | /* parameters describe VBUS sourcing for host mode */ | 23 | /* parameters describe VBUS sourcing for host mode */ |
23 | extern void setup_usb(unsigned mA, unsigned potpgt_msec); | 24 | extern void setup_usb(unsigned mA, unsigned potpgt_msec); |
@@ -25,4 +26,56 @@ extern void setup_usb(unsigned mA, unsigned potpgt_msec); | |||
25 | /* parameters describe VBUS sourcing for host mode */ | 26 | /* parameters describe VBUS sourcing for host mode */ |
26 | extern void setup_usb(unsigned mA, unsigned potpgt_msec); | 27 | extern void setup_usb(unsigned mA, unsigned potpgt_msec); |
27 | 28 | ||
29 | struct davinci_timer_instance { | ||
30 | void __iomem *base; | ||
31 | u32 bottom_irq; | ||
32 | u32 top_irq; | ||
33 | unsigned long cmp_off; | ||
34 | unsigned int cmp_irq; | ||
35 | }; | ||
36 | |||
37 | struct davinci_timer_info { | ||
38 | struct davinci_timer_instance *timers; | ||
39 | unsigned int clockevent_id; | ||
40 | unsigned int clocksource_id; | ||
41 | }; | ||
42 | |||
43 | /* SoC specific init support */ | ||
44 | struct davinci_soc_info { | ||
45 | struct map_desc *io_desc; | ||
46 | unsigned long io_desc_num; | ||
47 | u32 cpu_id; | ||
48 | u32 jtag_id; | ||
49 | void __iomem *jtag_id_base; | ||
50 | struct davinci_id *ids; | ||
51 | unsigned long ids_num; | ||
52 | struct davinci_clk *cpu_clks; | ||
53 | void __iomem **psc_bases; | ||
54 | unsigned long psc_bases_num; | ||
55 | void __iomem *pinmux_base; | ||
56 | const struct mux_config *pinmux_pins; | ||
57 | unsigned long pinmux_pins_num; | ||
58 | void __iomem *intc_base; | ||
59 | int intc_type; | ||
60 | u8 *intc_irq_prios; | ||
61 | unsigned long intc_irq_num; | ||
62 | struct davinci_timer_info *timer_info; | ||
63 | void __iomem *wdt_base; | ||
64 | void __iomem *gpio_base; | ||
65 | unsigned gpio_num; | ||
66 | unsigned gpio_irq; | ||
67 | struct platform_device *serial_dev; | ||
68 | struct emac_platform_data *emac_pdata; | ||
69 | dma_addr_t sram_dma; | ||
70 | unsigned sram_len; | ||
71 | }; | ||
72 | |||
73 | extern struct davinci_soc_info davinci_soc_info; | ||
74 | |||
75 | extern void davinci_common_init(struct davinci_soc_info *soc_info); | ||
76 | |||
77 | /* standard place to map on-chip SRAMs; they *may* support DMA */ | ||
78 | #define SRAM_VIRT 0xfffe0000 | ||
79 | #define SRAM_SIZE SZ_128K | ||
80 | |||
28 | #endif /* __ARCH_ARM_MACH_DAVINCI_COMMON_H */ | 81 | #endif /* __ARCH_ARM_MACH_DAVINCI_COMMON_H */ |