RTEMS | aarch64/raspberrypi: Add Watchdog Timer driver (!120)
Ning Yang (@yangn0)
gitlab at rtems.org
Fri Jul 26 06:31:18 UTC 2024
Ning Yang commented on a discussion on bsps/aarch64/raspberrypi/start/watchdog.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/120#note_109934
> + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
> + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
> + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
> + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
> + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
> + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
> + * POSSIBILITY OF SUCH DAMAGE.
> + */
> +
> +#include <bsp/raspberrypi.h>
> +#include <bsp/watchdog.h>
> +
> +#define PM_WDOG BCM2835_REG(BCM2711_PM_WDOG)
> +#define PM_RSTC BCM2835_REG(BCM2711_PM_RSTC)
> +
> +int raspberrypi_watchdog_count = 0;
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/120#note_109477
I designed the interface with reference to `sparc/leon3/include/bsp/watchdog.h`. It seems to have multiple wdt devices. But in rpi4 there is only one, should I keep it consistent?
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/120#note_109934
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/20240726/7d4902d8/attachment-0001.htm>
More information about the bugs
mailing list