Paul Walmsley | 02bfc03 | 2009-09-03 20:14:05 +0300 | [diff] [blame] | 1 | /* |
Paul Walmsley | 7359154 | 2010-02-22 22:09:32 -0700 | [diff] [blame^] | 2 | * omap_hwmod_2430_data.c - hardware modules present on the OMAP2430 chips |
Paul Walmsley | 02bfc03 | 2009-09-03 20:14:05 +0300 | [diff] [blame] | 3 | * |
Paul Walmsley | 7359154 | 2010-02-22 22:09:32 -0700 | [diff] [blame^] | 4 | * Copyright (C) 2009-2010 Nokia Corporation |
Paul Walmsley | 02bfc03 | 2009-09-03 20:14:05 +0300 | [diff] [blame] | 5 | * Paul Walmsley |
| 6 | * |
| 7 | * This program is free software; you can redistribute it and/or modify |
| 8 | * it under the terms of the GNU General Public License version 2 as |
| 9 | * published by the Free Software Foundation. |
| 10 | * |
| 11 | * XXX handle crossbar/shared link difference for L3? |
Paul Walmsley | 7359154 | 2010-02-22 22:09:32 -0700 | [diff] [blame^] | 12 | * XXX these should be marked initdata for multi-OMAP kernels |
Paul Walmsley | 02bfc03 | 2009-09-03 20:14:05 +0300 | [diff] [blame] | 13 | */ |
Tony Lindgren | ce491cf | 2009-10-20 09:40:47 -0700 | [diff] [blame] | 14 | #include <plat/omap_hwmod.h> |
Paul Walmsley | 02bfc03 | 2009-09-03 20:14:05 +0300 | [diff] [blame] | 15 | #include <mach/irqs.h> |
Tony Lindgren | ce491cf | 2009-10-20 09:40:47 -0700 | [diff] [blame] | 16 | #include <plat/cpu.h> |
| 17 | #include <plat/dma.h> |
Paul Walmsley | 02bfc03 | 2009-09-03 20:14:05 +0300 | [diff] [blame] | 18 | |
| 19 | #include "prm-regbits-24xx.h" |
| 20 | |
Paul Walmsley | 7359154 | 2010-02-22 22:09:32 -0700 | [diff] [blame^] | 21 | /* |
| 22 | * OMAP2430 hardware module integration data |
| 23 | * |
| 24 | * ALl of the data in this section should be autogeneratable from the |
| 25 | * TI hardware database or other technical documentation. Data that |
| 26 | * is driver-specific or driver-kernel integration-specific belongs |
| 27 | * elsewhere. |
| 28 | */ |
| 29 | |
Paul Walmsley | 02bfc03 | 2009-09-03 20:14:05 +0300 | [diff] [blame] | 30 | static struct omap_hwmod omap2430_mpu_hwmod; |
| 31 | static struct omap_hwmod omap2430_l3_hwmod; |
| 32 | static struct omap_hwmod omap2430_l4_core_hwmod; |
| 33 | |
| 34 | /* L3 -> L4_CORE interface */ |
| 35 | static struct omap_hwmod_ocp_if omap2430_l3__l4_core = { |
| 36 | .master = &omap2430_l3_hwmod, |
| 37 | .slave = &omap2430_l4_core_hwmod, |
| 38 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 39 | }; |
| 40 | |
| 41 | /* MPU -> L3 interface */ |
| 42 | static struct omap_hwmod_ocp_if omap2430_mpu__l3 = { |
| 43 | .master = &omap2430_mpu_hwmod, |
| 44 | .slave = &omap2430_l3_hwmod, |
| 45 | .user = OCP_USER_MPU, |
| 46 | }; |
| 47 | |
| 48 | /* Slave interfaces on the L3 interconnect */ |
| 49 | static struct omap_hwmod_ocp_if *omap2430_l3_slaves[] = { |
| 50 | &omap2430_mpu__l3, |
| 51 | }; |
| 52 | |
| 53 | /* Master interfaces on the L3 interconnect */ |
| 54 | static struct omap_hwmod_ocp_if *omap2430_l3_masters[] = { |
| 55 | &omap2430_l3__l4_core, |
| 56 | }; |
| 57 | |
| 58 | /* L3 */ |
| 59 | static struct omap_hwmod omap2430_l3_hwmod = { |
| 60 | .name = "l3_hwmod", |
| 61 | .masters = omap2430_l3_masters, |
| 62 | .masters_cnt = ARRAY_SIZE(omap2430_l3_masters), |
| 63 | .slaves = omap2430_l3_slaves, |
| 64 | .slaves_cnt = ARRAY_SIZE(omap2430_l3_slaves), |
| 65 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430) |
| 66 | }; |
| 67 | |
| 68 | static struct omap_hwmod omap2430_l4_wkup_hwmod; |
| 69 | static struct omap_hwmod omap2430_mmc1_hwmod; |
| 70 | static struct omap_hwmod omap2430_mmc2_hwmod; |
| 71 | |
| 72 | /* L4_CORE -> L4_WKUP interface */ |
| 73 | static struct omap_hwmod_ocp_if omap2430_l4_core__l4_wkup = { |
| 74 | .master = &omap2430_l4_core_hwmod, |
| 75 | .slave = &omap2430_l4_wkup_hwmod, |
| 76 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 77 | }; |
| 78 | |
| 79 | /* Slave interfaces on the L4_CORE interconnect */ |
| 80 | static struct omap_hwmod_ocp_if *omap2430_l4_core_slaves[] = { |
| 81 | &omap2430_l3__l4_core, |
| 82 | }; |
| 83 | |
| 84 | /* Master interfaces on the L4_CORE interconnect */ |
| 85 | static struct omap_hwmod_ocp_if *omap2430_l4_core_masters[] = { |
| 86 | &omap2430_l4_core__l4_wkup, |
| 87 | }; |
| 88 | |
| 89 | /* L4 CORE */ |
| 90 | static struct omap_hwmod omap2430_l4_core_hwmod = { |
| 91 | .name = "l4_core_hwmod", |
| 92 | .masters = omap2430_l4_core_masters, |
| 93 | .masters_cnt = ARRAY_SIZE(omap2430_l4_core_masters), |
| 94 | .slaves = omap2430_l4_core_slaves, |
| 95 | .slaves_cnt = ARRAY_SIZE(omap2430_l4_core_slaves), |
| 96 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430) |
| 97 | }; |
| 98 | |
| 99 | /* Slave interfaces on the L4_WKUP interconnect */ |
| 100 | static struct omap_hwmod_ocp_if *omap2430_l4_wkup_slaves[] = { |
| 101 | &omap2430_l4_core__l4_wkup, |
| 102 | }; |
| 103 | |
| 104 | /* Master interfaces on the L4_WKUP interconnect */ |
| 105 | static struct omap_hwmod_ocp_if *omap2430_l4_wkup_masters[] = { |
| 106 | }; |
| 107 | |
| 108 | /* L4 WKUP */ |
| 109 | static struct omap_hwmod omap2430_l4_wkup_hwmod = { |
| 110 | .name = "l4_wkup_hwmod", |
| 111 | .masters = omap2430_l4_wkup_masters, |
| 112 | .masters_cnt = ARRAY_SIZE(omap2430_l4_wkup_masters), |
| 113 | .slaves = omap2430_l4_wkup_slaves, |
| 114 | .slaves_cnt = ARRAY_SIZE(omap2430_l4_wkup_slaves), |
| 115 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430) |
| 116 | }; |
| 117 | |
| 118 | /* Master interfaces on the MPU device */ |
| 119 | static struct omap_hwmod_ocp_if *omap2430_mpu_masters[] = { |
| 120 | &omap2430_mpu__l3, |
| 121 | }; |
| 122 | |
| 123 | /* MPU */ |
| 124 | static struct omap_hwmod omap2430_mpu_hwmod = { |
| 125 | .name = "mpu_hwmod", |
Paul Walmsley | 50ebdac | 2010-02-22 22:09:31 -0700 | [diff] [blame] | 126 | .main_clk = "mpu_ck", |
Paul Walmsley | 02bfc03 | 2009-09-03 20:14:05 +0300 | [diff] [blame] | 127 | .masters = omap2430_mpu_masters, |
| 128 | .masters_cnt = ARRAY_SIZE(omap2430_mpu_masters), |
| 129 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430), |
| 130 | }; |
| 131 | |
| 132 | static __initdata struct omap_hwmod *omap2430_hwmods[] = { |
| 133 | &omap2430_l3_hwmod, |
| 134 | &omap2430_l4_core_hwmod, |
| 135 | &omap2430_l4_wkup_hwmod, |
| 136 | &omap2430_mpu_hwmod, |
| 137 | NULL, |
| 138 | }; |
| 139 | |
Paul Walmsley | 7359154 | 2010-02-22 22:09:32 -0700 | [diff] [blame^] | 140 | int __init omap2430_hwmod_init(void) |
| 141 | { |
| 142 | return omap_hwmod_init(omap2430_hwmods); |
| 143 | } |
Paul Walmsley | 02bfc03 | 2009-09-03 20:14:05 +0300 | [diff] [blame] | 144 | |
| 145 | |