mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
hw/arm: Add watchdog timer to Allwinner H40 and Bananapi board
Add watchdog timer support to Allwinner-H40 and Bananapi. The watchdog timer is added as an overlay to the Timer module memory map. Signed-off-by: Guenter Roeck <linux@roeck-us.net> Reviewed-by: Strahinja Jankovic <strahinja.p.jankovic@gmail.com> Message-id: 20240115182757.1095012-4-linux@roeck-us.net Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
2a02da74f2
commit
2af71d28e7
4 changed files with 13 additions and 1 deletions
|
@ -33,6 +33,7 @@
|
|||
#include "hw/net/allwinner-sun8i-emac.h"
|
||||
#include "hw/usb/hcd-ohci.h"
|
||||
#include "hw/usb/hcd-ehci.h"
|
||||
#include "hw/watchdog/allwinner-wdt.h"
|
||||
#include "target/arm/cpu.h"
|
||||
#include "sysemu/block-backend.h"
|
||||
|
||||
|
@ -54,6 +55,7 @@ enum {
|
|||
AW_R40_DEV_OHCI2,
|
||||
AW_R40_DEV_CCU,
|
||||
AW_R40_DEV_PIT,
|
||||
AW_R40_DEV_WDT,
|
||||
AW_R40_DEV_UART0,
|
||||
AW_R40_DEV_UART1,
|
||||
AW_R40_DEV_UART2,
|
||||
|
@ -114,6 +116,7 @@ struct AwR40State {
|
|||
const hwaddr *memmap;
|
||||
AwSRAMCState sramc;
|
||||
AwA10PITState timer;
|
||||
AwWdtState wdt;
|
||||
AllwinnerAHCIState sata;
|
||||
AwSdHostState mmc[AW_R40_NUM_MMCS];
|
||||
EHCISysBusState ehci[AW_R40_NUM_USB];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue