mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
hw/arm/fsl-imx8mp: Add USB support
Split the USB MMIO regions to better keep track of the implemented vs. unimplemented regions. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Bernhard Beschow <shentey@gmail.com> Message-id: 20250223114708.1780-16-shentey@gmail.com [PMM: drop "static const" from usb_table for GCC 7.5] Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
0c105b2615
commit
4226c39fea
4 changed files with 49 additions and 2 deletions
|
@ -24,6 +24,7 @@
|
|||
#include "hw/sd/sdhci.h"
|
||||
#include "hw/ssi/imx_spi.h"
|
||||
#include "hw/timer/imx_gpt.h"
|
||||
#include "hw/usb/hcd-dwc3.h"
|
||||
#include "hw/watchdog/wdt_imx2.h"
|
||||
#include "qom/object.h"
|
||||
#include "qemu/units.h"
|
||||
|
@ -42,6 +43,7 @@ enum FslImx8mpConfiguration {
|
|||
FSL_IMX8MP_NUM_I2CS = 6,
|
||||
FSL_IMX8MP_NUM_IRQS = 160,
|
||||
FSL_IMX8MP_NUM_UARTS = 4,
|
||||
FSL_IMX8MP_NUM_USBS = 2,
|
||||
FSL_IMX8MP_NUM_USDHCS = 3,
|
||||
FSL_IMX8MP_NUM_WDTS = 3,
|
||||
};
|
||||
|
@ -62,6 +64,7 @@ struct FslImx8mpState {
|
|||
IMXFECState enet;
|
||||
SDHCIState usdhc[FSL_IMX8MP_NUM_USDHCS];
|
||||
IMX2WdtState wdt[FSL_IMX8MP_NUM_WDTS];
|
||||
USBDWC3 usb[FSL_IMX8MP_NUM_USBS];
|
||||
DesignwarePCIEHost pcie;
|
||||
FslImx8mPciePhyState pcie_phy;
|
||||
OrIRQState gpt5_gpt6_irq;
|
||||
|
@ -199,6 +202,12 @@ enum FslImx8mpMemoryRegions {
|
|||
FSL_IMX8MP_UART4,
|
||||
FSL_IMX8MP_USB1,
|
||||
FSL_IMX8MP_USB2,
|
||||
FSL_IMX8MP_USB1_DEV,
|
||||
FSL_IMX8MP_USB2_DEV,
|
||||
FSL_IMX8MP_USB1_OTG,
|
||||
FSL_IMX8MP_USB2_OTG,
|
||||
FSL_IMX8MP_USB1_GLUE,
|
||||
FSL_IMX8MP_USB2_GLUE,
|
||||
FSL_IMX8MP_USDHC1,
|
||||
FSL_IMX8MP_USDHC2,
|
||||
FSL_IMX8MP_USDHC3,
|
||||
|
@ -234,6 +243,9 @@ enum FslImx8mpIrqs {
|
|||
FSL_IMX8MP_I2C3_IRQ = 37,
|
||||
FSL_IMX8MP_I2C4_IRQ = 38,
|
||||
|
||||
FSL_IMX8MP_USB1_IRQ = 40,
|
||||
FSL_IMX8MP_USB2_IRQ = 41,
|
||||
|
||||
FSL_IMX8MP_GPT1_IRQ = 55,
|
||||
FSL_IMX8MP_GPT2_IRQ = 54,
|
||||
FSL_IMX8MP_GPT3_IRQ = 53,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue