qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v2 0/4] omap_gpio: convert to qdev
@ 2011-07-08 16:56 Peter Maydell
  2011-07-08 16:56 ` [Qemu-devel] [PATCH v2 1/4] hw/omap_l4.c: Add helper function omap_l4_region_base Peter Maydell
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Peter Maydell @ 2011-07-08 16:56 UTC (permalink / raw)
  To: qemu-devel; +Cc: Riku Voipio, Juha Riihimäki, patches

These patches are changes from the meego omap3 tree which convert
the omap GPIO module device to use qdev.

Changes v1->v2:
 * renamed omap_l4_base() to omap_l4_region_base()
 * provide two qdev devices 'omap-gpio' and 'omap2-gpio' rather than
   trying to shoehorn two significantly different devices into one
   (and use hyphen rather than underscore in the device name)
 * wire up the omap clocks to the gpio modules as qdev properties
   (including adding a missing omap2 clock definition...)

We use qdev pointer properties for the omap clocks. This is not ideal.
My preference would be for qdev to support a generic means of defining
a 'port' with an arbitrary interface for connecting two devices. Then
we could reframe the omap clock API in terms of clock ports, and get
some type safety. For now passing an arbitrary pointer seems like the
best pragmatic interim solution. (It's not possible to pass in the
string which is the clock name, because the device does not have the
necessary information (ie the struct omap_mpu_state_s*) to do the
clockname to pointer translation.)

Juha Riihimäki (2):
  hw/omap_l4.c: Add helper function omap_l4_region_base
  hw/omap_gpio.c: Convert to qdev

Peter Maydell (2):
  hw/omap_gpio.c: Don't complain about some writes to r/o registers
  hw/omap_clk: Add the clock for the OMAP2430-specific fifth GPIO
    module

 hw/nseries.c   |   47 +++++-----
 hw/omap.h      |   22 +----
 hw/omap1.c     |   10 ++-
 hw/omap2.c     |   34 ++++++--
 hw/omap_clk.c  |    6 +-
 hw/omap_gpio.c |  263 ++++++++++++++++++++++++++++++++-----------------------
 hw/omap_l4.c   |    6 ++
 hw/palm.c      |   26 +++---
 8 files changed, 235 insertions(+), 179 deletions(-)

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

end of thread, other threads:[~2011-07-26 18:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-08 16:56 [Qemu-devel] [PATCH v2 0/4] omap_gpio: convert to qdev Peter Maydell
2011-07-08 16:56 ` [Qemu-devel] [PATCH v2 1/4] hw/omap_l4.c: Add helper function omap_l4_region_base Peter Maydell
2011-07-08 16:56 ` [Qemu-devel] [PATCH v2 2/4] hw/omap_gpio.c: Don't complain about some writes to r/o registers Peter Maydell
2011-07-08 16:56 ` [Qemu-devel] [PATCH v2 3/4] hw/omap_clk: Add the clock for the OMAP2430-specific fifth GPIO module Peter Maydell
2011-07-08 16:56 ` [Qemu-devel] [PATCH v2 4/4] hw/omap_gpio.c: Convert to qdev Peter Maydell
2011-07-26 18:07 ` [Qemu-devel] [PATCH v2 0/4] omap_gpio: convert " Peter Maydell

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).