Split ISA and sysbus versions of m48t59 device
commitc124c4d13bcb19fc866e7f6de075f906fca6af4a
authorDavid Gibson <david@gibson.dropbear.id.au>
Tue, 8 Nov 2016 06:00:35 +0000 (8 17:00 +1100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Mon, 6 Feb 2017 01:33:21 +0000 (6 12:33 +1100)
treec66e94e375b8398b9e31068d73b31c0f3e6aac01
parent1fc125f5675df8f861c7a66fab6922c630a81eb6
Split ISA and sysbus versions of m48t59 device

The m48t59 device supports both ISA and direct sysbus attached versions of
the device in the one .c file.  This can be awkward for some embedded
machine types which need the sysbus M48T59, but don't want to pull in the
ISA bus code and its other dependencies.

Therefore, this patch splits out the code for the ISA attached M48T59 into
its own C file.  It will be built when both CONFIG_M48T59 and
CONFIG_ISA_BUS are enabled.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
hw/timer/Makefile.objs
hw/timer/m48t59-internal.h [new file with mode: 0644]
hw/timer/m48t59-isa.c [new file with mode: 0644]
hw/timer/m48t59.c