mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
hw/arm/fsl-imx25: Wire up watchdog
With this commit, the watchdog on imx25-pdk is fully operational, including pretimeout support. Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net> Message-id: 20200517162135.110364-4-linux@roeck-us.net Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
daca13d495
commit
4f0aff00f9
3 changed files with 16 additions and 0 deletions
|
@ -29,6 +29,7 @@
|
|||
#include "hw/gpio/imx_gpio.h"
|
||||
#include "hw/sd/sdhci.h"
|
||||
#include "hw/usb/chipidea.h"
|
||||
#include "hw/watchdog/wdt_imx2.h"
|
||||
#include "exec/memory.h"
|
||||
#include "target/arm/cpu.h"
|
||||
|
||||
|
@ -60,6 +61,7 @@ typedef struct FslIMX25State {
|
|||
IMXGPIOState gpio[FSL_IMX25_NUM_GPIOS];
|
||||
SDHCIState esdhc[FSL_IMX25_NUM_ESDHCS];
|
||||
ChipideaState usb[FSL_IMX25_NUM_USBS];
|
||||
IMX2WdtState wdt;
|
||||
MemoryRegion rom[2];
|
||||
MemoryRegion iram;
|
||||
MemoryRegion iram_alias;
|
||||
|
@ -229,6 +231,8 @@ typedef struct FslIMX25State {
|
|||
#define FSL_IMX25_GPIO1_SIZE 0x4000
|
||||
#define FSL_IMX25_GPIO2_ADDR 0x53FD0000
|
||||
#define FSL_IMX25_GPIO2_SIZE 0x4000
|
||||
#define FSL_IMX25_WDT_ADDR 0x53FDC000
|
||||
#define FSL_IMX25_WDT_SIZE 0x4000
|
||||
#define FSL_IMX25_USB1_ADDR 0x53FF4000
|
||||
#define FSL_IMX25_USB1_SIZE 0x0200
|
||||
#define FSL_IMX25_USB2_ADDR 0x53FF4400
|
||||
|
@ -268,5 +272,6 @@ typedef struct FslIMX25State {
|
|||
#define FSL_IMX25_ESDHC2_IRQ 8
|
||||
#define FSL_IMX25_USB1_IRQ 37
|
||||
#define FSL_IMX25_USB2_IRQ 35
|
||||
#define FSL_IMX25_WDT_IRQ 55
|
||||
|
||||
#endif /* FSL_IMX25_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue