RTEMS | bsp/aarch64/raspberrypi: Add Mailbox Support (!915)
Shaunak Datar (@skdatar)
gitlab at rtems.org
Fri Jan 16 20:31:01 UTC 2026
Shaunak Datar commented on a discussion on bsps/aarch64/raspberrypi/start/mailbox.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/915#note_139007
> +{
> + if (((uintptr_t)buffer & (MBOX_BUFFER_ALIGNMENT - 1)) != 0) {
> + return RTEMS_INVALID_ADDRESS;
> + }
> +
> + memset(buffer, 0, size);
> + return RTEMS_SUCCESSFUL;
> +}
> +
> +
> +
> +void rpi_mbox_write(uint8_t channel, uint32_t data){
> + while(BCM2835_REG(BCM2711_MBOX_STATUS) & BCM2711_MBOX_FULL){
> + }
> +
> + BCM2835_REG(BCM2711_MBOX_WRITE) = (data & MBOX_MAIL_DATA_MASK) | (channel & MBOX_MAIL_CHANNEL_MASK);
Created an enum `bcm2711_mbox_channel` in `bsps/aarch64/raspberrypi/start/mailbox.c` and removed the macros them in `bsps/aarch64/raspberrypi/include/bsp/raspberrypi.h`
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/915#note_139007
You're receiving this email because of your account on gitlab.rtems.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260116/c30bb228/attachment-0001.htm>
More information about the bugs
mailing list