From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35924) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XJ1O7-0000uu-0B for qemu-devel@nongnu.org; Sun, 17 Aug 2014 10:24:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XJ1O1-0002zu-PM for qemu-devel@nongnu.org; Sun, 17 Aug 2014 10:24:50 -0400 Received: from edge20.ethz.ch ([82.130.99.26]:13230) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XJ1O1-0002zT-Ih for qemu-devel@nongnu.org; Sun, 17 Aug 2014 10:24:45 -0400 From: Fabian Aggeler Date: Sun, 17 Aug 2014 16:24:20 +0200 Message-ID: <1408285462-30066-1-git-send-email-aggelerf@ethz.ch> MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PATCH v3 0/2] Add SP810 to Versatile Express boards List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, peter.crosthwaite@xilinx.com Hi, The Versatile Express emulation in QEMU currently does not have a model of the SP810 used in real hardware. The registers provided by this System Controller can be used to set the frequency of the SP804 timers. On newer releases of the board the SP804 is set to 32kHz by default and has to be increased by writing to the SCCTRL. See: http://lists.infradead.org/pipermail/linux-arm-kernel/2011-January/038696.html Since QEMU sets the SP804 timers to 1MHz by default this should be reflected in the SCCTRL register. These two patches add a model of the SP804 to the vexpress-boards and sets the SCCTRL register so that software that queries this register behaves as expected. Feedback is greatly appreciated! Best, Fabian v2 -> v3: * removed duplicate comment * split SCCTRL property into 4 individual properties * moved initialisation back to vexpress.c v2: https://lists.nongnu.org/archive/html/qemu-devel/2014-08/msg00629.html v1 -> v2: * TIMERENXSEL prefixed with register name * removed casts * created header file v1: https://lists.nongnu.org/archive/html/qemu-devel/2014-07/msg02572.html Fabian Aggeler (2): hw/misc/arm_sp810: Create SP810 device hw/arm/vexpress: add SP810 to the vexpress default-configs/arm-softmmu.mak | 1 + hw/arm/vexpress.c | 13 ++++- hw/misc/Makefile.objs | 1 + hw/misc/arm_sp810.c | 109 ++++++++++++++++++++++++++++++++++++++++ include/hw/misc/arm_sp810.h | 80 +++++++++++++++++++++++++++++ 5 files changed, 202 insertions(+), 2 deletions(-) create mode 100644 hw/misc/arm_sp810.c create mode 100644 include/hw/misc/arm_sp810.h -- 1.8.3.2