xref: /openbmc/u-boot/arch/powerpc/cpu/mpc85xx/t1040_ids.c (revision 83d290c56fab2d38cd1ab4c4cc7099559c1d5046)
1*83d290c5STom Rini // SPDX-License-Identifier: GPL-2.0+
25f208d11SYork Sun /*
35f208d11SYork Sun  * Copyright 2012 Freescale Semiconductor, Inc.
45f208d11SYork Sun  */
55f208d11SYork Sun 
65f208d11SYork Sun #include <common.h>
75f208d11SYork Sun #include <asm/fsl_portals.h>
85f208d11SYork Sun #include <asm/fsl_liodn.h>
95f208d11SYork Sun 
105f208d11SYork Sun #ifdef CONFIG_SYS_DPAA_QBMAN
115f208d11SYork Sun struct qportal_info qp_info[CONFIG_SYS_QMAN_NUM_PORTALS] = {
125f208d11SYork Sun 	/* dqrr liodn, frame data liodn, liodn off, sdest */
135f208d11SYork Sun 	SET_QP_INFO(1, 27, 1, 0),
145f208d11SYork Sun 	SET_QP_INFO(2, 28, 1, 0),
155f208d11SYork Sun 	SET_QP_INFO(3, 29, 1, 1),
165f208d11SYork Sun 	SET_QP_INFO(4, 30, 1, 1),
175f208d11SYork Sun 	SET_QP_INFO(5, 31, 1, 2),
185f208d11SYork Sun 	SET_QP_INFO(6, 32, 1, 2),
195f208d11SYork Sun 	SET_QP_INFO(7, 33, 1, 3),
205f208d11SYork Sun 	SET_QP_INFO(8, 34, 1, 3),
215f208d11SYork Sun 	SET_QP_INFO(9, 35, 1, 0),
225f208d11SYork Sun 	SET_QP_INFO(10, 36, 1, 0),
235f208d11SYork Sun };
245f208d11SYork Sun #endif
255f208d11SYork Sun 
265f208d11SYork Sun struct liodn_id_table liodn_tbl[] = {
275f208d11SYork Sun #ifdef CONFIG_SYS_DPAA_QBMAN
285f208d11SYork Sun 	SET_QMAN_LIODN(62),
295f208d11SYork Sun 	SET_BMAN_LIODN(63),
305f208d11SYork Sun #endif
315f208d11SYork Sun 
325f208d11SYork Sun 	SET_SDHC_LIODN(1, 552),
335f208d11SYork Sun 
342892ec5fSPriyanka Jain 	SET_PME_LIODN(117),
355f208d11SYork Sun 
362892ec5fSPriyanka Jain 	SET_USB_LIODN(1, "fsl-usb2-mph", 553),
372892ec5fSPriyanka Jain 	SET_USB_LIODN(2, "fsl-usb2-dr", 554),
382892ec5fSPriyanka Jain 
392892ec5fSPriyanka Jain 	SET_SATA_LIODN(1, 555),
402892ec5fSPriyanka Jain 	SET_SATA_LIODN(2, 556),
412892ec5fSPriyanka Jain 
422892ec5fSPriyanka Jain 	SET_PCI_LIODN_BASE(CONFIG_SYS_FSL_PCIE_COMPAT, 1, 148),
432892ec5fSPriyanka Jain 	SET_PCI_LIODN_BASE(CONFIG_SYS_FSL_PCIE_COMPAT, 2, 228),
442892ec5fSPriyanka Jain 	SET_PCI_LIODN_BASE(CONFIG_SYS_FSL_PCIE_COMPAT, 3, 308),
452892ec5fSPriyanka Jain 	SET_PCI_LIODN_BASE(CONFIG_SYS_FSL_PCIE_COMPAT, 4, 388),
465f208d11SYork Sun 
478d3eaa97STudor Laurentiu 	SET_DMA_LIODN(1, "fsl,elo3-dma", 147),
488d3eaa97STudor Laurentiu 	SET_DMA_LIODN(2, "fsl,elo3-dma", 227),
495f208d11SYork Sun 
505f208d11SYork Sun 	/* SET_NEXUS_LIODN(557), -- not yet implemented */
512a44efebSZhao Qiang 	SET_QE_LIODN(559),
52377ffcfaSSandeep Singh 	SET_TDM_LIODN(560),
535f208d11SYork Sun };
545f208d11SYork Sun int liodn_tbl_sz = ARRAY_SIZE(liodn_tbl);
555f208d11SYork Sun 
565f208d11SYork Sun #ifdef CONFIG_SYS_DPAA_FMAN
5797a8d010SIgal Liberman struct fman_liodn_id_table fman1_liodn_tbl[] = {
585f208d11SYork Sun 	SET_FMAN_RX_1G_LIODN(1, 0, 88),
595f208d11SYork Sun 	SET_FMAN_RX_1G_LIODN(1, 1, 89),
605f208d11SYork Sun 	SET_FMAN_RX_1G_LIODN(1, 2, 90),
615f208d11SYork Sun 	SET_FMAN_RX_1G_LIODN(1, 3, 91),
625f208d11SYork Sun 	SET_FMAN_RX_1G_LIODN(1, 4, 92),
635f208d11SYork Sun 	SET_FMAN_RX_1G_LIODN(1, 5, 93),
645f208d11SYork Sun };
655f208d11SYork Sun int fman1_liodn_tbl_sz = ARRAY_SIZE(fman1_liodn_tbl);
665f208d11SYork Sun #endif
675f208d11SYork Sun 
685f208d11SYork Sun struct liodn_id_table sec_liodn_tbl[] = {
695f208d11SYork Sun 	SET_SEC_JR_LIODN_ENTRY(0, 454, 458),
705f208d11SYork Sun 	SET_SEC_JR_LIODN_ENTRY(1, 455, 459),
715f208d11SYork Sun 	SET_SEC_JR_LIODN_ENTRY(2, 456, 460),
725f208d11SYork Sun 	SET_SEC_JR_LIODN_ENTRY(3, 457, 461),
735f208d11SYork Sun 	SET_SEC_RTIC_LIODN_ENTRY(a, 453),
745f208d11SYork Sun 	SET_SEC_RTIC_LIODN_ENTRY(b, 549),
755f208d11SYork Sun 	SET_SEC_RTIC_LIODN_ENTRY(c, 550),
765f208d11SYork Sun 	SET_SEC_RTIC_LIODN_ENTRY(d, 551),
775f208d11SYork Sun 	SET_SEC_DECO_LIODN_ENTRY(0, 541, 610),
785f208d11SYork Sun 	SET_SEC_DECO_LIODN_ENTRY(1, 542, 611),
792892ec5fSPriyanka Jain 	SET_SEC_DECO_LIODN_ENTRY(2, 543, 612),
802892ec5fSPriyanka Jain 	SET_SEC_DECO_LIODN_ENTRY(3, 544, 613),
812892ec5fSPriyanka Jain 	SET_SEC_DECO_LIODN_ENTRY(4, 545, 614),
822892ec5fSPriyanka Jain 	SET_SEC_DECO_LIODN_ENTRY(5, 546, 615),
832892ec5fSPriyanka Jain 	SET_SEC_DECO_LIODN_ENTRY(6, 547, 616),
842892ec5fSPriyanka Jain 	SET_SEC_DECO_LIODN_ENTRY(7, 548, 617),
855f208d11SYork Sun };
865f208d11SYork Sun int sec_liodn_tbl_sz = ARRAY_SIZE(sec_liodn_tbl);
875f208d11SYork Sun 
885f208d11SYork Sun struct liodn_id_table liodn_bases[] = {
895f208d11SYork Sun 	[FSL_HW_PORTAL_SEC]  = SET_LIODN_BASE_2(462, 558),
905f208d11SYork Sun #ifdef CONFIG_SYS_DPAA_FMAN
915f208d11SYork Sun 	[FSL_HW_PORTAL_FMAN1] = SET_LIODN_BASE_1(973),
925f208d11SYork Sun #endif
932892ec5fSPriyanka Jain #ifdef CONFIG_SYS_DPAA_PME
942892ec5fSPriyanka Jain 	[FSL_HW_PORTAL_PME]   = SET_LIODN_BASE_2(770, 846),
952892ec5fSPriyanka Jain #endif
965f208d11SYork Sun };
97