1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Header for code common to all DaVinci machines.
5 * Author: Kevin Hilman, MontaVista Software, Inc. <source@mvista.com>
7 * 2007 (c) MontaVista Software, Inc.
10 #ifndef __ARCH_ARM_MACH_DAVINCI_COMMON_H
11 #define __ARCH_ARM_MACH_DAVINCI_COMMON_H
13 #include <linux/clk.h>
14 #include <linux/compiler.h>
15 #include <linux/types.h>
16 #include <linux/reboot.h>
20 #define DAVINCI_INTC_START NR_IRQS
21 #define DAVINCI_INTC_IRQ(_irqnum) (DAVINCI_INTC_START + (_irqnum))
23 struct davinci_gpio_controller
;
26 * SoC info passed into common davinci modules.
28 * Base addresses in this structure should be physical and not virtual.
29 * Modules that take such base addresses, should internally ioremap() them to
32 struct davinci_soc_info
{
33 struct map_desc
*io_desc
;
34 unsigned long io_desc_num
;
38 struct davinci_id
*ids
;
39 unsigned long ids_num
;
41 const struct mux_config
*pinmux_pins
;
42 unsigned long pinmux_pins_num
;
47 unsigned gpio_unbanked
;
52 extern struct davinci_soc_info davinci_soc_info
;
54 extern void davinci_common_init(const struct davinci_soc_info
*soc_info
);
55 void davinci_init_late(void);
58 int davinci_pm_init(void);
60 static inline int davinci_pm_init(void) { return 0; }
63 void __init
pdata_quirks_init(void);
65 #define SRAM_SIZE SZ_128K
67 #endif /* __ARCH_ARM_MACH_DAVINCI_COMMON_H */