]> git.sur5r.net Git - u-boot/blobdiff - arch/powerpc/include/asm/fsl_liodn.h
powerpc/85xx: introduce SET_PCI_LIODN_BASE, for setting PCI LIODNs
[u-boot] / arch / powerpc / include / asm / fsl_liodn.h
index c65f76370ff5d14fb37e2741b369b3336fea0120..a37983ee541973cb95cd484271286bc2463d255c 100644 (file)
@@ -94,6 +94,11 @@ extern void fdt_fixup_liodn(void *blob);
        SET_GUTS_LIODN(compat, liodn, pex##pciNum##liodnr,\
                CONFIG_SYS_MPC85xx_PCIE##pciNum##_OFFSET)
 
+#define SET_PCI_LIODN_BASE(compat, pciNum, liodn) \
+       SET_LIODN_ENTRY_1(compat, liodn,\
+               offsetof(ccsr_pcix_t, liodn_base) + CONFIG_SYS_MPC85xx_PCIE##pciNum##_OFFSET,\
+               CONFIG_SYS_MPC85xx_PCIE##pciNum##_OFFSET)
+
 /* reg nodes for DMA start @ 0x300 */
 #define SET_DMA_LIODN(dmaNum, liodn) \
        SET_GUTS_LIODN("fsl,eloplus-dma", liodn, dma##dmaNum##liodnr,\
@@ -175,12 +180,20 @@ extern void fdt_fixup_liodn(void *blob);
        offsetof(struct ccsr_raide, jq[jqNum].ring[rNum].cfg0) + \
        CONFIG_SYS_FSL_RAID_ENGINE_OFFSET)
 
+#define SET_RMAN_LIODN(ibNum, liodn) \
+       SET_LIODN_ENTRY_1("fsl,rman-inbound-block", liodn, \
+               offsetof(struct ccsr_rman, mmitdr) + \
+               CONFIG_SYS_FSL_CORENET_RMAN_OFFSET, \
+               CONFIG_SYS_FSL_CORENET_RMAN_OFFSET + ibNum * 0x1000)
+
 extern struct liodn_id_table liodn_tbl[], liodn_bases[], sec_liodn_tbl[];
 extern struct liodn_id_table raide_liodn_tbl[];
 extern struct liodn_id_table fman1_liodn_tbl[], fman2_liodn_tbl[];
 extern struct srio_liodn_id_table srio_liodn_tbl[];
+extern struct liodn_id_table rman_liodn_tbl[];
 extern int liodn_tbl_sz, sec_liodn_tbl_sz, raide_liodn_tbl_sz;
 extern int fman1_liodn_tbl_sz, fman2_liodn_tbl_sz;
 extern int srio_liodn_tbl_sz;
+extern int rman_liodn_tbl_sz;
 
 #endif