diff options
author | Tony Lindgren <tony@atomide.com> | 2014-07-23 04:26:02 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2014-07-23 04:26:02 -0400 |
commit | 3965f5ba0489c01f419216c8909965b9a6a39388 (patch) | |
tree | d2ef28248e014676cae80d0084a1c40557237bbd /arch/arm/mach-omap2 | |
parent | ecf4c7938fe10aabdb962187719911d345bc20b1 (diff) | |
parent | cbf14f3ab9bd6295b345fc812f08ddd844fb183e (diff) |
Merge branch 'omap-for-v3.17/mailbox' into omap-for-v3.17/soc
Diffstat (limited to 'arch/arm/mach-omap2')
-rw-r--r-- | arch/arm/mach-omap2/devices.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap2/omap_hwmod_2420_data.c | 14 | ||||
-rw-r--r-- | arch/arm/mach-omap2/omap_hwmod_2430_data.c | 13 | ||||
-rw-r--r-- | arch/arm/mach-omap2/omap_hwmod_2xxx_3xxx_interconnect_data.c | 9 | ||||
-rw-r--r-- | arch/arm/mach-omap2/omap_hwmod_33xx_43xx_interconnect_data.c | 10 | ||||
-rw-r--r-- | arch/arm/mach-omap2/omap_hwmod_44xx_data.c | 10 | ||||
-rw-r--r-- | arch/arm/mach-omap2/omap_hwmod_7xx_data.c | 305 | ||||
-rw-r--r-- | arch/arm/mach-omap2/omap_hwmod_common_data.h | 1 |
8 files changed, 306 insertions, 58 deletions
diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c index 592ba0a0ecf3..708eb7db630c 100644 --- a/arch/arm/mach-omap2/devices.c +++ b/arch/arm/mach-omap2/devices.c | |||
@@ -460,9 +460,9 @@ static int __init omap2_init_devices(void) | |||
460 | omap_init_audio(); | 460 | omap_init_audio(); |
461 | omap_init_camera(); | 461 | omap_init_camera(); |
462 | omap_init_hdmi_audio(); | 462 | omap_init_hdmi_audio(); |
463 | omap_init_mbox(); | ||
464 | /* If dtb is there, the devices will be created dynamically */ | 463 | /* If dtb is there, the devices will be created dynamically */ |
465 | if (!of_have_populated_dt()) { | 464 | if (!of_have_populated_dt()) { |
465 | omap_init_mbox(); | ||
466 | omap_init_mcspi(); | 466 | omap_init_mcspi(); |
467 | omap_init_sham(); | 467 | omap_init_sham(); |
468 | omap_init_aes(); | 468 | omap_init_aes(); |
diff --git a/arch/arm/mach-omap2/omap_hwmod_2420_data.c b/arch/arm/mach-omap2/omap_hwmod_2420_data.c index 2f15979c2e9c..65b1647092bd 100644 --- a/arch/arm/mach-omap2/omap_hwmod_2420_data.c +++ b/arch/arm/mach-omap2/omap_hwmod_2420_data.c | |||
@@ -16,7 +16,6 @@ | |||
16 | #include <linux/i2c-omap.h> | 16 | #include <linux/i2c-omap.h> |
17 | #include <linux/platform_data/spi-omap2-mcspi.h> | 17 | #include <linux/platform_data/spi-omap2-mcspi.h> |
18 | #include <linux/omap-dma.h> | 18 | #include <linux/omap-dma.h> |
19 | #include <linux/platform_data/mailbox-omap.h> | ||
20 | #include <plat/dmtimer.h> | 19 | #include <plat/dmtimer.h> |
21 | 20 | ||
22 | #include "omap_hwmod.h" | 21 | #include "omap_hwmod.h" |
@@ -163,18 +162,6 @@ static struct omap_hwmod omap2420_dma_system_hwmod = { | |||
163 | }; | 162 | }; |
164 | 163 | ||
165 | /* mailbox */ | 164 | /* mailbox */ |
166 | static struct omap_mbox_dev_info omap2420_mailbox_info[] = { | ||
167 | { .name = "dsp", .tx_id = 0, .rx_id = 1, .irq_id = 0, .usr_id = 0 }, | ||
168 | { .name = "iva", .tx_id = 2, .rx_id = 3, .irq_id = 1, .usr_id = 3 }, | ||
169 | }; | ||
170 | |||
171 | static struct omap_mbox_pdata omap2420_mailbox_attrs = { | ||
172 | .num_users = 4, | ||
173 | .num_fifos = 6, | ||
174 | .info_cnt = ARRAY_SIZE(omap2420_mailbox_info), | ||
175 | .info = omap2420_mailbox_info, | ||
176 | }; | ||
177 | |||
178 | static struct omap_hwmod omap2420_mailbox_hwmod = { | 165 | static struct omap_hwmod omap2420_mailbox_hwmod = { |
179 | .name = "mailbox", | 166 | .name = "mailbox", |
180 | .class = &omap2xxx_mailbox_hwmod_class, | 167 | .class = &omap2xxx_mailbox_hwmod_class, |
@@ -188,7 +175,6 @@ static struct omap_hwmod omap2420_mailbox_hwmod = { | |||
188 | .idlest_idle_bit = OMAP24XX_ST_MAILBOXES_SHIFT, | 175 | .idlest_idle_bit = OMAP24XX_ST_MAILBOXES_SHIFT, |
189 | }, | 176 | }, |
190 | }, | 177 | }, |
191 | .dev_attr = &omap2420_mailbox_attrs, | ||
192 | }; | 178 | }; |
193 | 179 | ||
194 | /* | 180 | /* |
diff --git a/arch/arm/mach-omap2/omap_hwmod_2430_data.c b/arch/arm/mach-omap2/omap_hwmod_2430_data.c index 6d1b60902179..c2555cb95e71 100644 --- a/arch/arm/mach-omap2/omap_hwmod_2430_data.c +++ b/arch/arm/mach-omap2/omap_hwmod_2430_data.c | |||
@@ -17,7 +17,6 @@ | |||
17 | #include <linux/platform_data/asoc-ti-mcbsp.h> | 17 | #include <linux/platform_data/asoc-ti-mcbsp.h> |
18 | #include <linux/platform_data/spi-omap2-mcspi.h> | 18 | #include <linux/platform_data/spi-omap2-mcspi.h> |
19 | #include <linux/omap-dma.h> | 19 | #include <linux/omap-dma.h> |
20 | #include <linux/platform_data/mailbox-omap.h> | ||
21 | #include <plat/dmtimer.h> | 20 | #include <plat/dmtimer.h> |
22 | 21 | ||
23 | #include "omap_hwmod.h" | 22 | #include "omap_hwmod.h" |
@@ -161,17 +160,6 @@ static struct omap_hwmod omap2430_dma_system_hwmod = { | |||
161 | }; | 160 | }; |
162 | 161 | ||
163 | /* mailbox */ | 162 | /* mailbox */ |
164 | static struct omap_mbox_dev_info omap2430_mailbox_info[] = { | ||
165 | { .name = "dsp", .tx_id = 0, .rx_id = 1 }, | ||
166 | }; | ||
167 | |||
168 | static struct omap_mbox_pdata omap2430_mailbox_attrs = { | ||
169 | .num_users = 4, | ||
170 | .num_fifos = 6, | ||
171 | .info_cnt = ARRAY_SIZE(omap2430_mailbox_info), | ||
172 | .info = omap2430_mailbox_info, | ||
173 | }; | ||
174 | |||
175 | static struct omap_hwmod omap2430_mailbox_hwmod = { | 163 | static struct omap_hwmod omap2430_mailbox_hwmod = { |
176 | .name = "mailbox", | 164 | .name = "mailbox", |
177 | .class = &omap2xxx_mailbox_hwmod_class, | 165 | .class = &omap2xxx_mailbox_hwmod_class, |
@@ -185,7 +173,6 @@ static struct omap_hwmod omap2430_mailbox_hwmod = { | |||
185 | .idlest_idle_bit = OMAP24XX_ST_MAILBOXES_SHIFT, | 173 | .idlest_idle_bit = OMAP24XX_ST_MAILBOXES_SHIFT, |
186 | }, | 174 | }, |
187 | }, | 175 | }, |
188 | .dev_attr = &omap2430_mailbox_attrs, | ||
189 | }; | 176 | }; |
190 | 177 | ||
191 | /* mcspi3 */ | 178 | /* mcspi3 */ |
diff --git a/arch/arm/mach-omap2/omap_hwmod_2xxx_3xxx_interconnect_data.c b/arch/arm/mach-omap2/omap_hwmod_2xxx_3xxx_interconnect_data.c index 0413daba2dba..c1e98d589100 100644 --- a/arch/arm/mach-omap2/omap_hwmod_2xxx_3xxx_interconnect_data.c +++ b/arch/arm/mach-omap2/omap_hwmod_2xxx_3xxx_interconnect_data.c | |||
@@ -152,15 +152,6 @@ struct omap_hwmod_addr_space omap2_dma_system_addrs[] = { | |||
152 | { } | 152 | { } |
153 | }; | 153 | }; |
154 | 154 | ||
155 | struct omap_hwmod_addr_space omap2_mailbox_addrs[] = { | ||
156 | { | ||
157 | .pa_start = 0x48094000, | ||
158 | .pa_end = 0x48094000 + SZ_512 - 1, | ||
159 | .flags = ADDR_TYPE_RT, | ||
160 | }, | ||
161 | { } | ||
162 | }; | ||
163 | |||
164 | struct omap_hwmod_addr_space omap2_mcbsp1_addrs[] = { | 155 | struct omap_hwmod_addr_space omap2_mcbsp1_addrs[] = { |
165 | { | 156 | { |
166 | .name = "mpu", | 157 | .name = "mpu", |
diff --git a/arch/arm/mach-omap2/omap_hwmod_33xx_43xx_interconnect_data.c b/arch/arm/mach-omap2/omap_hwmod_33xx_43xx_interconnect_data.c index e2db378b849e..8f5989d48a80 100644 --- a/arch/arm/mach-omap2/omap_hwmod_33xx_43xx_interconnect_data.c +++ b/arch/arm/mach-omap2/omap_hwmod_33xx_43xx_interconnect_data.c | |||
@@ -317,21 +317,11 @@ struct omap_hwmod_ocp_if am33xx_l4_per__i2c3 = { | |||
317 | .user = OCP_USER_MPU, | 317 | .user = OCP_USER_MPU, |
318 | }; | 318 | }; |
319 | 319 | ||
320 | static struct omap_hwmod_addr_space am33xx_mailbox_addrs[] = { | ||
321 | { | ||
322 | .pa_start = 0x480C8000, | ||
323 | .pa_end = 0x480C8000 + (SZ_4K - 1), | ||
324 | .flags = ADDR_TYPE_RT | ||
325 | }, | ||
326 | { } | ||
327 | }; | ||
328 | |||
329 | /* l4 ls -> mailbox */ | 320 | /* l4 ls -> mailbox */ |
330 | struct omap_hwmod_ocp_if am33xx_l4_per__mailbox = { | 321 | struct omap_hwmod_ocp_if am33xx_l4_per__mailbox = { |
331 | .master = &am33xx_l4_ls_hwmod, | 322 | .master = &am33xx_l4_ls_hwmod, |
332 | .slave = &am33xx_mailbox_hwmod, | 323 | .slave = &am33xx_mailbox_hwmod, |
333 | .clk = "l4ls_gclk", | 324 | .clk = "l4ls_gclk", |
334 | .addr = am33xx_mailbox_addrs, | ||
335 | .user = OCP_USER_MPU, | 325 | .user = OCP_USER_MPU, |
336 | }; | 326 | }; |
337 | 327 | ||
diff --git a/arch/arm/mach-omap2/omap_hwmod_44xx_data.c b/arch/arm/mach-omap2/omap_hwmod_44xx_data.c index 41e54f759934..5e61b8c0944b 100644 --- a/arch/arm/mach-omap2/omap_hwmod_44xx_data.c +++ b/arch/arm/mach-omap2/omap_hwmod_44xx_data.c | |||
@@ -4142,21 +4142,11 @@ static struct omap_hwmod_ocp_if omap44xx_l4_wkup__kbd = { | |||
4142 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 4142 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
4143 | }; | 4143 | }; |
4144 | 4144 | ||
4145 | static struct omap_hwmod_addr_space omap44xx_mailbox_addrs[] = { | ||
4146 | { | ||
4147 | .pa_start = 0x4a0f4000, | ||
4148 | .pa_end = 0x4a0f41ff, | ||
4149 | .flags = ADDR_TYPE_RT | ||
4150 | }, | ||
4151 | { } | ||
4152 | }; | ||
4153 | |||
4154 | /* l4_cfg -> mailbox */ | 4145 | /* l4_cfg -> mailbox */ |
4155 | static struct omap_hwmod_ocp_if omap44xx_l4_cfg__mailbox = { | 4146 | static struct omap_hwmod_ocp_if omap44xx_l4_cfg__mailbox = { |
4156 | .master = &omap44xx_l4_cfg_hwmod, | 4147 | .master = &omap44xx_l4_cfg_hwmod, |
4157 | .slave = &omap44xx_mailbox_hwmod, | 4148 | .slave = &omap44xx_mailbox_hwmod, |
4158 | .clk = "l4_div_ck", | 4149 | .clk = "l4_div_ck", |
4159 | .addr = omap44xx_mailbox_addrs, | ||
4160 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 4150 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
4161 | }; | 4151 | }; |
4162 | 4152 | ||
diff --git a/arch/arm/mach-omap2/omap_hwmod_7xx_data.c b/arch/arm/mach-omap2/omap_hwmod_7xx_data.c index e3562624ae48..68f6d251cca6 100644 --- a/arch/arm/mach-omap2/omap_hwmod_7xx_data.c +++ b/arch/arm/mach-omap2/omap_hwmod_7xx_data.c | |||
@@ -980,6 +980,194 @@ static struct omap_hwmod dra7xx_i2c5_hwmod = { | |||
980 | }; | 980 | }; |
981 | 981 | ||
982 | /* | 982 | /* |
983 | * 'mailbox' class | ||
984 | * | ||
985 | */ | ||
986 | |||
987 | static struct omap_hwmod_class_sysconfig dra7xx_mailbox_sysc = { | ||
988 | .rev_offs = 0x0000, | ||
989 | .sysc_offs = 0x0010, | ||
990 | .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE | | ||
991 | SYSC_HAS_SOFTRESET), | ||
992 | .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART), | ||
993 | .sysc_fields = &omap_hwmod_sysc_type2, | ||
994 | }; | ||
995 | |||
996 | static struct omap_hwmod_class dra7xx_mailbox_hwmod_class = { | ||
997 | .name = "mailbox", | ||
998 | .sysc = &dra7xx_mailbox_sysc, | ||
999 | }; | ||
1000 | |||
1001 | /* mailbox1 */ | ||
1002 | static struct omap_hwmod dra7xx_mailbox1_hwmod = { | ||
1003 | .name = "mailbox1", | ||
1004 | .class = &dra7xx_mailbox_hwmod_class, | ||
1005 | .clkdm_name = "l4cfg_clkdm", | ||
1006 | .prcm = { | ||
1007 | .omap4 = { | ||
1008 | .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX1_CLKCTRL_OFFSET, | ||
1009 | .context_offs = DRA7XX_RM_L4CFG_MAILBOX1_CONTEXT_OFFSET, | ||
1010 | }, | ||
1011 | }, | ||
1012 | }; | ||
1013 | |||
1014 | /* mailbox2 */ | ||
1015 | static struct omap_hwmod dra7xx_mailbox2_hwmod = { | ||
1016 | .name = "mailbox2", | ||
1017 | .class = &dra7xx_mailbox_hwmod_class, | ||
1018 | .clkdm_name = "l4cfg_clkdm", | ||
1019 | .prcm = { | ||
1020 | .omap4 = { | ||
1021 | .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX2_CLKCTRL_OFFSET, | ||
1022 | .context_offs = DRA7XX_RM_L4CFG_MAILBOX2_CONTEXT_OFFSET, | ||
1023 | }, | ||
1024 | }, | ||
1025 | }; | ||
1026 | |||
1027 | /* mailbox3 */ | ||
1028 | static struct omap_hwmod dra7xx_mailbox3_hwmod = { | ||
1029 | .name = "mailbox3", | ||
1030 | .class = &dra7xx_mailbox_hwmod_class, | ||
1031 | .clkdm_name = "l4cfg_clkdm", | ||
1032 | .prcm = { | ||
1033 | .omap4 = { | ||
1034 | .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX3_CLKCTRL_OFFSET, | ||
1035 | .context_offs = DRA7XX_RM_L4CFG_MAILBOX3_CONTEXT_OFFSET, | ||
1036 | }, | ||
1037 | }, | ||
1038 | }; | ||
1039 | |||
1040 | /* mailbox4 */ | ||
1041 | static struct omap_hwmod dra7xx_mailbox4_hwmod = { | ||
1042 | .name = "mailbox4", | ||
1043 | .class = &dra7xx_mailbox_hwmod_class, | ||
1044 | .clkdm_name = "l4cfg_clkdm", | ||
1045 | .prcm = { | ||
1046 | .omap4 = { | ||
1047 | .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX4_CLKCTRL_OFFSET, | ||
1048 | .context_offs = DRA7XX_RM_L4CFG_MAILBOX4_CONTEXT_OFFSET, | ||
1049 | }, | ||
1050 | }, | ||
1051 | }; | ||
1052 | |||
1053 | /* mailbox5 */ | ||
1054 | static struct omap_hwmod dra7xx_mailbox5_hwmod = { | ||
1055 | .name = "mailbox5", | ||
1056 | .class = &dra7xx_mailbox_hwmod_class, | ||
1057 | .clkdm_name = "l4cfg_clkdm", | ||
1058 | .prcm = { | ||
1059 | .omap4 = { | ||
1060 | .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX5_CLKCTRL_OFFSET, | ||
1061 | .context_offs = DRA7XX_RM_L4CFG_MAILBOX5_CONTEXT_OFFSET, | ||
1062 | }, | ||
1063 | }, | ||
1064 | }; | ||
1065 | |||
1066 | /* mailbox6 */ | ||
1067 | static struct omap_hwmod dra7xx_mailbox6_hwmod = { | ||
1068 | .name = "mailbox6", | ||
1069 | .class = &dra7xx_mailbox_hwmod_class, | ||
1070 | .clkdm_name = "l4cfg_clkdm", | ||
1071 | .prcm = { | ||
1072 | .omap4 = { | ||
1073 | .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX6_CLKCTRL_OFFSET, | ||
1074 | .context_offs = DRA7XX_RM_L4CFG_MAILBOX6_CONTEXT_OFFSET, | ||
1075 | }, | ||
1076 | }, | ||
1077 | }; | ||
1078 | |||
1079 | /* mailbox7 */ | ||
1080 | static struct omap_hwmod dra7xx_mailbox7_hwmod = { | ||
1081 | .name = "mailbox7", | ||
1082 | .class = &dra7xx_mailbox_hwmod_class, | ||
1083 | .clkdm_name = "l4cfg_clkdm", | ||
1084 | .prcm = { | ||
1085 | .omap4 = { | ||
1086 | .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX7_CLKCTRL_OFFSET, | ||
1087 | .context_offs = DRA7XX_RM_L4CFG_MAILBOX7_CONTEXT_OFFSET, | ||
1088 | }, | ||
1089 | }, | ||
1090 | }; | ||
1091 | |||
1092 | /* mailbox8 */ | ||
1093 | static struct omap_hwmod dra7xx_mailbox8_hwmod = { | ||
1094 | .name = "mailbox8", | ||
1095 | .class = &dra7xx_mailbox_hwmod_class, | ||
1096 | .clkdm_name = "l4cfg_clkdm", | ||
1097 | .prcm = { | ||
1098 | .omap4 = { | ||
1099 | .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX8_CLKCTRL_OFFSET, | ||
1100 | .context_offs = DRA7XX_RM_L4CFG_MAILBOX8_CONTEXT_OFFSET, | ||
1101 | }, | ||
1102 | }, | ||
1103 | }; | ||
1104 | |||
1105 | /* mailbox9 */ | ||
1106 | static struct omap_hwmod dra7xx_mailbox9_hwmod = { | ||
1107 | .name = "mailbox9", | ||
1108 | .class = &dra7xx_mailbox_hwmod_class, | ||
1109 | .clkdm_name = "l4cfg_clkdm", | ||
1110 | .prcm = { | ||
1111 | .omap4 = { | ||
1112 | .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX9_CLKCTRL_OFFSET, | ||
1113 | .context_offs = DRA7XX_RM_L4CFG_MAILBOX9_CONTEXT_OFFSET, | ||
1114 | }, | ||
1115 | }, | ||
1116 | }; | ||
1117 | |||
1118 | /* mailbox10 */ | ||
1119 | static struct omap_hwmod dra7xx_mailbox10_hwmod = { | ||
1120 | .name = "mailbox10", | ||
1121 | .class = &dra7xx_mailbox_hwmod_class, | ||
1122 | .clkdm_name = "l4cfg_clkdm", | ||
1123 | .prcm = { | ||
1124 | .omap4 = { | ||
1125 | .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX10_CLKCTRL_OFFSET, | ||
1126 | .context_offs = DRA7XX_RM_L4CFG_MAILBOX10_CONTEXT_OFFSET, | ||
1127 | }, | ||
1128 | }, | ||
1129 | }; | ||
1130 | |||
1131 | /* mailbox11 */ | ||
1132 | static struct omap_hwmod dra7xx_mailbox11_hwmod = { | ||
1133 | .name = "mailbox11", | ||
1134 | .class = &dra7xx_mailbox_hwmod_class, | ||
1135 | .clkdm_name = "l4cfg_clkdm", | ||
1136 | .prcm = { | ||
1137 | .omap4 = { | ||
1138 | .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX11_CLKCTRL_OFFSET, | ||
1139 | .context_offs = DRA7XX_RM_L4CFG_MAILBOX11_CONTEXT_OFFSET, | ||
1140 | }, | ||
1141 | }, | ||
1142 | }; | ||
1143 | |||
1144 | /* mailbox12 */ | ||
1145 | static struct omap_hwmod dra7xx_mailbox12_hwmod = { | ||
1146 | .name = "mailbox12", | ||
1147 | .class = &dra7xx_mailbox_hwmod_class, | ||
1148 | .clkdm_name = "l4cfg_clkdm", | ||
1149 | .prcm = { | ||
1150 | .omap4 = { | ||
1151 | .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX12_CLKCTRL_OFFSET, | ||
1152 | .context_offs = DRA7XX_RM_L4CFG_MAILBOX12_CONTEXT_OFFSET, | ||
1153 | }, | ||
1154 | }, | ||
1155 | }; | ||
1156 | |||
1157 | /* mailbox13 */ | ||
1158 | static struct omap_hwmod dra7xx_mailbox13_hwmod = { | ||
1159 | .name = "mailbox13", | ||
1160 | .class = &dra7xx_mailbox_hwmod_class, | ||
1161 | .clkdm_name = "l4cfg_clkdm", | ||
1162 | .prcm = { | ||
1163 | .omap4 = { | ||
1164 | .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX13_CLKCTRL_OFFSET, | ||
1165 | .context_offs = DRA7XX_RM_L4CFG_MAILBOX13_CONTEXT_OFFSET, | ||
1166 | }, | ||
1167 | }, | ||
1168 | }; | ||
1169 | |||
1170 | /* | ||
983 | * 'mcspi' class | 1171 | * 'mcspi' class |
984 | * | 1172 | * |
985 | */ | 1173 | */ |
@@ -2423,6 +2611,110 @@ static struct omap_hwmod_ocp_if dra7xx_l4_per1__i2c5 = { | |||
2423 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 2611 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
2424 | }; | 2612 | }; |
2425 | 2613 | ||
2614 | /* l4_cfg -> mailbox1 */ | ||
2615 | static struct omap_hwmod_ocp_if dra7xx_l4_cfg__mailbox1 = { | ||
2616 | .master = &dra7xx_l4_cfg_hwmod, | ||
2617 | .slave = &dra7xx_mailbox1_hwmod, | ||
2618 | .clk = "l3_iclk_div", | ||
2619 | .user = OCP_USER_MPU | OCP_USER_SDMA, | ||
2620 | }; | ||
2621 | |||
2622 | /* l4_per3 -> mailbox2 */ | ||
2623 | static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox2 = { | ||
2624 | .master = &dra7xx_l4_per3_hwmod, | ||
2625 | .slave = &dra7xx_mailbox2_hwmod, | ||
2626 | .clk = "l3_iclk_div", | ||
2627 | .user = OCP_USER_MPU | OCP_USER_SDMA, | ||
2628 | }; | ||
2629 | |||
2630 | /* l4_per3 -> mailbox3 */ | ||
2631 | static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox3 = { | ||
2632 | .master = &dra7xx_l4_per3_hwmod, | ||
2633 | .slave = &dra7xx_mailbox3_hwmod, | ||
2634 | .clk = "l3_iclk_div", | ||
2635 | .user = OCP_USER_MPU | OCP_USER_SDMA, | ||
2636 | }; | ||
2637 | |||
2638 | /* l4_per3 -> mailbox4 */ | ||
2639 | static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox4 = { | ||
2640 | .master = &dra7xx_l4_per3_hwmod, | ||
2641 | .slave = &dra7xx_mailbox4_hwmod, | ||
2642 | .clk = "l3_iclk_div", | ||
2643 | .user = OCP_USER_MPU | OCP_USER_SDMA, | ||
2644 | }; | ||
2645 | |||
2646 | /* l4_per3 -> mailbox5 */ | ||
2647 | static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox5 = { | ||
2648 | .master = &dra7xx_l4_per3_hwmod, | ||
2649 | .slave = &dra7xx_mailbox5_hwmod, | ||
2650 | .clk = "l3_iclk_div", | ||
2651 | .user = OCP_USER_MPU | OCP_USER_SDMA, | ||
2652 | }; | ||
2653 | |||
2654 | /* l4_per3 -> mailbox6 */ | ||
2655 | static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox6 = { | ||
2656 | .master = &dra7xx_l4_per3_hwmod, | ||
2657 | .slave = &dra7xx_mailbox6_hwmod, | ||
2658 | .clk = "l3_iclk_div", | ||
2659 | .user = OCP_USER_MPU | OCP_USER_SDMA, | ||
2660 | }; | ||
2661 | |||
2662 | /* l4_per3 -> mailbox7 */ | ||
2663 | static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox7 = { | ||
2664 | .master = &dra7xx_l4_per3_hwmod, | ||
2665 | .slave = &dra7xx_mailbox7_hwmod, | ||
2666 | .clk = "l3_iclk_div", | ||
2667 | .user = OCP_USER_MPU | OCP_USER_SDMA, | ||
2668 | }; | ||
2669 | |||
2670 | /* l4_per3 -> mailbox8 */ | ||
2671 | static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox8 = { | ||
2672 | .master = &dra7xx_l4_per3_hwmod, | ||
2673 | .slave = &dra7xx_mailbox8_hwmod, | ||
2674 | .clk = "l3_iclk_div", | ||
2675 | .user = OCP_USER_MPU | OCP_USER_SDMA, | ||
2676 | }; | ||
2677 | |||
2678 | /* l4_per3 -> mailbox9 */ | ||
2679 | static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox9 = { | ||
2680 | .master = &dra7xx_l4_per3_hwmod, | ||
2681 | .slave = &dra7xx_mailbox9_hwmod, | ||
2682 | .clk = "l3_iclk_div", | ||
2683 | .user = OCP_USER_MPU | OCP_USER_SDMA, | ||
2684 | }; | ||
2685 | |||
2686 | /* l4_per3 -> mailbox10 */ | ||
2687 | static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox10 = { | ||
2688 | .master = &dra7xx_l4_per3_hwmod, | ||
2689 | .slave = &dra7xx_mailbox10_hwmod, | ||
2690 | .clk = "l3_iclk_div", | ||
2691 | .user = OCP_USER_MPU | OCP_USER_SDMA, | ||
2692 | }; | ||
2693 | |||
2694 | /* l4_per3 -> mailbox11 */ | ||
2695 | static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox11 = { | ||
2696 | .master = &dra7xx_l4_per3_hwmod, | ||
2697 | .slave = &dra7xx_mailbox11_hwmod, | ||
2698 | .clk = "l3_iclk_div", | ||
2699 | .user = OCP_USER_MPU | OCP_USER_SDMA, | ||
2700 | }; | ||
2701 | |||
2702 | /* l4_per3 -> mailbox12 */ | ||
2703 | static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox12 = { | ||
2704 | .master = &dra7xx_l4_per3_hwmod, | ||
2705 | .slave = &dra7xx_mailbox12_hwmod, | ||
2706 | .clk = "l3_iclk_div", | ||
2707 | .user = OCP_USER_MPU | OCP_USER_SDMA, | ||
2708 | }; | ||
2709 | |||
2710 | /* l4_per3 -> mailbox13 */ | ||
2711 | static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox13 = { | ||
2712 | .master = &dra7xx_l4_per3_hwmod, | ||
2713 | .slave = &dra7xx_mailbox13_hwmod, | ||
2714 | .clk = "l3_iclk_div", | ||
2715 | .user = OCP_USER_MPU | OCP_USER_SDMA, | ||
2716 | }; | ||
2717 | |||
2426 | /* l4_per1 -> mcspi1 */ | 2718 | /* l4_per1 -> mcspi1 */ |
2427 | static struct omap_hwmod_ocp_if dra7xx_l4_per1__mcspi1 = { | 2719 | static struct omap_hwmod_ocp_if dra7xx_l4_per1__mcspi1 = { |
2428 | .master = &dra7xx_l4_per1_hwmod, | 2720 | .master = &dra7xx_l4_per1_hwmod, |
@@ -2905,6 +3197,19 @@ static struct omap_hwmod_ocp_if *dra7xx_hwmod_ocp_ifs[] __initdata = { | |||
2905 | &dra7xx_l4_per1__i2c3, | 3197 | &dra7xx_l4_per1__i2c3, |
2906 | &dra7xx_l4_per1__i2c4, | 3198 | &dra7xx_l4_per1__i2c4, |
2907 | &dra7xx_l4_per1__i2c5, | 3199 | &dra7xx_l4_per1__i2c5, |
3200 | &dra7xx_l4_cfg__mailbox1, | ||
3201 | &dra7xx_l4_per3__mailbox2, | ||
3202 | &dra7xx_l4_per3__mailbox3, | ||
3203 | &dra7xx_l4_per3__mailbox4, | ||
3204 | &dra7xx_l4_per3__mailbox5, | ||
3205 | &dra7xx_l4_per3__mailbox6, | ||
3206 | &dra7xx_l4_per3__mailbox7, | ||
3207 | &dra7xx_l4_per3__mailbox8, | ||
3208 | &dra7xx_l4_per3__mailbox9, | ||
3209 | &dra7xx_l4_per3__mailbox10, | ||
3210 | &dra7xx_l4_per3__mailbox11, | ||
3211 | &dra7xx_l4_per3__mailbox12, | ||
3212 | &dra7xx_l4_per3__mailbox13, | ||
2908 | &dra7xx_l4_per1__mcspi1, | 3213 | &dra7xx_l4_per1__mcspi1, |
2909 | &dra7xx_l4_per1__mcspi2, | 3214 | &dra7xx_l4_per1__mcspi2, |
2910 | &dra7xx_l4_per1__mcspi3, | 3215 | &dra7xx_l4_per1__mcspi3, |
diff --git a/arch/arm/mach-omap2/omap_hwmod_common_data.h b/arch/arm/mach-omap2/omap_hwmod_common_data.h index 2c38c6b0ee03..11ed5a17dd77 100644 --- a/arch/arm/mach-omap2/omap_hwmod_common_data.h +++ b/arch/arm/mach-omap2/omap_hwmod_common_data.h | |||
@@ -33,7 +33,6 @@ extern struct omap_hwmod_addr_space omap2_mcspi1_addr_space[]; | |||
33 | extern struct omap_hwmod_addr_space omap2_mcspi2_addr_space[]; | 33 | extern struct omap_hwmod_addr_space omap2_mcspi2_addr_space[]; |
34 | extern struct omap_hwmod_addr_space omap2430_mcspi3_addr_space[]; | 34 | extern struct omap_hwmod_addr_space omap2430_mcspi3_addr_space[]; |
35 | extern struct omap_hwmod_addr_space omap2_dma_system_addrs[]; | 35 | extern struct omap_hwmod_addr_space omap2_dma_system_addrs[]; |
36 | extern struct omap_hwmod_addr_space omap2_mailbox_addrs[]; | ||
37 | extern struct omap_hwmod_addr_space omap2_mcbsp1_addrs[]; | 36 | extern struct omap_hwmod_addr_space omap2_mcbsp1_addrs[]; |
38 | extern struct omap_hwmod_addr_space omap2_hdq1w_addr_space[]; | 37 | extern struct omap_hwmod_addr_space omap2_hdq1w_addr_space[]; |
39 | 38 | ||