RISC-V: Select Goldfish RTC driver for QEMU virt machine
authorAnup Patel <Anup.Patel@wdc.com>
Tue, 3 Dec 2019 03:49:39 +0000 (03:49 +0000)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Thu, 5 Mar 2020 18:48:46 +0000 (10:48 -0800)
We select Goldfish RTC driver using QEMU virt machine kconfig option
to access RTC device on QEMU virt machine.

Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
Reviewed-by: Palmer Dabbelt <palmerdabbelt@google.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/Kconfig.socs
arch/riscv/configs/defconfig
arch/riscv/configs/rv32_defconfig

index 9f6f9a063bc4f95d795f9021cee1a55b8dd67dfd..3078b2de0b2d50171835e3775d0f85a70869a819 100644 (file)
@@ -28,6 +28,8 @@ config SOC_VIRT
        select VIRTIO_INPUT
        select POWER_RESET_SYSCON
        select POWER_RESET_SYSCON_POWEROFF
+       select GOLDFISH
+       select RTC_DRV_GOLDFISH
        select SIFIVE_PLIC
        help
          This enables support for QEMU Virt Machine.
index b15fc2c71d8b96251229dec44805574c016f7213..c8f0842030676a73553e8175e751b12aacb417d5 100644 (file)
@@ -73,6 +73,7 @@ CONFIG_USB_STORAGE=y
 CONFIG_USB_UAS=y
 CONFIG_MMC=y
 CONFIG_MMC_SPI=y
+CONFIG_RTC_CLASS=y
 CONFIG_EXT4_FS=y
 CONFIG_EXT4_FS_POSIX_ACL=y
 CONFIG_AUTOFS4_FS=y
index a0880110fe581d776edfb80452ac114bd954a601..a844920a261fa473358f5da753ef88a8b39de52f 100644 (file)
@@ -69,6 +69,7 @@ CONFIG_USB_OHCI_HCD=y
 CONFIG_USB_OHCI_HCD_PLATFORM=y
 CONFIG_USB_STORAGE=y
 CONFIG_USB_UAS=y
+CONFIG_RTC_CLASS=y
 CONFIG_EXT4_FS=y
 CONFIG_EXT4_FS_POSIX_ACL=y
 CONFIG_AUTOFS4_FS=y