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 | |
Archit Taneja | b923d40 | 2011-10-06 18:04:08 -0600 | [diff] [blame] | 19 | #include "display.h" |
| 20 | |
Paul Walmsley | ded1138 | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 21 | /* Common address space across OMAP2xxx */ |
Paul Walmsley | ded1138 | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 22 | extern struct omap_hwmod_addr_space omap2xxx_mcbsp2_addrs[]; |
| 23 | |
| 24 | /* Common address space across OMAP2xxx/3xxx */ |
| 25 | extern struct omap_hwmod_addr_space omap2_i2c1_addr_space[]; |
| 26 | extern struct omap_hwmod_addr_space omap2_i2c2_addr_space[]; |
| 27 | extern struct omap_hwmod_addr_space omap2_dss_addrs[]; |
| 28 | extern struct omap_hwmod_addr_space omap2_dss_dispc_addrs[]; |
| 29 | extern struct omap_hwmod_addr_space omap2_dss_rfbi_addrs[]; |
| 30 | extern struct omap_hwmod_addr_space omap2_dss_venc_addrs[]; |
| 31 | extern struct omap_hwmod_addr_space omap2_timer10_addrs[]; |
| 32 | extern struct omap_hwmod_addr_space omap2_timer11_addrs[]; |
| 33 | extern struct omap_hwmod_addr_space omap2430_mmc1_addr_space[]; |
| 34 | extern struct omap_hwmod_addr_space omap2430_mmc2_addr_space[]; |
| 35 | extern struct omap_hwmod_addr_space omap2_mcspi1_addr_space[]; |
| 36 | extern struct omap_hwmod_addr_space omap2_mcspi2_addr_space[]; |
| 37 | extern struct omap_hwmod_addr_space omap2430_mcspi3_addr_space[]; |
| 38 | extern struct omap_hwmod_addr_space omap2_dma_system_addrs[]; |
| 39 | extern struct omap_hwmod_addr_space omap2_mailbox_addrs[]; |
| 40 | extern struct omap_hwmod_addr_space omap2_mcbsp1_addrs[]; |
Paul Walmsley | 03d830e | 2012-05-08 11:34:27 -0600 | [diff] [blame] | 41 | extern struct omap_hwmod_addr_space omap2_hdq1w_addr_space[]; |
Paul Walmsley | ded1138 | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 42 | |
Paul Walmsley | 0d619a8 | 2011-07-09 19:14:07 -0600 | [diff] [blame] | 43 | /* Common IP block data across OMAP2xxx */ |
| 44 | extern struct omap_hwmod_irq_info omap2xxx_timer12_mpu_irqs[]; |
Paul Walmsley | d826ebf | 2011-07-09 19:14:07 -0600 | [diff] [blame] | 45 | extern struct omap_hwmod_dma_info omap2xxx_dss_sdma_chs[]; |
Paul Walmsley | cb48427 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 46 | extern struct omap_gpio_dev_attr omap2xxx_gpio_dev_attr; |
| 47 | extern struct omap_hwmod omap2xxx_l3_main_hwmod; |
| 48 | extern struct omap_hwmod omap2xxx_l4_core_hwmod; |
| 49 | extern struct omap_hwmod omap2xxx_l4_wkup_hwmod; |
| 50 | extern struct omap_hwmod omap2xxx_mpu_hwmod; |
| 51 | extern struct omap_hwmod omap2xxx_iva_hwmod; |
| 52 | extern struct omap_hwmod omap2xxx_timer1_hwmod; |
| 53 | extern struct omap_hwmod omap2xxx_timer2_hwmod; |
| 54 | extern struct omap_hwmod omap2xxx_timer3_hwmod; |
| 55 | extern struct omap_hwmod omap2xxx_timer4_hwmod; |
| 56 | extern struct omap_hwmod omap2xxx_timer5_hwmod; |
| 57 | extern struct omap_hwmod omap2xxx_timer6_hwmod; |
| 58 | extern struct omap_hwmod omap2xxx_timer7_hwmod; |
| 59 | extern struct omap_hwmod omap2xxx_timer8_hwmod; |
| 60 | extern struct omap_hwmod omap2xxx_timer9_hwmod; |
| 61 | extern struct omap_hwmod omap2xxx_timer10_hwmod; |
| 62 | extern struct omap_hwmod omap2xxx_timer11_hwmod; |
| 63 | extern struct omap_hwmod omap2xxx_timer12_hwmod; |
| 64 | extern struct omap_hwmod omap2xxx_wd_timer2_hwmod; |
| 65 | extern struct omap_hwmod omap2xxx_uart1_hwmod; |
| 66 | extern struct omap_hwmod omap2xxx_uart2_hwmod; |
| 67 | extern struct omap_hwmod omap2xxx_uart3_hwmod; |
| 68 | extern struct omap_hwmod omap2xxx_dss_core_hwmod; |
| 69 | extern struct omap_hwmod omap2xxx_dss_dispc_hwmod; |
| 70 | extern struct omap_hwmod omap2xxx_dss_rfbi_hwmod; |
| 71 | extern struct omap_hwmod omap2xxx_dss_venc_hwmod; |
| 72 | extern struct omap_hwmod omap2xxx_gpio1_hwmod; |
| 73 | extern struct omap_hwmod omap2xxx_gpio2_hwmod; |
| 74 | extern struct omap_hwmod omap2xxx_gpio3_hwmod; |
| 75 | extern struct omap_hwmod omap2xxx_gpio4_hwmod; |
| 76 | extern struct omap_hwmod omap2xxx_mcspi1_hwmod; |
| 77 | extern struct omap_hwmod omap2xxx_mcspi2_hwmod; |
Vaibhav Hiremath | c8d82ff | 2012-05-08 11:34:30 -0600 | [diff] [blame^] | 78 | extern struct omap_hwmod omap2xxx_counter_32k_hwmod; |
Paul Walmsley | d826ebf | 2011-07-09 19:14:07 -0600 | [diff] [blame] | 79 | |
Paul Walmsley | 6a29755 | 2012-04-19 04:04:34 -0600 | [diff] [blame] | 80 | /* Common interface data across OMAP2xxx */ |
| 81 | extern struct omap_hwmod_ocp_if omap2xxx_l3_main__l4_core; |
| 82 | extern struct omap_hwmod_ocp_if omap2xxx_mpu__l3_main; |
| 83 | extern struct omap_hwmod_ocp_if omap2xxx_dss__l3; |
| 84 | extern struct omap_hwmod_ocp_if omap2xxx_l4_core__l4_wkup; |
| 85 | extern struct omap_hwmod_ocp_if omap2_l4_core__uart1; |
| 86 | extern struct omap_hwmod_ocp_if omap2_l4_core__uart2; |
| 87 | extern struct omap_hwmod_ocp_if omap2_l4_core__uart3; |
| 88 | extern struct omap_hwmod_ocp_if omap2xxx_l4_core__mcspi1; |
| 89 | extern struct omap_hwmod_ocp_if omap2xxx_l4_core__mcspi2; |
| 90 | extern struct omap_hwmod_ocp_if omap2xxx_l4_core__timer2; |
| 91 | extern struct omap_hwmod_ocp_if omap2xxx_l4_core__timer3; |
| 92 | extern struct omap_hwmod_ocp_if omap2xxx_l4_core__timer4; |
| 93 | extern struct omap_hwmod_ocp_if omap2xxx_l4_core__timer5; |
| 94 | extern struct omap_hwmod_ocp_if omap2xxx_l4_core__timer6; |
| 95 | extern struct omap_hwmod_ocp_if omap2xxx_l4_core__timer7; |
| 96 | extern struct omap_hwmod_ocp_if omap2xxx_l4_core__timer8; |
| 97 | extern struct omap_hwmod_ocp_if omap2xxx_l4_core__timer9; |
| 98 | extern struct omap_hwmod_ocp_if omap2xxx_l4_core__timer10; |
| 99 | extern struct omap_hwmod_ocp_if omap2xxx_l4_core__timer11; |
| 100 | extern struct omap_hwmod_ocp_if omap2xxx_l4_core__timer12; |
| 101 | extern struct omap_hwmod_ocp_if omap2xxx_l4_core__dss; |
| 102 | extern struct omap_hwmod_ocp_if omap2xxx_l4_core__dss_dispc; |
| 103 | extern struct omap_hwmod_ocp_if omap2xxx_l4_core__dss_rfbi; |
| 104 | extern struct omap_hwmod_ocp_if omap2xxx_l4_core__dss_venc; |
| 105 | |
Paul Walmsley | d826ebf | 2011-07-09 19:14:07 -0600 | [diff] [blame] | 106 | /* Common IP block data */ |
| 107 | extern struct omap_hwmod_dma_info omap2_uart1_sdma_reqs[]; |
| 108 | extern struct omap_hwmod_dma_info omap2_uart2_sdma_reqs[]; |
| 109 | extern struct omap_hwmod_dma_info omap2_uart3_sdma_reqs[]; |
| 110 | extern struct omap_hwmod_dma_info omap2_i2c1_sdma_reqs[]; |
| 111 | extern struct omap_hwmod_dma_info omap2_i2c2_sdma_reqs[]; |
| 112 | extern struct omap_hwmod_dma_info omap2_mcspi1_sdma_reqs[]; |
| 113 | extern struct omap_hwmod_dma_info omap2_mcspi2_sdma_reqs[]; |
| 114 | extern struct omap_hwmod_dma_info omap2_mcbsp1_sdma_reqs[]; |
| 115 | extern struct omap_hwmod_dma_info omap2_mcbsp2_sdma_reqs[]; |
| 116 | |
| 117 | /* Common IP block data on OMAP2430/OMAP3 */ |
| 118 | extern struct omap_hwmod_dma_info omap2_mcbsp3_sdma_reqs[]; |
Paul Walmsley | 0d619a8 | 2011-07-09 19:14:07 -0600 | [diff] [blame] | 119 | |
| 120 | /* Common IP block data across OMAP2/3 */ |
| 121 | extern struct omap_hwmod_irq_info omap2_timer1_mpu_irqs[]; |
| 122 | extern struct omap_hwmod_irq_info omap2_timer2_mpu_irqs[]; |
| 123 | extern struct omap_hwmod_irq_info omap2_timer3_mpu_irqs[]; |
| 124 | extern struct omap_hwmod_irq_info omap2_timer4_mpu_irqs[]; |
| 125 | extern struct omap_hwmod_irq_info omap2_timer5_mpu_irqs[]; |
| 126 | extern struct omap_hwmod_irq_info omap2_timer6_mpu_irqs[]; |
| 127 | extern struct omap_hwmod_irq_info omap2_timer7_mpu_irqs[]; |
| 128 | extern struct omap_hwmod_irq_info omap2_timer8_mpu_irqs[]; |
| 129 | extern struct omap_hwmod_irq_info omap2_timer9_mpu_irqs[]; |
| 130 | extern struct omap_hwmod_irq_info omap2_timer10_mpu_irqs[]; |
| 131 | extern struct omap_hwmod_irq_info omap2_timer11_mpu_irqs[]; |
| 132 | extern struct omap_hwmod_irq_info omap2_uart1_mpu_irqs[]; |
| 133 | extern struct omap_hwmod_irq_info omap2_uart2_mpu_irqs[]; |
| 134 | extern struct omap_hwmod_irq_info omap2_uart3_mpu_irqs[]; |
| 135 | extern struct omap_hwmod_irq_info omap2_dispc_irqs[]; |
| 136 | extern struct omap_hwmod_irq_info omap2_i2c1_mpu_irqs[]; |
| 137 | extern struct omap_hwmod_irq_info omap2_i2c2_mpu_irqs[]; |
| 138 | extern struct omap_hwmod_irq_info omap2_gpio1_irqs[]; |
| 139 | extern struct omap_hwmod_irq_info omap2_gpio2_irqs[]; |
| 140 | extern struct omap_hwmod_irq_info omap2_gpio3_irqs[]; |
| 141 | extern struct omap_hwmod_irq_info omap2_gpio4_irqs[]; |
| 142 | extern struct omap_hwmod_irq_info omap2_dma_system_irqs[]; |
| 143 | extern struct omap_hwmod_irq_info omap2_mcspi1_mpu_irqs[]; |
| 144 | extern struct omap_hwmod_irq_info omap2_mcspi2_mpu_irqs[]; |
Paul Walmsley | 6a29755 | 2012-04-19 04:04:34 -0600 | [diff] [blame] | 145 | extern struct omap_hwmod_addr_space omap2xxx_timer12_addrs[]; |
Paul Walmsley | 03d830e | 2012-05-08 11:34:27 -0600 | [diff] [blame] | 146 | extern struct omap_hwmod_irq_info omap2_hdq1w_mpu_irqs[]; |
Paul Walmsley | 0d619a8 | 2011-07-09 19:14:07 -0600 | [diff] [blame] | 147 | |
Paul Walmsley | 43b4099 | 2010-02-22 22:09:34 -0700 | [diff] [blame] | 148 | /* OMAP hwmod classes - forward declarations */ |
| 149 | extern struct omap_hwmod_class l3_hwmod_class; |
| 150 | extern struct omap_hwmod_class l4_hwmod_class; |
| 151 | extern struct omap_hwmod_class mpu_hwmod_class; |
Kevin Hilman | 90709ae | 2010-07-26 16:34:31 -0600 | [diff] [blame] | 152 | extern struct omap_hwmod_class iva_hwmod_class; |
Paul Walmsley | 273b946 | 2011-07-09 19:14:08 -0600 | [diff] [blame] | 153 | extern struct omap_hwmod_class omap2_uart_class; |
| 154 | extern struct omap_hwmod_class omap2_dss_hwmod_class; |
| 155 | extern struct omap_hwmod_class omap2_dispc_hwmod_class; |
| 156 | extern struct omap_hwmod_class omap2_rfbi_hwmod_class; |
| 157 | extern struct omap_hwmod_class omap2_venc_hwmod_class; |
Paul Walmsley | 03d830e | 2012-05-08 11:34:27 -0600 | [diff] [blame] | 158 | extern struct omap_hwmod_class_sysconfig omap2_hdq1w_sysc; |
| 159 | extern struct omap_hwmod_class omap2_hdq1w_class; |
Paul Walmsley | 43b4099 | 2010-02-22 22:09:34 -0700 | [diff] [blame] | 160 | |
Paul Walmsley | 273b946 | 2011-07-09 19:14:08 -0600 | [diff] [blame] | 161 | extern struct omap_hwmod_class omap2xxx_timer_hwmod_class; |
| 162 | extern struct omap_hwmod_class omap2xxx_wd_timer_hwmod_class; |
| 163 | extern struct omap_hwmod_class omap2xxx_gpio_hwmod_class; |
| 164 | extern struct omap_hwmod_class omap2xxx_dma_hwmod_class; |
| 165 | extern struct omap_hwmod_class omap2xxx_mailbox_hwmod_class; |
| 166 | extern struct omap_hwmod_class omap2xxx_mcspi_class; |
Paul Walmsley | ded1138 | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 167 | |
Archit Taneja | b923d40 | 2011-10-06 18:04:08 -0600 | [diff] [blame] | 168 | extern struct omap_dss_dispc_dev_attr omap2_3_dss_dispc_dev_attr; |
| 169 | |
Paul Walmsley | 43b4099 | 2010-02-22 22:09:34 -0700 | [diff] [blame] | 170 | #endif |