qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCHv3 0/2] m48t59: add year offset and sysbus device
@ 2015-02-14  8:52 Mark Cave-Ayland
  2015-02-14  8:52 ` [Qemu-devel] [PATCHv3 1/2] m48t59: introduce new base_year qdev property Mark Cave-Ayland
  2015-02-14  8:52 ` [Qemu-devel] [PATCHv3 2/2] m48t59: add m48t59 sysbus device Mark Cave-Ayland
  0 siblings, 2 replies; 6+ messages in thread
From: Mark Cave-Ayland @ 2015-02-14  8:52 UTC (permalink / raw)
  To: qemu-devel, qemu-ppc, agraf, andreas.faerber, hpoussin, atar4qemu

This patchset lays the groundwork for switching sun4u over from ioport NVRAM
access to MMIO NVRAM access.

Patch 1 introduces a new base_year property which represents the base year of
the zero hardware year value. In particular, Sun hardware has a base year of 
1968 used to extend the date range of the IC. While the kernel sources I have
viewed contain this offset within a #ifdef CONFIG_SPARC block, I've updated all 
the callers so that no change in behaviour will be seen across all platforms. 
PPC users may wish to alter the callers to change this behaviour as required.

Patch 2 adds a new m48t59 sysbus device in preparation for use with sun4u in a
subsequent patch.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>

v3:
Change year_offset qdev parameter to base_year to match mc146818rtc as
suggested by Hervé.

v2:
Rebase upon master plus Hervé's isa_mem_base and m48t59 QOM patchsets
Remove addition of mem_base parameter to m48t59_init_isa()

Mark Cave-Ayland (2):
  m48t59: introduce new base_year qdev property
  m48t59: add m48t59 sysbus device

 hw/ppc/ppc405_boards.c    |    2 +-
 hw/ppc/prep.c             |    2 +-
 hw/sparc/sun4m.c          |    2 +-
 hw/sparc64/sun4u.c        |    2 +-
 hw/timer/m48t59.c         |   31 +++++++++++++++++++------------
 include/hw/timer/m48t59.h |    5 +++--
 6 files changed, 26 insertions(+), 18 deletions(-)

-- 
1.7.10.4

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

end of thread, other threads:[~2015-02-16 22:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-14  8:52 [Qemu-devel] [PATCHv3 0/2] m48t59: add year offset and sysbus device Mark Cave-Ayland
2015-02-14  8:52 ` [Qemu-devel] [PATCHv3 1/2] m48t59: introduce new base_year qdev property Mark Cave-Ayland
2015-02-14 18:16   ` Hervé Poussineau
2015-02-16 22:35     ` Mark Cave-Ayland
2015-02-14  8:52 ` [Qemu-devel] [PATCHv3 2/2] m48t59: add m48t59 sysbus device Mark Cave-Ayland
2015-02-14 18:07   ` Hervé Poussineau

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