mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
hw/arm/fsl-imx8mp: Add USDHC storage controllers
The USDHC emulation allows for running real-world images such as those generated by Buildroot. Convert the board documentation accordingly instead of running a Linux kernel with ephemeral storage. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Bernhard Beschow <shentey@gmail.com> Message-id: 20250223114708.1780-8-shentey@gmail.com [PMM: drop 'static const' from usdhc_table[] for GCC 7.5] Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
487967bed6
commit
a81193c3e9
5 changed files with 66 additions and 6 deletions
|
@ -15,6 +15,7 @@
|
|||
#include "hw/misc/imx7_snvs.h"
|
||||
#include "hw/misc/imx8mp_analog.h"
|
||||
#include "hw/misc/imx8mp_ccm.h"
|
||||
#include "hw/sd/sdhci.h"
|
||||
#include "qom/object.h"
|
||||
#include "qemu/units.h"
|
||||
|
||||
|
@ -28,6 +29,7 @@ enum FslImx8mpConfiguration {
|
|||
FSL_IMX8MP_NUM_CPUS = 4,
|
||||
FSL_IMX8MP_NUM_IRQS = 160,
|
||||
FSL_IMX8MP_NUM_UARTS = 4,
|
||||
FSL_IMX8MP_NUM_USDHCS = 3,
|
||||
};
|
||||
|
||||
struct FslImx8mpState {
|
||||
|
@ -39,6 +41,7 @@ struct FslImx8mpState {
|
|||
IMX8MPAnalogState analog;
|
||||
IMX7SNVSState snvs;
|
||||
IMXSerialState uart[FSL_IMX8MP_NUM_UARTS];
|
||||
SDHCIState usdhc[FSL_IMX8MP_NUM_USDHCS];
|
||||
};
|
||||
|
||||
enum FslImx8mpMemoryRegions {
|
||||
|
@ -184,6 +187,10 @@ enum FslImx8mpMemoryRegions {
|
|||
};
|
||||
|
||||
enum FslImx8mpIrqs {
|
||||
FSL_IMX8MP_USDHC1_IRQ = 22,
|
||||
FSL_IMX8MP_USDHC2_IRQ = 23,
|
||||
FSL_IMX8MP_USDHC3_IRQ = 24,
|
||||
|
||||
FSL_IMX8MP_UART1_IRQ = 26,
|
||||
FSL_IMX8MP_UART2_IRQ = 27,
|
||||
FSL_IMX8MP_UART3_IRQ = 28,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue