1 // SPDX-License-Identifier: GPL-2.0+ 2 /* 3 * Copyright 2018 NXP 4 */ 5 6 #include <common.h> 7 #include <asm/arch-fsl-layerscape/immap_lsch2.h> 8 #include <asm/arch-fsl-layerscape/fsl_icid.h> 9 #include <asm/arch-fsl-layerscape/fsl_portals.h> 10 11 #ifdef CONFIG_SYS_DPAA_QBMAN 12 struct qportal_info qp_info[CONFIG_SYS_QMAN_NUM_PORTALS] = { 13 SET_QP_INFO(FSL_DPAA1_STREAM_ID_END, 0), 14 SET_QP_INFO(FSL_DPAA1_STREAM_ID_END, 0), 15 SET_QP_INFO(FSL_DPAA1_STREAM_ID_END, 0), 16 SET_QP_INFO(FSL_DPAA1_STREAM_ID_END, 0), 17 SET_QP_INFO(FSL_DPAA1_STREAM_ID_END, 0), 18 SET_QP_INFO(FSL_DPAA1_STREAM_ID_END, 0), 19 SET_QP_INFO(FSL_DPAA1_STREAM_ID_END, 0), 20 SET_QP_INFO(FSL_DPAA1_STREAM_ID_END, 0), 21 SET_QP_INFO(FSL_DPAA1_STREAM_ID_END, 0), 22 SET_QP_INFO(FSL_DPAA1_STREAM_ID_END, 0), 23 }; 24 #endif 25 26 struct icid_id_table icid_tbl[] = { 27 #ifdef CONFIG_SYS_DPAA_QBMAN 28 SET_QMAN_ICID(FSL_DPAA1_STREAM_ID_START), 29 SET_BMAN_ICID(FSL_DPAA1_STREAM_ID_START + 1), 30 #endif 31 32 SET_SDHC_ICID(FSL_SDHC_STREAM_ID), 33 34 SET_USB_ICID(1, "snps,dwc3", FSL_USB1_STREAM_ID), 35 SET_USB_ICID(2, "snps,dwc3", FSL_USB2_STREAM_ID), 36 SET_USB_ICID(3, "snps,dwc3", FSL_USB3_STREAM_ID), 37 38 SET_SATA_ICID("fsl,ls1046a-ahci", FSL_SATA_STREAM_ID), 39 SET_QDMA_ICID("fsl,ls1046a-qdma", FSL_QDMA_STREAM_ID), 40 SET_EDMA_ICID(FSL_EDMA_STREAM_ID), 41 SET_ETR_ICID(FSL_ETR_STREAM_ID), 42 SET_DEBUG_ICID(FSL_DEBUG_STREAM_ID), 43 #ifdef CONFIG_FSL_CAAM 44 SET_SEC_QI_ICID(FSL_DPAA1_STREAM_ID_START + 2), 45 SET_SEC_JR_ICID_ENTRY(0, FSL_DPAA1_STREAM_ID_START + 3), 46 SET_SEC_JR_ICID_ENTRY(1, FSL_DPAA1_STREAM_ID_START + 4), 47 SET_SEC_JR_ICID_ENTRY(2, FSL_DPAA1_STREAM_ID_START + 5), 48 SET_SEC_JR_ICID_ENTRY(3, FSL_DPAA1_STREAM_ID_START + 6), 49 SET_SEC_RTIC_ICID_ENTRY(0, FSL_DPAA1_STREAM_ID_START + 7), 50 SET_SEC_RTIC_ICID_ENTRY(1, FSL_DPAA1_STREAM_ID_START + 8), 51 SET_SEC_RTIC_ICID_ENTRY(2, FSL_DPAA1_STREAM_ID_START + 9), 52 SET_SEC_RTIC_ICID_ENTRY(3, FSL_DPAA1_STREAM_ID_START + 10), 53 SET_SEC_DECO_ICID_ENTRY(0, FSL_DPAA1_STREAM_ID_START + 11), 54 SET_SEC_DECO_ICID_ENTRY(1, FSL_DPAA1_STREAM_ID_START + 12), 55 SET_SEC_DECO_ICID_ENTRY(2, FSL_DPAA1_STREAM_ID_START + 13), 56 #endif 57 }; 58 59 int icid_tbl_sz = ARRAY_SIZE(icid_tbl); 60 61 #ifdef CONFIG_SYS_DPAA_FMAN 62 struct fman_icid_id_table fman_icid_tbl[] = { 63 /* port id, icid */ 64 SET_FMAN_ICID_ENTRY(0x02, FSL_DPAA1_STREAM_ID_END), 65 SET_FMAN_ICID_ENTRY(0x03, FSL_DPAA1_STREAM_ID_END), 66 SET_FMAN_ICID_ENTRY(0x04, FSL_DPAA1_STREAM_ID_END), 67 SET_FMAN_ICID_ENTRY(0x05, FSL_DPAA1_STREAM_ID_END), 68 SET_FMAN_ICID_ENTRY(0x06, FSL_DPAA1_STREAM_ID_END), 69 SET_FMAN_ICID_ENTRY(0x07, FSL_DPAA1_STREAM_ID_END), 70 SET_FMAN_ICID_ENTRY(0x08, FSL_DPAA1_STREAM_ID_END), 71 SET_FMAN_ICID_ENTRY(0x09, FSL_DPAA1_STREAM_ID_END), 72 SET_FMAN_ICID_ENTRY(0x0a, FSL_DPAA1_STREAM_ID_END), 73 SET_FMAN_ICID_ENTRY(0x0b, FSL_DPAA1_STREAM_ID_END), 74 SET_FMAN_ICID_ENTRY(0x0c, FSL_DPAA1_STREAM_ID_END), 75 SET_FMAN_ICID_ENTRY(0x0d, FSL_DPAA1_STREAM_ID_END), 76 SET_FMAN_ICID_ENTRY(0x28, FSL_DPAA1_STREAM_ID_END), 77 SET_FMAN_ICID_ENTRY(0x29, FSL_DPAA1_STREAM_ID_END), 78 SET_FMAN_ICID_ENTRY(0x2a, FSL_DPAA1_STREAM_ID_END), 79 SET_FMAN_ICID_ENTRY(0x2b, FSL_DPAA1_STREAM_ID_END), 80 SET_FMAN_ICID_ENTRY(0x2c, FSL_DPAA1_STREAM_ID_END), 81 SET_FMAN_ICID_ENTRY(0x2d, FSL_DPAA1_STREAM_ID_END), 82 SET_FMAN_ICID_ENTRY(0x10, FSL_DPAA1_STREAM_ID_END), 83 SET_FMAN_ICID_ENTRY(0x11, FSL_DPAA1_STREAM_ID_END), 84 SET_FMAN_ICID_ENTRY(0x30, FSL_DPAA1_STREAM_ID_END), 85 SET_FMAN_ICID_ENTRY(0x31, FSL_DPAA1_STREAM_ID_END), 86 }; 87 88 int fman_icid_tbl_sz = ARRAY_SIZE(fman_icid_tbl); 89 #endif 90