RTEMS | dev/serial: Refactor the pl011 driver to be extensible (!47)

Ning Yang (@yangn0) gitlab at rtems.org
Sat Jul 6 02:57:40 UTC 2024




Ning Yang commented on a discussion on bsps/arm/raspberrypi/include/bsp/raspberrypi-pl011.h: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/47#note_108754

 > +#include <dev/serial/arm-pl011-regs.h>
 > +#include <dev/serial/arm-pl011.h>
 > +#include <rtems/termiostypes.h>
 > +
 > +typedef struct {
 > +  pl011_base PL011;
 > +  uint32_t reserved_4c[14];
 > +  uint32_t uartitcr;
 > +  uint32_t uartitip;
 > +  uint32_t uartitop;
 > +  uint32_t uarttdr;
 > +} raspberrypi_uart;
 > +
 > +typedef struct {
 > +  arm_pl011_context pl011_ctx;
 > +} raspberrypi_pl011_context;

Done. All BSPs except `xilinx-versal` now use the base struct directly.

I also deleted the `raspberrypi-pl011.h` file because it was not used.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/47#note_108754
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/20240706/427c1d5e/attachment-0001.htm>


More information about the bugs mailing list