imx: imx8qm/qxp: check whether m4 partition booted
[oweals/u-boot.git] / drivers / pci / pcie_fsl.h
index 5eefc31fa9af3df34bfe6c75af06a3ce38d77c98..dc8368d55923bc74ceb0c5e73fe6520e1e16d687 100644 (file)
@@ -9,6 +9,9 @@
 #ifndef _PCIE_FSL_H_
 #define _PCIE_FSL_H_
 
+/* GPEX CSR */
+#define CSR_CLASSCODE                  0x474
+
 #ifdef CONFIG_SYS_FSL_PCI_VER_3_X
 #define FSL_PCIE_CAP_ID                        0x70
 #else
 #define LTSSM_L0_REV3                  0x11
 #define LTSSM_L0                       0x16
 
+struct fsl_pcie_data {
+       u32 block_offset;               /* Offset from CCSR of 1st controller */
+       u32 block_offset_mask;          /* Mask out the CCSR base */
+       u32 stride;                     /* Offset stride between controllers */
+};
+
 struct fsl_pcie {
        int idx;
        struct udevice *bus;
@@ -49,6 +58,7 @@ struct fsl_pcie {
        bool mode;                      /* RC&EP mode flag */
        bool enabled;                   /* Enable status */
        struct list_head list;
+       struct fsl_pcie_data *info;
 };
 
 extern struct list_head fsl_pcie_list;