mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
hw/arm/fsl-imx31: Wire up watchdog
With this patch, the watchdog on i.MX31 emulations is fully operational. Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net> Message-id: 20200517162135.110364-5-linux@roeck-us.net Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
4f0aff00f9
commit
b9e521dda3
3 changed files with 11 additions and 0 deletions
|
@ -25,6 +25,7 @@
|
|||
#include "hw/timer/imx_epit.h"
|
||||
#include "hw/i2c/imx_i2c.h"
|
||||
#include "hw/gpio/imx_gpio.h"
|
||||
#include "hw/watchdog/wdt_imx2.h"
|
||||
#include "exec/memory.h"
|
||||
#include "target/arm/cpu.h"
|
||||
|
||||
|
@ -49,6 +50,7 @@ typedef struct FslIMX31State {
|
|||
IMXEPITState epit[FSL_IMX31_NUM_EPITS];
|
||||
IMXI2CState i2c[FSL_IMX31_NUM_I2CS];
|
||||
IMXGPIOState gpio[FSL_IMX31_NUM_GPIOS];
|
||||
IMX2WdtState wdt;
|
||||
MemoryRegion secure_rom;
|
||||
MemoryRegion rom;
|
||||
MemoryRegion iram;
|
||||
|
@ -87,6 +89,8 @@ typedef struct FslIMX31State {
|
|||
#define FSL_IMX31_GPIO1_SIZE 0x4000
|
||||
#define FSL_IMX31_GPIO2_ADDR 0x53FD0000
|
||||
#define FSL_IMX31_GPIO2_SIZE 0x4000
|
||||
#define FSL_IMX31_WDT_ADDR 0x53FDC000
|
||||
#define FSL_IMX31_WDT_SIZE 0x4000
|
||||
#define FSL_IMX31_AVIC_ADDR 0x68000000
|
||||
#define FSL_IMX31_AVIC_SIZE 0x100
|
||||
#define FSL_IMX31_SDRAM0_ADDR 0x80000000
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue