diff options
author | Suman Anna <s-anna@ti.com> | 2013-05-07 18:30:27 -0400 |
---|---|---|
committer | Suman Anna <s-anna@ti.com> | 2013-06-11 12:41:30 -0400 |
commit | fe32c1f6024e357f586b1d666237cab80a1215ce (patch) | |
tree | 04ba3a27a26419441e464b2d152e1cbb0ac8d447 /arch/arm/mach-omap2 | |
parent | b8a7cf8e2b15a3abac0a9e376b6b7ed4bbb6ee8e (diff) |
ARM: OMAP2+: add user and fifo info to mailbox platform data
The different generations of OMAP2+ SoCs have almost the same
mailbox IP, but the IP has configurable parameters for number
of users (interrupts it can generate out towards processors)
and number of fifos (the base unidirectional h/w communication
channel). This data cannot be read from any registers, and so
has been added to the platform data.
This data together with the interrupt-type configuration can be
used in properly figuring out the number of registers to save
and restore in the OMAP mailbox driver code.
Cc: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Suman Anna <s-anna@ti.com>
Diffstat (limited to 'arch/arm/mach-omap2')
-rw-r--r-- | arch/arm/mach-omap2/omap_hwmod_2420_data.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap2/omap_hwmod_2430_data.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap2/omap_hwmod_3xxx_data.c | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/omap_hwmod_2420_data.c b/arch/arm/mach-omap2/omap_hwmod_2420_data.c index dbcb928eea50..d8b9d60f854f 100644 --- a/arch/arm/mach-omap2/omap_hwmod_2420_data.c +++ b/arch/arm/mach-omap2/omap_hwmod_2420_data.c | |||
@@ -173,6 +173,8 @@ static struct omap_mbox_dev_info omap2420_mailbox_info[] = { | |||
173 | }; | 173 | }; |
174 | 174 | ||
175 | static struct omap_mbox_pdata omap2420_mailbox_attrs = { | 175 | static struct omap_mbox_pdata omap2420_mailbox_attrs = { |
176 | .num_users = 4, | ||
177 | .num_fifos = 6, | ||
176 | .info_cnt = ARRAY_SIZE(omap2420_mailbox_info), | 178 | .info_cnt = ARRAY_SIZE(omap2420_mailbox_info), |
177 | .info = omap2420_mailbox_info, | 179 | .info = omap2420_mailbox_info, |
178 | }; | 180 | }; |
diff --git a/arch/arm/mach-omap2/omap_hwmod_2430_data.c b/arch/arm/mach-omap2/omap_hwmod_2430_data.c index df2f8742fe41..5b9083461dc5 100644 --- a/arch/arm/mach-omap2/omap_hwmod_2430_data.c +++ b/arch/arm/mach-omap2/omap_hwmod_2430_data.c | |||
@@ -176,6 +176,8 @@ static struct omap_mbox_dev_info omap2430_mailbox_info[] = { | |||
176 | }; | 176 | }; |
177 | 177 | ||
178 | static struct omap_mbox_pdata omap2430_mailbox_attrs = { | 178 | static struct omap_mbox_pdata omap2430_mailbox_attrs = { |
179 | .num_users = 4, | ||
180 | .num_fifos = 6, | ||
179 | .info_cnt = ARRAY_SIZE(omap2430_mailbox_info), | 181 | .info_cnt = ARRAY_SIZE(omap2430_mailbox_info), |
180 | .info = omap2430_mailbox_info, | 182 | .info = omap2430_mailbox_info, |
181 | }; | 183 | }; |
diff --git a/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c b/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c index 9ac5122396d8..8e4cbc99ce28 100644 --- a/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c +++ b/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c | |||
@@ -1511,6 +1511,8 @@ static struct omap_mbox_dev_info omap3xxx_mailbox_info[] = { | |||
1511 | }; | 1511 | }; |
1512 | 1512 | ||
1513 | static struct omap_mbox_pdata omap3xxx_mailbox_attrs = { | 1513 | static struct omap_mbox_pdata omap3xxx_mailbox_attrs = { |
1514 | .num_users = 2, | ||
1515 | .num_fifos = 2, | ||
1514 | .info_cnt = ARRAY_SIZE(omap3xxx_mailbox_info), | 1516 | .info_cnt = ARRAY_SIZE(omap3xxx_mailbox_info), |
1515 | .info = omap3xxx_mailbox_info, | 1517 | .info = omap3xxx_mailbox_info, |
1516 | }; | 1518 | }; |