]> www.infradead.org Git - qemu-nvme.git/commitdiff
hw: Move DS1338 device from hw/timer/ to hw/rtc/ subdirectory
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Thu, 3 Oct 2019 23:03:58 +0000 (01:03 +0200)
committerLaurent Vivier <laurent@vivier.eu>
Thu, 24 Oct 2019 18:26:35 +0000 (20:26 +0200)
The DS1338 is a Real Time Clock, not a timer.
Move it under the hw/rtc/ subdirectory.

Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Acked-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <20191003230404.19384-9-philmd@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
hw/rtc/Kconfig
hw/rtc/Makefile.objs
hw/rtc/ds1338.c [moved from hw/timer/ds1338.c with 100% similarity]
hw/timer/Kconfig
hw/timer/Makefile.objs

index dff9d60946af0b5a0895478ab94933c929dc0278..45daa8d655c9fff8407205590a4cd2c6109d3127 100644 (file)
@@ -1,3 +1,7 @@
+config DS1338
+    bool
+    depends on I2C
+
 config M41T80
     bool
     depends on I2C
index 810a38ee7b3d4f2e07e99fead530d0022e5b950c..b195863291d1ae3ee7c2f892af6b890a42b72913 100644 (file)
@@ -1,3 +1,4 @@
+common-obj-$(CONFIG_DS1338) += ds1338.o
 common-obj-$(CONFIG_M41T80) += m41t80.o
 common-obj-$(CONFIG_M48T59) += m48t59.o
 ifeq ($(CONFIG_ISA_BUS),y)
similarity index 100%
rename from hw/timer/ds1338.c
rename to hw/rtc/ds1338.c
index 9357875f285d7370c8e01b3a969feefd6be88af7..a990f9fe35fc8dcc0d71c1e030137d1d3eaa7477 100644 (file)
@@ -9,10 +9,6 @@ config ARM_MPTIMER
 config A9_GTIMER
     bool
 
-config DS1338
-    bool
-    depends on I2C
-
 config HPET
     bool
     default y if PC
index 23be70b71d324d495cd15c0b1456b560f787881c..70b61b69c7a4aa3a18f6afd65d4048aea115cc24 100644 (file)
@@ -3,7 +3,6 @@ common-obj-$(CONFIG_ARM_MPTIMER) += arm_mptimer.o
 common-obj-$(CONFIG_ARM_V7M) += armv7m_systick.o
 common-obj-$(CONFIG_A9_GTIMER) += a9gtimer.o
 common-obj-$(CONFIG_CADENCE) += cadence_ttc.o
-common-obj-$(CONFIG_DS1338) += ds1338.o
 common-obj-$(CONFIG_HPET) += hpet.o
 common-obj-$(CONFIG_I8254) += i8254_common.o i8254.o
 common-obj-$(CONFIG_PUV3) += puv3_ost.o