mailbox/omap: add a parent structure for every IP instance omap-for-v3.17/mailbox-cleanup
authorSuman Anna <s-anna@ti.com>
Wed, 25 Jun 2014 00:43:43 +0000 (19:43 -0500)
committerTony Lindgren <tony@atomide.com>
Tue, 29 Jul 2014 08:57:25 +0000 (01:57 -0700)
commit72c1c8179cdc5ba7208d375bd3f104659fc50ad0
tree6be3154385d5a638ad214313d1a7d6f4a656ad55
parentbe3322eb7038926ecd5fbd37b3aaa4aee76b78e0
mailbox/omap: add a parent structure for every IP instance

A new structure, omap_mbox_device, is added to contain
the global variables pertinent to a mailbox h/w IP block.
This enables the support for having multiple instances of
the same h/w IP block in the SoC. This is in preparation
to support the DRA7 SoC, which is the first SoC in the OMAP
family to have multiple mailbox IP instances.

The changes include enhancements to the sub-mailbox registration
logic and mbox startup sequencing, removing the usage of single
global configuration variables for all h/w instances, and storing
the registered sub-mailboxes with the parent mailbox device
structure.

Signed-off-by: Suman Anna <s-anna@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/mailbox/omap-mailbox.c