fsl-imx6ul: Add various missing unimplemented devices
PATCH 1/1 fsl-imx6ul: Add various missing unimplemented devices
Add MMDC, OCOTP, SQPI, CAAM, and USBMISC as unimplemented devices.
This allows operating systems such as Linux to run emulations such as mcimx6ul-evk.
Before commit 0cd4926b85 ("Refactor i.MX6UL processor code"), the affected memory ranges were covered by the unimplemented DAP device. The commit reduced the DAP address range from 0x100000 to 4kB, and the emulation thus no longer covered the various unimplemented devices in the affected address range.
---
This patch is necessary to boot mcimx6ul-evk with Linux v6.7.
My apologies for the noise if a similar patch has already been submitted and I missed it.
hw/arm/fsl-imx6ul.c | 30 ++++++++++++++++++++++++++++++ include/hw/arm/fsl-imx6ul.h | 2 ++ 2 files changed, 32 insertions(+)
hw/arm/fsl-imx6ul.c +30 -0
@@ -192,6 +192,36 @@ static void fsl_imx6ul_realize(DeviceState *dev, Error **errp)create_unimplemented_device ("a7mpcore-dap" ,FSL_IMX6UL_A7MPCORE_DAP_ADDR ,FSL_IMX6UL_A7MPCORE_DAP_SIZE ); +/* +* MMDC +*/ +create_unimplemented_device ("a7mpcore-mmdc" ,FSL_IMX6UL_MMDC_CFG_ADDR , +FSL_IMX6UL_MMDC_CFG_SIZE ); + +/* +* OCOTP +*/ +create_unimplemented_device ("a7mpcore-ocotp" ,FSL_IMX6UL_OCOTP_CTRL_ADDR , +FSL_IMX6UL_OCOTP_CTRL_SIZE ); + +/* +* QSPI +*/ +create_unimplemented_device ("a7mpcore-qspi" ,FSL_IMX6UL_QSPI_ADDR , +FSL_IMX6UL_QSPI_SIZE ); + +/* +* CAAM +*/ +create_unimplemented_device ("a7mpcore-qspi" ,FSL_IMX6UL_CAAM_ADDR , +FSL_IMX6UL_CAAM_SIZE ); + +/* +* USBMISC +*/ +create_unimplemented_device ("a7mpcore-usbmisc" ,FSL_IMX6UL_USBO2_USBMISC_ADDR , +FSL_IMX6UL_USBO2_USBMISC_SIZE ); +/* * GPTs */
include/hw/arm/fsl-imx6ul.h +2 -0
@@ -182,6 +182,8 @@ enum FslIMX6ULMemoryMap {FSL_IMX6UL_ENET1_ADDR =0x02188000 ,FSL_IMX6UL_USBO2_USBMISC_ADDR =0x02184800 , +FSL_IMX6UL_USBO2_USBMISC_SIZE =0x200 , +FSL_IMX6UL_USBO2_USB1_ADDR =0x02184000 , FSL_IMX6UL_USBO2_USB2_ADDR = 0x02184200,
Signature · 1 line
2.39.2
Quoted 17 lines · Guenter Roeck
Add MMDC, OCOTP, SQPI, CAAM, and USBMISC as unimplemented devices.
This allows operating systems such as Linux to run emulations such as mcimx6ul-evk.
Before commit
0cd4926b85("Refactor i.MX6UL processor code"), the affected memory ranges were covered by the unimplemented DAP device. The commit reduced the DAP address range from0x100000to 4kB, and the emulation thus no longer covered the various unimplemented devices in the affected address range.Fixes 0cd4926b85 ("Refactor i.MX6UL processor code")Cc Jean-Christophe Dubois <[email protected]>Signed-off-by Guenter Roeck <[email protected]>---
This patch is necessary to boot mcimx6ul-evk with Linux v6.7.
Quoted 6 lines
My apologies for the noise if a similar patch has already been submitted and I missed it.
hw/arm/fsl-imx6ul.c | 30 ++++++++++++++++++++++++++++++ include/hw/arm/fsl-imx6ul.h | 2 ++ 2 files changed, 32 insertions(+)
Peter Maydell
AppliedQuoted 12 lines · Guenter Roeck
Add MMDC, OCOTP, SQPI, CAAM, and USBMISC as unimplemented devices.
This allows operating systems such as Linux to run emulations such as mcimx6ul-evk.
Before commit
0cd4926b85("Refactor i.MX6UL processor code"), the affected memory ranges were covered by the unimplemented DAP device. The commit reduced the DAP address range from0x100000to 4kB, and the emulation thus no longer covered the various unimplemented devices in the affected address range.
Quoted 8 lines
Fixes 0cd4926b85 ("Refactor i.MX6UL processor code")Cc Jean-Christophe Dubois <[email protected]>Signed-off-by Guenter Roeck <[email protected]>---
This patch is necessary to boot mcimx6ul-evk with Linux v6.7.My apologies for the noise if a similar patch has already been submitted and I missed it.
Applied to target-arm.next, thanks.
-- PMM