From: Guenter Roeck <linux@roeck-us.net>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: Andrey Smirnov <andrew.smirnov@gmail.com>,
qemu-devel@nongnu.org,
Jean-Christophe Dubois <jcd@tribudubois.net>,
qemu-arm@nongnu.org, Peter Chubb <peter.chubb@nicta.com.au>,
Guenter Roeck <linux@roeck-us.net>
Subject: [PATCH 0/8] hw/arm: Implement i.MX watchdog support
Date: Sat, 14 Mar 2020 10:27:28 -0700 [thread overview]
Message-ID: <20200314172736.24528-1-linux@roeck-us.net> (raw)
The current i.MX watchdog implementation only supports resets.
This patch series implements the full watchdog, including optional
pretimeout support.
Notable changes:
- The existing i.MX watchdog emulation (which only emulates syste resets)
is moved from hw/misc to hw/watchdog and renamed to match the naming
convention in hw/watchdog (patch 1/8).
- Full watchdog support is implemented in patch 2/8.
- The watchdog is wired up for i.MX25 and i.MX31 emulations (patch 3/8 and
4/8).
- The watchdog interrupt (for pretimeout support) is connected for
i.MX6, i.MX6UL, and i.MX7 emulations (patch 5/8, 6/8, and 8/8).
- For i.MX7, various devices are wired up as unimplemented
devices (patch 7/8). This was necessary to avoid crashes when
booting recent Linux kernels.
The code was tested with all available emulations.
----------------------------------------------------------------
Guenter Roeck (8):
hw: Move i.MX watchdog driver to hw/watchdog
hw/watchdog: Implement full i.MX watchdog support
hw/arm/fsl-imx25: Wire up watchdog
hw/arm/fsl-imx31: Wire up watchdog
hw/arm/fsl-imx6: Connect watchdog interrupts
hw/arm/fsl-imx6ul: Connect watchdog interrupts
hw/arm/fsl-imx7: Instantiate various unimplemented devices
hw/arm/fsl-imx7: Connect watchdog interrupts
MAINTAINERS | 2 +
hw/arm/fsl-imx25.c | 10 ++
hw/arm/fsl-imx31.c | 6 +
hw/arm/fsl-imx6.c | 9 ++
hw/arm/fsl-imx6ul.c | 10 ++
hw/arm/fsl-imx7.c | 35 ++++++
hw/misc/Makefile.objs | 1 -
hw/misc/imx2_wdt.c | 90 --------------
hw/watchdog/Kconfig | 5 +
hw/watchdog/Makefile.objs | 1 +
hw/watchdog/wdt_imx2.c | 262 +++++++++++++++++++++++++++++++++++++++++
include/hw/arm/fsl-imx25.h | 5 +
include/hw/arm/fsl-imx31.h | 4 +
include/hw/arm/fsl-imx6.h | 2 +-
include/hw/arm/fsl-imx6ul.h | 2 +-
include/hw/arm/fsl-imx7.h | 23 +++-
include/hw/misc/imx2_wdt.h | 33 ------
include/hw/watchdog/wdt_imx2.h | 78 ++++++++++++
18 files changed, 451 insertions(+), 127 deletions(-)
delete mode 100644 hw/misc/imx2_wdt.c
create mode 100644 hw/watchdog/wdt_imx2.c
delete mode 100644 include/hw/misc/imx2_wdt.h
create mode 100644 include/hw/watchdog/wdt_imx2.h
next reply other threads:[~2020-03-14 17:28 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-14 17:27 Guenter Roeck [this message]
2020-03-14 17:27 ` [PATCH 1/8] hw: Move i.MX watchdog driver to hw/watchdog Guenter Roeck
2020-03-14 21:43 ` Philippe Mathieu-Daudé
2020-03-14 21:46 ` Philippe Mathieu-Daudé
2020-03-14 22:11 ` Guenter Roeck
2020-03-14 17:27 ` [PATCH 2/8] hw/watchdog: Implement full i.MX watchdog support Guenter Roeck
2020-03-14 17:27 ` [PATCH 3/8] hw/arm/fsl-imx25: Wire up watchdog Guenter Roeck
2020-03-14 21:48 ` Philippe Mathieu-Daudé
2020-03-14 22:12 ` Guenter Roeck
2020-03-14 17:27 ` [PATCH 4/8] hw/arm/fsl-imx31: " Guenter Roeck
2020-03-14 21:50 ` Philippe Mathieu-Daudé
2020-03-14 22:12 ` Guenter Roeck
2020-03-14 17:27 ` [PATCH 5/8] hw/arm/fsl-imx6: Connect watchdog interrupts Guenter Roeck
2020-03-14 17:27 ` [PATCH 6/8] hw/arm/fsl-imx6ul: " Guenter Roeck
2020-03-14 17:27 ` [PATCH 7/8] hw/arm/fsl-imx7: Instantiate various unimplemented devices Guenter Roeck
2020-03-14 17:27 ` [PATCH 8/8] hw/arm/fsl-imx7: Connect watchdog interrupts Guenter Roeck
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200314172736.24528-1-linux@roeck-us.net \
--to=linux@roeck-us.net \
--cc=andrew.smirnov@gmail.com \
--cc=jcd@tribudubois.net \
--cc=peter.chubb@nicta.com.au \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).