i.MX: Implement a more complete version of the GPT timer.
Signed-off-by: Jean-Christophe DUBOIS <jcd@tribudubois.net>Message-id: 1369898943-1993-2-git-send-email-jcd@tribudubois.netReviewed-by: Peter Chubb <peter.chubb@nicta.com.au>...
i.MX: Rework functions/types name and use new style initialization
Signed-off-by: Jean-Christophe DUBOIS <jcd@tribudubois.net>...
i8254: Convert PITCommonState to QOM realizefn
Instead of having the parent provide PITCommonClass::init,let the children override DeviceClass::realize themselves.This pushes the responsibility for saving and calling the parent'srealizefn to the children....
i8254: QOM'ify some more
Introduce type constant and avoid DO_UPCAST().
Prepares for PIT realizefn.
Signed-off-by: Andreas Färber <afaerber@suse.de>
isa: Use realizefn for ISADevice
Drop ISADeviceClass::init and the resulting no-op initfn and letchildren implement their own realizefn. Adapt error handling.Split off an instance_init where sensible.
i.MX: Improve EPIT timer code.
Signed-off-by: Jean-Christophe DUBOIS <jcd@tribudubois.net>Reviewed-by: Peter Chubb <peter.chubb@nicta.com.au>...
i.MX: split GPT and EPIT timer implementation
There is no common code between these 2 timer implementation.So it is better to split them.
Signed-off-by: Jean-Christophe DUBOIS <jcd@tribudubois.net>Message-id: 1368990197-19694-1-git-send-email-jcd@tribudubois.net...
Remove unnecessary break statements
Fix these warnings from cppcheck:
hw/display/cirrus_vga.c:2603:hw/sd/sd.c:348:hw/timer/exynos4210_mct.c:1033:target-arm/translate.c:9886:target-s390x/mem_helper.c:518:target-unicore32/translate.c:1936: style: Consecutive return, break, continue, goto or throw statements are unnecessary....
remove some double-includes
Some source files #include the same header more thanonce for no good reason. Remove second #includes insuch cases.
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
i.MX: implement a more correct version of EPIT timer.
This patch is providing a complete version of the EPIT timer.
Note, however that the GPT timer in the same file is still notcomplete.
Signed-off-by: Jean-Christophe DUBOIS <jcd@tribudubois.net>Message-id: 1365624982-15647-1-git-send-email-jcd@tribudubois.net...
pc: Update rtc_cmos on CPU hot-plug
It provides updated currently available CPUs count to BIOS on reboot.
Signed-off-by: Igor Mammedov <imammedo@redhat.com>Signed-off-by: Andreas Färber <afaerber@suse.de>
m48t59: QOM'ify ISA M48T59 NVRAM
Introduce type constant and cast macro to obsolete DO_UPCAST() andcontainer_of().
Prepares for ISA realizefn.
Signed-off-by: Andreas Färber <afaerber@suse.de>Signed-off-by: Andreas Färber <afaerber@suse.de>Message-id: 1367093935-29091-8-git-send-email-afaerber@suse.de...
mc146818rtc: QOM'ify
Introduce type constant and cast macro to obsolete DO_UPCAST().
Signed-off-by: Andreas Färber <afaerber@suse.de>Reviewed-by: Igor Mammedov <imammedo@redhat.com>Signed-off-by: Andreas Färber <afaerber@suse.de>...
arm: fix location of some include files
The recent rearrangement of include files had some minor errors: devices.h is not ARM specific and should not be in arm/ arm.h should be in arm/
Move these two headers to correct this.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>...
hw: move timer devices to hw/timer/, configure with default-configs/
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw: move MC146818RTC to hw/timer/, configure via default-configs/
hw: move target-independent files to subdirectories
This patch tackles all files that are compiled once, movingthem to subdirectories of hw/.
hw: make subdirectories for devices
Prepare the new directory structure.