1 /* SPDX-License-Identifier: GPL-2.0-only */ 1 2 /* 3 * Header for code common to all DaVinci machi 4 * 5 * Author: Kevin Hilman, MontaVista Software, 6 * 7 * 2007 (c) MontaVista Software, Inc. 8 */ 9 10 #ifndef __ARCH_ARM_MACH_DAVINCI_COMMON_H 11 #define __ARCH_ARM_MACH_DAVINCI_COMMON_H 12 13 #include <linux/clk.h> 14 #include <linux/compiler.h> 15 #include <linux/types.h> 16 #include <linux/reboot.h> 17 18 #include <asm/irq.h> 19 20 #define DAVINCI_INTC_START NR_IRQS 21 #define DAVINCI_INTC_IRQ(_irqnum) (DAVINC 22 23 struct davinci_gpio_controller; 24 25 /* 26 * SoC info passed into common davinci modules 27 * 28 * Base addresses in this structure should be 29 * Modules that take such base addresses, shou 30 * use. 31 */ 32 struct davinci_soc_info { 33 struct map_desc *io_de 34 unsigned long io_des 35 u32 cpu_id 36 u32 jtag_i 37 u32 jtag_i 38 struct davinci_id *ids; 39 unsigned long ids_nu 40 u32 pinmux 41 const struct mux_config *pinmu 42 unsigned long pinmux 43 int gpio_t 44 u32 gpio_b 45 unsigned gpio_n 46 unsigned gpio_i 47 unsigned gpio_u 48 dma_addr_t sram_d 49 unsigned sram_l 50 }; 51 52 extern struct davinci_soc_info davinci_soc_inf 53 54 extern void davinci_common_init(const struct d 55 void davinci_init_late(void); 56 57 #ifdef CONFIG_SUSPEND 58 int davinci_pm_init(void); 59 #else 60 static inline int davinci_pm_init(void) { retu 61 #endif 62 63 void __init pdata_quirks_init(void); 64 65 #define SRAM_SIZE SZ_128K 66 67 #endif /* __ARCH_ARM_MACH_DAVINCI_COMMON_H */ 68
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.