From: Guenter Roeck <linux@roeck-us.net>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: qemu-devel@nongnu.org, qemu-arm@nongnu.org,
Gerd Hoffmann <kraxel@redhat.com>,
Guenter Roeck <linux@roeck-us.net>,
Jean-Christophe Dubois <jcd@tribudubois.net>
Subject: [PATCH v3 3/5] hw/arm/fsl-imx6ul: Instantiate unimplemented pwm and can devices
Date: Thu, 12 Mar 2020 18:45:49 -0700 [thread overview]
Message-ID: <20200313014551.12554-4-linux@roeck-us.net> (raw)
In-Reply-To: <20200313014551.12554-1-linux@roeck-us.net>
Recent Linux kernels (post v4.20) crash due to accesses to flexcan
and pwm controllers. Instantiate as unimplemented devices to work
around the problem.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
---
v3: New patch
hw/arm/fsl-imx6ul.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/hw/arm/fsl-imx6ul.c b/hw/arm/fsl-imx6ul.c
index c405b68d1d..a0bcc6f895 100644
--- a/hw/arm/fsl-imx6ul.c
+++ b/hw/arm/fsl-imx6ul.c
@@ -516,6 +516,20 @@ static void fsl_imx6ul_realize(DeviceState *dev, Error **errp)
*/
create_unimplemented_device("sdma", FSL_IMX6UL_SDMA_ADDR, 0x4000);
+ /*
+ * PWM
+ */
+ create_unimplemented_device("pwm1", FSL_IMX6UL_PWM1_ADDR, 0x4000);
+ create_unimplemented_device("pwm2", FSL_IMX6UL_PWM2_ADDR, 0x4000);
+ create_unimplemented_device("pwm3", FSL_IMX6UL_PWM3_ADDR, 0x4000);
+ create_unimplemented_device("pwm4", FSL_IMX6UL_PWM4_ADDR, 0x4000);
+
+ /*
+ * CAN
+ */
+ create_unimplemented_device("can1", FSL_IMX6UL_CAN1_ADDR, 0x4000);
+ create_unimplemented_device("can2", FSL_IMX6UL_CAN2_ADDR, 0x4000);
+
/*
* APHB_DMA
*/
--
2.17.1
next prev parent reply other threads:[~2020-03-13 1:50 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-13 1:45 [PATCH v3 0/5] Wire up USB controllers in i.MX6 emulations Guenter Roeck
2020-03-13 1:45 ` [PATCH v3 1/5] hw/usb: Add basic i.MX USB Phy support Guenter Roeck
2021-05-19 19:00 ` Philippe Mathieu-Daudé
2023-03-16 13:41 ` Peter Maydell
2023-03-16 14:12 ` Guenter Roeck
2023-03-16 14:51 ` Peter Maydell
2023-03-16 17:07 ` Guenter Roeck
2020-03-13 1:45 ` [PATCH v3 2/5] hw/arm/fsl-imx6ul: Fix USB interrupt numbers Guenter Roeck
2020-03-13 1:45 ` Guenter Roeck [this message]
2020-03-13 1:45 ` [PATCH v3 4/5] hw/arm/fsl-imx6ul: Wire up USB controllers Guenter Roeck
2020-03-13 1:45 ` [PATCH v3 5/5] hw/arm/fsl-imx6: " Guenter Roeck
2020-03-13 11:25 ` [PATCH v3 0/5] Wire up USB controllers in i.MX6 emulations Peter Maydell
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=20200313014551.12554-4-linux@roeck-us.net \
--to=linux@roeck-us.net \
--cc=jcd@tribudubois.net \
--cc=kraxel@redhat.com \
--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).