]> www.infradead.org Git - qemu-nvme.git/commitdiff
hw: Move TWL92230 device from hw/timer/ to hw/rtc/ subdirectory
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Thu, 3 Oct 2019 23:03:57 +0000 (01:03 +0200)
committerLaurent Vivier <laurent@vivier.eu>
Thu, 24 Oct 2019 18:24:50 +0000 (20:24 +0200)
The TWL92230 is an "energy management device" companion with
a RTC. Since we mostly model the RTC, 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-8-philmd@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
MAINTAINERS
hw/rtc/Kconfig
hw/rtc/Makefile.objs
hw/rtc/twl92230.c [moved from hw/timer/twl92230.c with 100% similarity]
hw/timer/Kconfig
hw/timer/Makefile.objs

index a7de5e2d12534702f86baac722a505de2f726390..0dc72d37bdc8f08f8fdf2505d3649e903ca0528c 100644 (file)
@@ -663,7 +663,7 @@ F: hw/display/blizzard.c
 F: hw/input/lm832x.c
 F: hw/input/tsc2005.c
 F: hw/misc/cbus.c
-F: hw/timer/twl92230.c
+F: hw/rtc/twl92230.c
 F: include/hw/display/blizzard.h
 F: include/hw/input/tsc2xxx.h
 F: include/hw/misc/cbus.h
index cc7fead764f40fef2e4f3cc989b2e145ce139111..dff9d60946af0b5a0895478ab94933c929dc0278 100644 (file)
@@ -8,6 +8,10 @@ config M48T59
 config PL031
     bool
 
+config TWL92230
+    bool
+    depends on I2C
+
 config MC146818RTC
     bool
 
index 4621b37bc2f611f26e090b9cd7427e0b88974af5..810a38ee7b3d4f2e07e99fead530d0022e5b950c 100644 (file)
@@ -4,5 +4,6 @@ ifeq ($(CONFIG_ISA_BUS),y)
 common-obj-$(CONFIG_M48T59) += m48t59-isa.o
 endif
 common-obj-$(CONFIG_PL031) += pl031.o
+common-obj-$(CONFIG_TWL92230) += twl92230.o
 obj-$(CONFIG_MC146818RTC) += mc146818rtc.o
 common-obj-$(CONFIG_SUN4V_RTC) += sun4v-rtc.o
similarity index 100%
rename from hw/timer/twl92230.c
rename to hw/rtc/twl92230.c
index b04c928136c2f7d5b241c00e83b55fb217242400..9357875f285d7370c8e01b3a969feefd6be88af7 100644 (file)
@@ -20,10 +20,6 @@ config HPET
 config I8254
     bool
 
-config TWL92230
-    bool
-    depends on I2C
-
 config ALTERA_TIMER
     bool
     select PTIMER
index 034bd30255c0b1e1ba0d7f3c972507e13e06a770..23be70b71d324d495cd15c0b1456b560f787881c 100644 (file)
@@ -7,7 +7,6 @@ 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
-common-obj-$(CONFIG_TWL92230) += twl92230.o
 common-obj-$(CONFIG_XILINX) += xilinx_timer.o
 common-obj-$(CONFIG_SLAVIO) += slavio_timer.o
 common-obj-$(CONFIG_ETRAXFS) += etraxfs_timer.o