imx: imx8qm/qxp: check whether m4 partition booted
[oweals/u-boot.git] / drivers / pci / pcie_imx.c
index 10b8fb4c889ec1210404a109992baff6199e9e15..f34a157902fc837acee71137eefbd9859895ac54 100644 (file)
@@ -10,6 +10,8 @@
  */
 
 #include <common.h>
+#include <init.h>
+#include <malloc.h>
 #include <pci.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/iomux.h>
@@ -747,7 +749,7 @@ void pci_init_board(void)
        imx_pcie_init();
 }
 #else
-static int imx_pcie_dm_read_config(struct udevice *dev, pci_dev_t bdf,
+static int imx_pcie_dm_read_config(const struct udevice *dev, pci_dev_t bdf,
                                   uint offset, ulong *value,
                                   enum pci_size_t size)
 {
@@ -814,6 +816,7 @@ static const struct dm_pci_ops imx_pcie_ops = {
 
 static const struct udevice_id imx_pcie_ids[] = {
        { .compatible = "fsl,imx6q-pcie" },
+       { .compatible = "fsl,imx6sx-pcie" },
        { }
 };