diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2015-02-06 14:55:47 +1100 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2015-03-09 14:59:56 +0100 |
commit | 12f421745cd763742377c7134f48fa12fb889ee3 (patch) | |
tree | a10b274c4058d63993dcf0445f5e3f8a5b99b104 /hw/ppc/spapr.c | |
parent | 87774a4a4217b5cddc693f0678d0fc2bfc7f2ec1 (diff) |
pseries: Move sPAPR RTC code into its own file
At the moment the RTAS (firmware/hypervisor) time of day functions are
implemented in spapr_rtas.c along with a bunch of other things. Since
we're going to be expanding these a bit, move the RTAS RTC related code
out into new file spapr_rtc.c. Also add its own initialization function,
spapr_rtc_init() called from the main machine init routine.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'hw/ppc/spapr.c')
-rw-r--r-- | hw/ppc/spapr.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c index 7a1b8c6f45..cb0e54b69e 100644 --- a/hw/ppc/spapr.c +++ b/hw/ppc/spapr.c @@ -1491,6 +1491,9 @@ static void ppc_spapr_init(MachineState *machine) /* Set up EPOW events infrastructure */ spapr_events_init(spapr); + /* Set up the RTC RTAS interfaces */ + spapr_rtc_init(); + /* Set up VIO bus */ spapr->vio_bus = spapr_vio_bus_init(); |