2 * Header for code common to all DaVinci machines.
4 * Author: Kevin Hilman, MontaVista Software, Inc. <source@mvista.com>
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
12 #ifndef __ARCH_ARM_MACH_DAVINCI_COMMON_H
13 #define __ARCH_ARM_MACH_DAVINCI_COMMON_H
15 #include <linux/compiler.h>
16 #include <linux/types.h>
20 extern struct sys_timer davinci_timer
;
22 extern void davinci_irq_init(void);
23 extern void __iomem
*davinci_intc_base
;
24 extern int davinci_intc_type
;
26 struct davinci_timer_instance
{
30 unsigned long cmp_off
;
34 struct davinci_timer_info
{
35 struct davinci_timer_instance
*timers
;
36 unsigned int clockevent_id
;
37 unsigned int clocksource_id
;
40 struct davinci_gpio_controller
;
43 * SoC info passed into common davinci modules.
45 * Base addresses in this structure should be physical and not virtual.
46 * Modules that take such base addresses, should internally ioremap() them to
49 struct davinci_soc_info
{
50 struct map_desc
*io_desc
;
51 unsigned long io_desc_num
;
55 struct davinci_id
*ids
;
56 unsigned long ids_num
;
57 struct clk_lookup
*cpu_clks
;
59 unsigned long psc_bases_num
;
61 const struct mux_config
*pinmux_pins
;
62 unsigned long pinmux_pins_num
;
66 unsigned long intc_irq_num
;
68 struct davinci_timer_info
*timer_info
;
73 unsigned gpio_unbanked
;
74 struct davinci_gpio_controller
*gpio_ctlrs
;
76 struct platform_device
*serial_dev
;
77 struct emac_platform_data
*emac_pdata
;
82 extern struct davinci_soc_info davinci_soc_info
;
84 extern void davinci_common_init(struct davinci_soc_info
*soc_info
);
85 extern void davinci_init_ide(void);
86 void davinci_restart(char mode
, const char *cmd
);
88 /* standard place to map on-chip SRAMs; they *may* support DMA */
89 #define SRAM_VIRT 0xfffe0000
90 #define SRAM_SIZE SZ_128K
92 #endif /* __ARCH_ARM_MACH_DAVINCI_COMMON_H */