tests/drivers/rtc: Add qemu_x86_64 board to test suite

This commit adds overlay and conf for the qemu_x86_64 board
to the RTC API test suite, and adds support for the RTC
subsystem to the qemu_x86_64's yaml file.

The commit also specifies integration platforms for the
RTC API test suite, since the qemu_x86_64 board runs in
real-time, causing it to time out if the test suite runs
for it.

Signed-off-by: Bjarki Arge Andreasen <bjarkix123@gmail.com>
This commit is contained in:
Bjarki Arge Andreasen 2023-07-24 16:42:22 +02:00 committed by Chris Friedt
parent 7dd5fb6dc8
commit 5f80f30747
4 changed files with 26 additions and 0 deletions

View file

@ -10,6 +10,7 @@ supported:
- can
- smp
- smbus
- rtc
testing:
default: true
ignore_tags:

View file

@ -0,0 +1,5 @@
# Copyright (c) 2023 Bjarki Arge Andreasen
# SPDX-License-Identifier: Apache-2.0
CONFIG_RTC_ALARM=y
CONFIG_RTC_UPDATE=y

View file

@ -0,0 +1,18 @@
/*
* Copyright (c) 2023 Bjarki Arge Andreasen
*
* SPDX-License-Identifier: Apache-2.0
*/
/*
* The RTC IRQ is not routed to the IOAPIC if the legacy
* IRQ bit is set. The IRQ is required for alarm
* operation and the update callback.
*/
&hpet {
no-legacy-irq;
};
&rtc {
status = "okay";
};

View file

@ -9,3 +9,5 @@ tests:
- api
filter: dt_alias_exists("rtc")
depends_on: rtc
platform_exclude:
- qemu_x86_64