pietrushnic / rpi-dt-linux

This repository aims to handle all patches required for Raspberry Pi support in upstream Linux kernel.
Other
2 stars 0 forks source link

bcm2835-mbox driver #1

Closed pietrushnic closed 9 years ago

pietrushnic commented 9 years ago

@notro I found some patches on @lkundrak tree here. I applied them to rpi-3.16.y. System booting without problems.

I have no idea how to validate it. I found in dmesg:

[    2.587662] bcm2835-mbox 2000b880.mailbox: mailbox enabled

and in /proc/iomem

2000b880-2000b8bf : /soc/mailbox@0x7e00b880

I assume that we need some additional driver to use bcm2835-mbox. Are you ok to release this version to rpi-dt-linux and rpi-dt-firmware ? Or we should wait for additional drivers that will prove that mbox works ? If yes then what driver should be next ?

notro commented 9 years ago

The freq driver seem to use the mbox api: https://github.com/hackerspace/rpi-linux/commits/lr-raspberry-pi-new-mailbox The thermal driver however doesn't use mbox_ functions, but the patch changes the place for mbox in drivers/Makefile, so it might be needed for the freq driver to work.

I think you should add all the drivers you can get your hands on regardless of the state it's in. The goal is to try and get all the functionality the official kernel has. This will be an experimental kernel for some time, so we should put functionality before stability.

When the currently available drivers is added, we can look into enabling all the modules in bcmrpi_defconfig. This will make the kernel usable for an ordinary user wanting to test the new thing.

I think you should update the rpi-update kernel as often as you can.