summary refs log tree commit diff stats
path: root/hw/timer/Kconfig
diff options
context:
space:
mode:
Diffstat (limited to 'hw/timer/Kconfig')
-rw-r--r--hw/timer/Kconfig8
1 files changed, 7 insertions, 1 deletions
diff --git a/hw/timer/Kconfig b/hw/timer/Kconfig
index 9ac0084534..b3d823ce2c 100644
--- a/hw/timer/Kconfig
+++ b/hw/timer/Kconfig
@@ -11,7 +11,13 @@ config A9_GTIMER
 
 config HPET
     bool
-    default y if PC && !HAVE_RUST
+    default y if PC
+    # The HPET has both a Rust and a C implementation
+    select HPET_C if !HAVE_RUST
+    select X_HPET_RUST if HAVE_RUST
+
+config HPET_C
+    bool
 
 config I8254
     bool