Skip to content

RPi mailbox support

Andre Heider barebox 1 version Applied

Status from this message: Applied, thanks. I'll probably have a closer look at the caching bits

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 5 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/10ARM: cache: restore cache functions from the PBLarch/arm/cpu/start.c+3 -10 replies
2/10ARM: cache: do not crash when the MMU isn't yet setuparch/arm/cpu/cache.c+12 -60 replies
3/10common: add a macro to align an array on the stackinclude/common.h+11 -00 replies
4/10ARM: bcm2835: cleanup clock registeringarch/arm/mach-bcm2835/core.c+7 -240 replies
5/10ARM: bcm2835: register the clocksource driver earlierdrivers/clocksource/bcm2835.c+1 -10 replies
6/10ARM: bcm2835: register the clocksource device earlierarch/arm/mach-bcm2835/core.c+2 -10 replies
7/10ARM: bcm2835: add a mailbox driver for VideoCorearch/arm/mach-bcm2835/Makefile arch/arm/mach-bcm2835/include/mach/mbox.h arch/arm/mach-bcm2835/mbox.c+573 -10 replies
8/10ARM: rpi: register a clkdev for the eMMC clockarch/arm/boards/raspberry-pi/rpi.c+40 -00 replies
9/10mci: bcm2835: use the registered device clkdevdrivers/mci/mci-bcm2835.c drivers/mci/mci-bcm2835.h+19 -1220 replies
10/10ARM: rpi: use the proper ARM memory sizearch/arm/boards/raspberry-pi/rpi.c+33 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/10] RPi mailbox support

This adds a bcm2835 mailbox driver for the RPi to talk to the on-SoC VideoCore. See [1] for a description.

This patchset uses it to get two properties, the eMMC clock and the memory size.

The RPi backend needs to use this driver early on, namely before the MMU setup. We also want to use the driver in the future after the MMU setup, like setting up simplefb for the kernel. Patch 1 and 2 lay the groundwork for that.

The mailbox driver also needs to handle timouts, so patch 5 and 6 are making the clocksource accessible earlier.

Patch 7 is the driver itself, providing a helper macro for users based on a new common macro from patch 3.

Patch 8 and 9 switch the bc2835_mci driver from a local mailbox implementation to the new driver.

Patch 10 uses the driver to get the proper memory size.

Patch 4 is just a cleanup.

Thanks,
Andre

[1] https://github.com/raspberrypi/firmware/wiki/Mailboxes

Andre Heider (10):
ARM: cache: restore cache functions from the PBL
ARM: cache: do not crash when the MMU isn't yet setup
common: add a macro to align an array on the stack
ARM: bcm2835: cleanup clock registering
ARM: bcm2835: register the clocksource driver earlier
ARM: bcm2835: register the clocksource device earlier
ARM: bcm2835: add a mailbox driver for VideoCore
ARM: rpi: register a clkdev for the eMMC clock
mci: bcm2835: use the registered device clkdev
ARM: rpi: use the proper ARM memory size

 arch/arm/boards/raspberry-pi/rpi.c        |  75 +++++-
 arch/arm/cpu/cache.c                      |  18 +-
 arch/arm/cpu/start.c                      |   4 +-
 arch/arm/mach-bcm2835/Makefile            |   2 +-
 arch/arm/mach-bcm2835/core.c              |  32 +--
 arch/arm/mach-bcm2835/include/mach/mbox.h | 420 ++++++++++++++++++++++++++++++
 arch/arm/mach-bcm2835/mbox.c              | 152 +++++++++++
 drivers/clocksource/bcm2835.c             |   2 +-
 drivers/mci/mci-bcm2835.c                 |  93 ++-----
 drivers/mci/mci-bcm2835.h                 |  48 ----
 include/common.h                          |  11 +
 11 files changed, 700 insertions(+), 157 deletions(-)
 create mode 100644 arch/arm/mach-bcm2835/include/mach/mbox.h
 create mode 100644 arch/arm/mach-bcm2835/mbox.c
Signature · 7 lines
1.8.3.2


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox