Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / arch / arm / mach-davinci / common.h
blob81a2b06b46e9811727e0c62c795f382c2f59cbc6
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
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.
8 */
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>
18 #include <asm/irq.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
30 * use.
32 struct davinci_soc_info {
33 struct map_desc *io_desc;
34 unsigned long io_desc_num;
35 u32 cpu_id;
36 u32 jtag_id;
37 u32 jtag_id_reg;
38 struct davinci_id *ids;
39 unsigned long ids_num;
40 u32 pinmux_base;
41 const struct mux_config *pinmux_pins;
42 unsigned long pinmux_pins_num;
43 int gpio_type;
44 u32 gpio_base;
45 unsigned gpio_num;
46 unsigned gpio_irq;
47 unsigned gpio_unbanked;
48 dma_addr_t sram_dma;
49 unsigned sram_len;
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);
57 #ifdef CONFIG_SUSPEND
58 int davinci_pm_init(void);
59 #else
60 static inline int davinci_pm_init(void) { return 0; }
61 #endif
63 void __init pdata_quirks_init(void);
65 #define SRAM_SIZE SZ_128K
67 #endif /* __ARCH_ARM_MACH_DAVINCI_COMMON_H */