RTEMS | bsp/aarch64/raspberrypi: Add support for DMA (!662)

Shaunak Datar (@skdatar) gitlab at rtems.org
Tue Aug 19 19:50:02 UTC 2025




Shaunak Datar commented on a discussion on bsps/aarch64/raspberrypi/dma/raspberrypi-dma.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/662#note_129049

 > +  
 > +  if ( ( channel >= DMA4_CHANNEL_11 ) && ( channel <= DMA4_CHANNEL_14 ) ) {
 > +    uint32_t original_addr = cb_addr_reg;
 > +    control_block = (void*)(uintptr_t)original_addr;
 > +  } else {
 > +    control_block = (void*)(uintptr_t)cb_addr_reg;
 > +  }
 > +  
 > +  if (control_block != NULL) {
 > +    free(control_block);
 > +  }
 > +
 > +  return RTEMS_SUCCESSFUL;
 > +}
 > +
 > +rtems_status_code rpi_dma_mem_to_mem_init( rpi_dma_channel channel, void *source_address, void *destination_address, uint32_t transfer_length )

There are alignment restrictions- I have added a check for them and updated the doxygen for it likewise

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/662#note_129049
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/20250819/8a869a53/attachment-0001.htm>


More information about the bugs mailing list