Laurentiu Tudor | 512d13e | 2018-08-09 15:19:46 +0300 | [diff] [blame] | 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> |
Laurentiu Tudor | 1238f74 | 2018-08-09 15:19:47 +0300 | [diff] [blame] | 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 |
Laurentiu Tudor | 512d13e | 2018-08-09 15:19:46 +0300 | [diff] [blame] | 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 | }; |
| 44 | |
| 45 | int icid_tbl_sz = ARRAY_SIZE(icid_tbl); |
Laurentiu Tudor | dcb7f3d | 2018-08-09 15:19:48 +0300 | [diff] [blame^] | 46 | |
| 47 | #ifdef CONFIG_SYS_DPAA_FMAN |
| 48 | struct fman_icid_id_table fman_icid_tbl[] = { |
| 49 | /* port id, icid */ |
| 50 | SET_FMAN_ICID_ENTRY(0x02, FSL_DPAA1_STREAM_ID_END), |
| 51 | SET_FMAN_ICID_ENTRY(0x03, FSL_DPAA1_STREAM_ID_END), |
| 52 | SET_FMAN_ICID_ENTRY(0x04, FSL_DPAA1_STREAM_ID_END), |
| 53 | SET_FMAN_ICID_ENTRY(0x05, FSL_DPAA1_STREAM_ID_END), |
| 54 | SET_FMAN_ICID_ENTRY(0x06, FSL_DPAA1_STREAM_ID_END), |
| 55 | SET_FMAN_ICID_ENTRY(0x07, FSL_DPAA1_STREAM_ID_END), |
| 56 | SET_FMAN_ICID_ENTRY(0x08, FSL_DPAA1_STREAM_ID_END), |
| 57 | SET_FMAN_ICID_ENTRY(0x09, FSL_DPAA1_STREAM_ID_END), |
| 58 | SET_FMAN_ICID_ENTRY(0x0a, FSL_DPAA1_STREAM_ID_END), |
| 59 | SET_FMAN_ICID_ENTRY(0x0b, FSL_DPAA1_STREAM_ID_END), |
| 60 | SET_FMAN_ICID_ENTRY(0x0c, FSL_DPAA1_STREAM_ID_END), |
| 61 | SET_FMAN_ICID_ENTRY(0x0d, FSL_DPAA1_STREAM_ID_END), |
| 62 | SET_FMAN_ICID_ENTRY(0x28, FSL_DPAA1_STREAM_ID_END), |
| 63 | SET_FMAN_ICID_ENTRY(0x29, FSL_DPAA1_STREAM_ID_END), |
| 64 | SET_FMAN_ICID_ENTRY(0x2a, FSL_DPAA1_STREAM_ID_END), |
| 65 | SET_FMAN_ICID_ENTRY(0x2b, FSL_DPAA1_STREAM_ID_END), |
| 66 | SET_FMAN_ICID_ENTRY(0x2c, FSL_DPAA1_STREAM_ID_END), |
| 67 | SET_FMAN_ICID_ENTRY(0x2d, FSL_DPAA1_STREAM_ID_END), |
| 68 | SET_FMAN_ICID_ENTRY(0x10, FSL_DPAA1_STREAM_ID_END), |
| 69 | SET_FMAN_ICID_ENTRY(0x11, FSL_DPAA1_STREAM_ID_END), |
| 70 | SET_FMAN_ICID_ENTRY(0x30, FSL_DPAA1_STREAM_ID_END), |
| 71 | SET_FMAN_ICID_ENTRY(0x31, FSL_DPAA1_STREAM_ID_END), |
| 72 | }; |
| 73 | |
| 74 | int fman_icid_tbl_sz = ARRAY_SIZE(fman_icid_tbl); |
| 75 | #endif |