Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 226529
b: refs/heads/master
c: ff0fba0
h: refs/heads/master
i:
  226527: 90f2f7c
v: v3
  • Loading branch information
Omar Ramirez Luna authored and Hari Kanigeri committed Dec 2, 2010
1 parent 2f12002 commit adac07d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5d783731c683161d5d921c2ed03a43d6d31cf418
refs/heads/master: ff0fba0bca4182e022c0a2ac0f3e63508e86e9f1
16 changes: 10 additions & 6 deletions trunk/arch/arm/mach-omap2/mailbox.c
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ static struct omap_mbox_ops omap2_mbox_ops = {

/* FIXME: the following structs should be filled automatically by the user id */

#if defined(CONFIG_ARCH_OMAP3430) || defined(CONFIG_ARCH_OMAP2420)
#if defined(CONFIG_ARCH_OMAP3) || defined(CONFIG_ARCH_OMAP2)
/* DSP */
static struct omap_mbox2_priv omap2_mbox_dsp_priv = {
.tx_fifo = {
Expand All @@ -306,7 +306,7 @@ struct omap_mbox mbox_dsp_info = {
};
#endif

#if defined(CONFIG_ARCH_OMAP3430)
#if defined(CONFIG_ARCH_OMAP3)
struct omap_mbox *omap3_mboxes[] = { &mbox_dsp_info, NULL };
#endif

Expand Down Expand Up @@ -394,15 +394,19 @@ static int __devinit omap2_mbox_probe(struct platform_device *pdev)

if (false)
;
#if defined(CONFIG_ARCH_OMAP3430)
else if (cpu_is_omap3430()) {
#if defined(CONFIG_ARCH_OMAP3)
else if (cpu_is_omap34xx()) {
list = omap3_mboxes;

list[0]->irq = platform_get_irq_byname(pdev, "dsp");
}
#endif
#if defined(CONFIG_ARCH_OMAP2420)
else if (cpu_is_omap2420()) {
#if defined(CONFIG_ARCH_OMAP2)
else if (cpu_is_omap2430()) {
list = omap2_mboxes;

list[0]->irq = platform_get_irq_byname(pdev, "dsp");
} else if (cpu_is_omap2420()) {
list = omap2_mboxes;

list[0]->irq = platform_get_irq_byname(pdev, "dsp");
Expand Down

0 comments on commit adac07d

Please sign in to comment.