Paul Walmsley | 43b4099 | 2010-02-22 22:09:34 -0700 | [diff] [blame] | 1 | /* |
| 2 | * omap_hwmod_common_data.h - OMAP hwmod common macros and declarations |
| 3 | * |
Paul Walmsley | ded1138 | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 4 | * Copyright (C) 2010-2011 Nokia Corporation |
Paul Walmsley | 43b4099 | 2010-02-22 22:09:34 -0700 | [diff] [blame] | 5 | * Paul Walmsley |
| 6 | * |
Paul Walmsley | ded1138 | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 7 | * Copyright (C) 2010-2011 Texas Instruments, Inc. |
Paul Walmsley | 43b4099 | 2010-02-22 22:09:34 -0700 | [diff] [blame] | 8 | * BenoƮt Cousson |
| 9 | * |
| 10 | * This program is free software; you can redistribute it and/or modify |
| 11 | * it under the terms of the GNU General Public License version 2 as |
| 12 | * published by the Free Software Foundation. |
| 13 | */ |
| 14 | #ifndef __ARCH_ARM_MACH_OMAP2_OMAP_HWMOD_COMMON_DATA_H |
| 15 | #define __ARCH_ARM_MACH_OMAP2_OMAP_HWMOD_COMMON_DATA_H |
| 16 | |
| 17 | #include <plat/omap_hwmod.h> |
| 18 | |
Paul Walmsley | ded1138 | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 19 | /* Common address space across OMAP2xxx */ |
| 20 | extern struct omap_hwmod_addr_space omap2xxx_uart1_addr_space[]; |
| 21 | extern struct omap_hwmod_addr_space omap2xxx_uart2_addr_space[]; |
| 22 | extern struct omap_hwmod_addr_space omap2xxx_uart3_addr_space[]; |
| 23 | extern struct omap_hwmod_addr_space omap2xxx_timer2_addrs[]; |
| 24 | extern struct omap_hwmod_addr_space omap2xxx_timer3_addrs[]; |
| 25 | extern struct omap_hwmod_addr_space omap2xxx_timer4_addrs[]; |
| 26 | extern struct omap_hwmod_addr_space omap2xxx_timer5_addrs[]; |
| 27 | extern struct omap_hwmod_addr_space omap2xxx_timer6_addrs[]; |
| 28 | extern struct omap_hwmod_addr_space omap2xxx_timer7_addrs[]; |
| 29 | extern struct omap_hwmod_addr_space omap2xxx_timer8_addrs[]; |
| 30 | extern struct omap_hwmod_addr_space omap2xxx_timer9_addrs[]; |
| 31 | extern struct omap_hwmod_addr_space omap2xxx_timer12_addrs[]; |
| 32 | extern struct omap_hwmod_addr_space omap2xxx_mcbsp2_addrs[]; |
| 33 | |
| 34 | /* Common address space across OMAP2xxx/3xxx */ |
| 35 | extern struct omap_hwmod_addr_space omap2_i2c1_addr_space[]; |
| 36 | extern struct omap_hwmod_addr_space omap2_i2c2_addr_space[]; |
| 37 | extern struct omap_hwmod_addr_space omap2_dss_addrs[]; |
| 38 | extern struct omap_hwmod_addr_space omap2_dss_dispc_addrs[]; |
| 39 | extern struct omap_hwmod_addr_space omap2_dss_rfbi_addrs[]; |
| 40 | extern struct omap_hwmod_addr_space omap2_dss_venc_addrs[]; |
| 41 | extern struct omap_hwmod_addr_space omap2_timer10_addrs[]; |
| 42 | extern struct omap_hwmod_addr_space omap2_timer11_addrs[]; |
| 43 | extern struct omap_hwmod_addr_space omap2430_mmc1_addr_space[]; |
| 44 | extern struct omap_hwmod_addr_space omap2430_mmc2_addr_space[]; |
| 45 | extern struct omap_hwmod_addr_space omap2_mcspi1_addr_space[]; |
| 46 | extern struct omap_hwmod_addr_space omap2_mcspi2_addr_space[]; |
| 47 | extern struct omap_hwmod_addr_space omap2430_mcspi3_addr_space[]; |
| 48 | extern struct omap_hwmod_addr_space omap2_dma_system_addrs[]; |
| 49 | extern struct omap_hwmod_addr_space omap2_mailbox_addrs[]; |
| 50 | extern struct omap_hwmod_addr_space omap2_mcbsp1_addrs[]; |
| 51 | |
Paul Walmsley | 0d619a8 | 2011-07-09 19:14:07 -0600 | [diff] [blame] | 52 | /* Common IP block data across OMAP2xxx */ |
| 53 | extern struct omap_hwmod_irq_info omap2xxx_timer12_mpu_irqs[]; |
Paul Walmsley | d826ebf | 2011-07-09 19:14:07 -0600 | [diff] [blame] | 54 | extern struct omap_hwmod_dma_info omap2xxx_dss_sdma_chs[]; |
| 55 | |
| 56 | /* Common IP block data */ |
| 57 | extern struct omap_hwmod_dma_info omap2_uart1_sdma_reqs[]; |
| 58 | extern struct omap_hwmod_dma_info omap2_uart2_sdma_reqs[]; |
| 59 | extern struct omap_hwmod_dma_info omap2_uart3_sdma_reqs[]; |
| 60 | extern struct omap_hwmod_dma_info omap2_i2c1_sdma_reqs[]; |
| 61 | extern struct omap_hwmod_dma_info omap2_i2c2_sdma_reqs[]; |
| 62 | extern struct omap_hwmod_dma_info omap2_mcspi1_sdma_reqs[]; |
| 63 | extern struct omap_hwmod_dma_info omap2_mcspi2_sdma_reqs[]; |
| 64 | extern struct omap_hwmod_dma_info omap2_mcbsp1_sdma_reqs[]; |
| 65 | extern struct omap_hwmod_dma_info omap2_mcbsp2_sdma_reqs[]; |
| 66 | |
| 67 | /* Common IP block data on OMAP2430/OMAP3 */ |
| 68 | extern struct omap_hwmod_dma_info omap2_mcbsp3_sdma_reqs[]; |
Paul Walmsley | 0d619a8 | 2011-07-09 19:14:07 -0600 | [diff] [blame] | 69 | |
| 70 | /* Common IP block data across OMAP2/3 */ |
| 71 | extern struct omap_hwmod_irq_info omap2_timer1_mpu_irqs[]; |
| 72 | extern struct omap_hwmod_irq_info omap2_timer2_mpu_irqs[]; |
| 73 | extern struct omap_hwmod_irq_info omap2_timer3_mpu_irqs[]; |
| 74 | extern struct omap_hwmod_irq_info omap2_timer4_mpu_irqs[]; |
| 75 | extern struct omap_hwmod_irq_info omap2_timer5_mpu_irqs[]; |
| 76 | extern struct omap_hwmod_irq_info omap2_timer6_mpu_irqs[]; |
| 77 | extern struct omap_hwmod_irq_info omap2_timer7_mpu_irqs[]; |
| 78 | extern struct omap_hwmod_irq_info omap2_timer8_mpu_irqs[]; |
| 79 | extern struct omap_hwmod_irq_info omap2_timer9_mpu_irqs[]; |
| 80 | extern struct omap_hwmod_irq_info omap2_timer10_mpu_irqs[]; |
| 81 | extern struct omap_hwmod_irq_info omap2_timer11_mpu_irqs[]; |
| 82 | extern struct omap_hwmod_irq_info omap2_uart1_mpu_irqs[]; |
| 83 | extern struct omap_hwmod_irq_info omap2_uart2_mpu_irqs[]; |
| 84 | extern struct omap_hwmod_irq_info omap2_uart3_mpu_irqs[]; |
| 85 | extern struct omap_hwmod_irq_info omap2_dispc_irqs[]; |
| 86 | extern struct omap_hwmod_irq_info omap2_i2c1_mpu_irqs[]; |
| 87 | extern struct omap_hwmod_irq_info omap2_i2c2_mpu_irqs[]; |
| 88 | extern struct omap_hwmod_irq_info omap2_gpio1_irqs[]; |
| 89 | extern struct omap_hwmod_irq_info omap2_gpio2_irqs[]; |
| 90 | extern struct omap_hwmod_irq_info omap2_gpio3_irqs[]; |
| 91 | extern struct omap_hwmod_irq_info omap2_gpio4_irqs[]; |
| 92 | extern struct omap_hwmod_irq_info omap2_dma_system_irqs[]; |
| 93 | extern struct omap_hwmod_irq_info omap2_mcspi1_mpu_irqs[]; |
| 94 | extern struct omap_hwmod_irq_info omap2_mcspi2_mpu_irqs[]; |
| 95 | |
Paul Walmsley | 43b4099 | 2010-02-22 22:09:34 -0700 | [diff] [blame] | 96 | /* OMAP hwmod classes - forward declarations */ |
| 97 | extern struct omap_hwmod_class l3_hwmod_class; |
| 98 | extern struct omap_hwmod_class l4_hwmod_class; |
| 99 | extern struct omap_hwmod_class mpu_hwmod_class; |
Kevin Hilman | 90709ae | 2010-07-26 16:34:31 -0600 | [diff] [blame] | 100 | extern struct omap_hwmod_class iva_hwmod_class; |
Paul Walmsley | 273b946 | 2011-07-09 19:14:08 -0600 | [diff] [blame] | 101 | extern struct omap_hwmod_class omap2_uart_class; |
| 102 | extern struct omap_hwmod_class omap2_dss_hwmod_class; |
| 103 | extern struct omap_hwmod_class omap2_dispc_hwmod_class; |
| 104 | extern struct omap_hwmod_class omap2_rfbi_hwmod_class; |
| 105 | extern struct omap_hwmod_class omap2_venc_hwmod_class; |
Paul Walmsley | 43b4099 | 2010-02-22 22:09:34 -0700 | [diff] [blame] | 106 | |
Paul Walmsley | 273b946 | 2011-07-09 19:14:08 -0600 | [diff] [blame] | 107 | extern struct omap_hwmod_class omap2xxx_timer_hwmod_class; |
| 108 | extern struct omap_hwmod_class omap2xxx_wd_timer_hwmod_class; |
| 109 | extern struct omap_hwmod_class omap2xxx_gpio_hwmod_class; |
| 110 | extern struct omap_hwmod_class omap2xxx_dma_hwmod_class; |
| 111 | extern struct omap_hwmod_class omap2xxx_mailbox_hwmod_class; |
| 112 | extern struct omap_hwmod_class omap2xxx_mcspi_class; |
Paul Walmsley | ded1138 | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 113 | |
Paul Walmsley | 43b4099 | 2010-02-22 22:09:34 -0700 | [diff] [blame] | 114 | #endif |