Skip to content

Commit d2047ab

Browse files
avpatelpalmer-dabbelt
authored andcommitted
RISC-V: Select Goldfish RTC driver for QEMU virt machine
We select Goldfish RTC driver using QEMU virt machine kconfig option to access RTC device on QEMU virt machine. Signed-off-by: Anup Patel <[email protected]> Reviewed-by: Atish Patra <[email protected]> Reviewed-by: Palmer Dabbelt <[email protected]> Reviewed-by: Alistair Francis <[email protected]> Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent 81e2d3c commit d2047ab

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

arch/riscv/Kconfig.socs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ config SOC_VIRT
2828
select VIRTIO_INPUT
2929
select POWER_RESET_SYSCON
3030
select POWER_RESET_SYSCON_POWEROFF
31+
select GOLDFISH
32+
select RTC_DRV_GOLDFISH
3133
select SIFIVE_PLIC
3234
help
3335
This enables support for QEMU Virt Machine.

arch/riscv/configs/defconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ CONFIG_USB_STORAGE=y
7373
CONFIG_USB_UAS=y
7474
CONFIG_MMC=y
7575
CONFIG_MMC_SPI=y
76+
CONFIG_RTC_CLASS=y
7677
CONFIG_EXT4_FS=y
7778
CONFIG_EXT4_FS_POSIX_ACL=y
7879
CONFIG_AUTOFS4_FS=y

arch/riscv/configs/rv32_defconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ CONFIG_USB_OHCI_HCD=y
6969
CONFIG_USB_OHCI_HCD_PLATFORM=y
7070
CONFIG_USB_STORAGE=y
7171
CONFIG_USB_UAS=y
72+
CONFIG_RTC_CLASS=y
7273
CONFIG_EXT4_FS=y
7374
CONFIG_EXT4_FS_POSIX_ACL=y
7475
CONFIG_AUTOFS4_FS=y

0 commit comments

Comments
 (0)