diff options
author | Guenter Roeck <linux@roeck-us.net> | 2020-03-12 18:45:49 -0700 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2020-03-17 11:23:14 +0000 |
commit | 8e0c15852413936c7d619e469f681d8ef18c6f37 (patch) | |
tree | a033bc5e239d5d7f8ac8c0cd0658ab539ee751b8 /hw/arm | |
parent | 630e2af0ca248da764561cd695b9a7d7ad57e290 (diff) | |
download | qemu-8e0c15852413936c7d619e469f681d8ef18c6f37.zip qemu-8e0c15852413936c7d619e469f681d8ef18c6f37.tar.gz qemu-8e0c15852413936c7d619e469f681d8ef18c6f37.tar.bz2 |
hw/arm/fsl-imx6ul: Instantiate unimplemented pwm and can devices
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>
Message-id: 20200313014551.12554-4-linux@roeck-us.net
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/arm')
-rw-r--r-- | hw/arm/fsl-imx6ul.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/hw/arm/fsl-imx6ul.c b/hw/arm/fsl-imx6ul.c index c405b68..a0bcc6f 100644 --- a/hw/arm/fsl-imx6ul.c +++ b/hw/arm/fsl-imx6ul.c @@ -517,6 +517,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 */ create_unimplemented_device("aphb_dma", FSL_IMX6UL_APBH_DMA_ADDR, |