mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
hw: Move Aspeed RTC from hw/timer/ to hw/rtc/ subdirectory
Move RTC devices under the hw/rtc/ subdirectory. Reviewed-by: Cédric Le Goater <clg@kaod.org> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Acked-by: Peter Maydell <peter.maydell@linaro.org> Message-Id: <20191003230404.19384-12-philmd@redhat.com> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
This commit is contained in:
parent
7f0df1ccdf
commit
ea5dcf4e1d
7 changed files with 11 additions and 10 deletions
30
include/hw/rtc/aspeed_rtc.h
Normal file
30
include/hw/rtc/aspeed_rtc.h
Normal file
|
@ -0,0 +1,30 @@
|
|||
/*
|
||||
* ASPEED Real Time Clock
|
||||
* Joel Stanley <joel@jms.id.au>
|
||||
*
|
||||
* Copyright 2019 IBM Corp
|
||||
* SPDX-License-Identifier: GPL-2.0-or-later
|
||||
*/
|
||||
#ifndef HW_RTC_ASPEED_RTC_H
|
||||
#define HW_RTC_ASPEED_RTC_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#include "hw/irq.h"
|
||||
#include "hw/sysbus.h"
|
||||
|
||||
typedef struct AspeedRtcState {
|
||||
SysBusDevice parent_obj;
|
||||
|
||||
MemoryRegion iomem;
|
||||
qemu_irq irq;
|
||||
|
||||
uint32_t reg[0x18];
|
||||
int offset;
|
||||
|
||||
} AspeedRtcState;
|
||||
|
||||
#define TYPE_ASPEED_RTC "aspeed.rtc"
|
||||
#define ASPEED_RTC(obj) OBJECT_CHECK(AspeedRtcState, (obj), TYPE_ASPEED_RTC)
|
||||
|
||||
#endif /* HW_RTC_ASPEED_RTC_H */
|
Loading…
Add table
Add a link
Reference in a new issue