public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
From: arnd@arndb.de (Arnd Bergmann)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 02/10] mailbox: Enable BCM2835 mailbox support
Date: Wed, 04 Mar 2015 10:48:44 +0100	[thread overview]
Message-ID: <2241453.IVZx9NW1xt@wuerfel> (raw)
In-Reply-To: <54F675F1.60205@wwwdotorg.org>

On Tuesday 03 March 2015 20:03:13 Stephen Warren wrote:
> > +
> > +/*
> > + * Mailbox registers. We basically only support mailbox 0 & 1. We
> > + * deliver to the VC in mailbox 1, it delivers to us in mailbox 0. See
> > + * BCM2835-ARM-Peripherals.pdf section 1.3 for an explanation about
> > + * the placement of memory barriers.
> > + */
> > +#define MAIL0_RD     (ARM_0_MAIL0 + 0x00)
> > +#define MAIL0_POL    (ARM_0_MAIL0 + 0x10)
> > +#define MAIL0_STA    (ARM_0_MAIL0 + 0x18)
> > +#define MAIL0_CNF    (ARM_0_MAIL0 + 0x1C)
> > +#define MAIL1_WRT    (ARM_0_MAIL1 + 0x00)
> 
> That implies there are more mailboxes. I wonder if we should
> parameterize which to use via some DT properties? I guess we can defer
> that though; we can default to the current values and add properties
> later if we want to use something else.

How about changing #mbox-cells to <2> and using the first cell to
identify the mailbox and the second to identify the channel?

The binding isn't very clear on the meaning of the one argument
cell for the mailbox reference, but I assume it's used for the
mailbox channel rather than the mailbox id.

	Arnd

  reply	other threads:[~2015-03-04  9:48 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1425329684-23968-1-git-send-email-eric@anholt.net>
2015-03-02 20:54 ` [PATCH 02/10] mailbox: Enable BCM2835 mailbox support Eric Anholt
2015-03-04  3:03   ` Stephen Warren
2015-03-04  9:48     ` Arnd Bergmann [this message]
2015-03-04 18:20     ` Eric Anholt
2015-03-06  4:54       ` Stephen Warren
2015-03-06 20:00         ` Eric Anholt
2015-03-06 20:29           ` Stephen Warren
2015-03-06 21:40             ` Stephen Warren
2015-03-04 18:28     ` Eric Anholt
     [not found] ` <1425329684-23968-10-git-send-email-eric@anholt.net>
     [not found]   ` <54F68352.5080108@wwwdotorg.org>
     [not found]     ` <87vbif6wzi.fsf@eliezer.anholt.net>
2015-03-06  5:05       ` [PATCH 09/10] ARM: bcm2835: Add the mailbox property channel driver Stephen Warren

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2241453.IVZx9NW1xt@wuerfel \
    --to=arnd@arndb.de \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox