RTEMS | bsp/aarch64/raspberrypi4: Add PWM peripheral support (!509)
Christian Mauderer (@c-mauderer)
gitlab at rtems.org
Mon Jun 16 18:30:41 UTC 2025
Christian Mauderer commented on a discussion on bsps/aarch64/raspberrypi/include/bsp/raspberrypi-pwm.h: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/509#note_124731
> +#define C_POLA1 BSP_BIT32( 4 )
> +#define C_SBIT1 BSP_BIT32( 3 )
> +#define C_RPTL1 BSP_BIT32( 2 )
> +#define C_MODE1 BSP_BIT32( 1 )
> +#define C_PWEN1 BSP_BIT32( 0 )
> +
> +/* Status register bit definitions */
> +#define S_STA2 BSP_BIT32( 10 )
> +#define S_STA1 BSP_BIT32( 9 )
> +#define S_BERR BSP_BIT32( 8 )
> +#define S_GAPO2 BSP_BIT32( 5 )
> +#define S_GAPO1 BSP_BIT32( 4 )
> +#define S_RERR1 BSP_BIT32( 3 )
> +#define S_WERR1 BSP_BIT32( 2 )
> +#define S_EMPT1 BSP_BIT32( 1 )
> +#define S_FULL1 BSP_BIT32( 0 )
The general raspberrypi.h is a possibility too if there are already registers there. An alternative is a raspberry-pwm-regs.h that you don't install. For that kind of style questions, usually it's a good idea to just look at other drivers in the same BSP so that it is done similarly.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/509#note_124731
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/20250616/8918005c/attachment.htm>
More information about the bugs
mailing list