qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v2 0/2] Add SP810 to Versatile Express boards
@ 2014-08-05  9:32 Fabian Aggeler
  2014-08-05  9:32 ` [Qemu-devel] [PATCH v2 1/2] hw/misc/arm_sp810: Create SP810 device Fabian Aggeler
  2014-08-05  9:32 ` [Qemu-devel] [PATCH v2 2/2] hw/arm/vexpress: add SP810 to the vexpress Fabian Aggeler
  0 siblings, 2 replies; 6+ messages in thread
From: Fabian Aggeler @ 2014-08-05  9:32 UTC (permalink / raw)
  To: qemu-devel; +Cc: peter.maydell, peter.crosthwaite, alex.bennee

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

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               |  6 ++-
 hw/misc/Makefile.objs           |  1 +
 hw/misc/arm_sp810.c             | 98 +++++++++++++++++++++++++++++++++++++++++
 include/hw/misc/arm_sp810.h     | 85 +++++++++++++++++++++++++++++++++++
 5 files changed, 190 insertions(+), 1 deletion(-)
 create mode 100644 hw/misc/arm_sp810.c
 create mode 100644 include/hw/misc/arm_sp810.h

-- 
1.8.3.2

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-08-12  7:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-05  9:32 [Qemu-devel] [PATCH v2 0/2] Add SP810 to Versatile Express boards Fabian Aggeler
2014-08-05  9:32 ` [Qemu-devel] [PATCH v2 1/2] hw/misc/arm_sp810: Create SP810 device Fabian Aggeler
2014-08-05 23:03   ` Peter Crosthwaite
2014-08-06 15:55     ` Aggeler  Fabian
2014-08-12  7:49       ` Peter Crosthwaite
2014-08-05  9:32 ` [Qemu-devel] [PATCH v2 2/2] hw/arm/vexpress: add SP810 to the vexpress Fabian Aggeler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).