Skip to content

Commit

Permalink
mailbox/omap: consolidate OMAP mailbox driver
Browse files Browse the repository at this point in the history
There is no need for a separate common OMAP mailbox module
now that the OMAP1 mailbox driver has been removed. So,
consolidate the two individual OMAP mailbox modules into a
single driver. This streamlines the driver for converting
to mailbox framework.

The following are the main changes:
- collapse mailbox-omap2.c into omap-mailbox.c
- remove omap_mbox_ops and replace the ops calls with
  the equivalent functionality.
- simplify the sub-mailbox startup/shutdown functionality,
  the one-time operations are moved into probe, and the
  pm_runtime_get_sync and pm_runtime_put_sync can be invoked
  without using a configuration counter.
- move all definitions from private omap_mbox.h into the
  source code, and eliminate this internal header.
- rename some variables that used the omap2_mbox prefix with
  a generic omap_mbox prefix.

Signed-off-by: Suman Anna <[email protected]>
Signed-off-by: Tony Lindgren <[email protected]>
  • Loading branch information
sumananna authored and tmlind committed Jul 29, 2014
1 parent ef45eae commit 5040f53
Show file tree
Hide file tree
Showing 5 changed files with 283 additions and 455 deletions.
8 changes: 0 additions & 8 deletions drivers/mailbox/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,9 @@ config PL320_MBOX
Management Engine, primarily for cpufreq. Say Y here if you want
to use the PL320 IPCM support.

config OMAP_MBOX
tristate
help
This option is selected by any OMAP architecture specific mailbox
driver such as CONFIG_OMAP2PLUS_MBOX. This enables the common OMAP
mailbox framework code.

config OMAP2PLUS_MBOX
tristate "OMAP2+ Mailbox framework support"
depends on ARCH_OMAP2PLUS
select OMAP_MBOX
help
Mailbox implementation for OMAP family chips with hardware for
interprocessor communication involving DSP, IVA1.0 and IVA2 in
Expand Down
4 changes: 1 addition & 3 deletions drivers/mailbox/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
obj-$(CONFIG_PL320_MBOX) += pl320-ipc.o

obj-$(CONFIG_OMAP_MBOX) += omap-mailbox.o
obj-$(CONFIG_OMAP2PLUS_MBOX) += mailbox_omap2.o
mailbox_omap2-objs := mailbox-omap2.o
obj-$(CONFIG_OMAP2PLUS_MBOX) += omap-mailbox.o
333 changes: 0 additions & 333 deletions drivers/mailbox/mailbox-omap2.c

This file was deleted.

Loading

0 comments on commit 5040f53

Please sign in to comment.