1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-17 00:22:07 +02:00

armv8: ls1043a: enable icid setup for qman portals

Enable support for ICID setup of qman portals and the required device
tree fixups.

Signed-off-by: Laurentiu Tudor <laurentiu.tudor@nxp.com>
Reviewed-by: York Sun <york.sun@nxp.com>
This commit is contained in:
Laurentiu Tudor
2018-08-27 17:34:00 +03:00
committed by York Sun
parent dc29a4c177
commit 0c2255b5c7

View File

@@ -49,7 +49,7 @@ void setup_qbman_portals(void)
out_be32(&qman->qcsp[i].qcsp_io_cfg, (sdest << 16) | fliodn); out_be32(&qman->qcsp[i].qcsp_io_cfg, (sdest << 16) | fliodn);
} }
#else #else
#ifdef CONFIG_ARCH_LS1046A #if defined(CONFIG_ARCH_LS1043A) || defined(CONFIG_ARCH_LS1046A)
int i; int i;
for (i = 0; i < CONFIG_SYS_QMAN_NUM_PORTALS; i++) { for (i = 0; i < CONFIG_SYS_QMAN_NUM_PORTALS; i++) {
@@ -197,7 +197,7 @@ void fdt_fixup_qportals(void *blob)
char compat[64]; char compat[64];
int compat_len; int compat_len;
#ifdef CONFIG_ARCH_LS1046A #if defined(CONFIG_ARCH_LS1043A) || defined(CONFIG_ARCH_LS1046A)
int smmu_ph = fdt_get_smmu_phandle(blob); int smmu_ph = fdt_get_smmu_phandle(blob);
#endif #endif
@@ -211,7 +211,8 @@ void fdt_fixup_qportals(void *blob)
off = fdt_node_offset_by_compatible(blob, -1, "fsl,qman-portal"); off = fdt_node_offset_by_compatible(blob, -1, "fsl,qman-portal");
while (off != -FDT_ERR_NOTFOUND) { while (off != -FDT_ERR_NOTFOUND) {
#if defined(CONFIG_PPC) || defined(CONFIG_ARCH_LS1046A) #if defined(CONFIG_PPC) || defined(CONFIG_ARCH_LS1043A) || \
defined(CONFIG_ARCH_LS1046A)
#ifdef CONFIG_FSL_CORENET #ifdef CONFIG_FSL_CORENET
u32 liodns[2]; u32 liodns[2];
#endif #endif
@@ -226,7 +227,7 @@ void fdt_fixup_qportals(void *blob)
int j; int j;
#endif #endif
#endif /* CONFIG_PPC || CONFIG_ARCH_LS1046A */ #endif /* CONFIG_PPC || CONFIG_ARCH_LS1043A || CONFIG_ARCH_LS1046A */
err = fdt_setprop(blob, off, "compatible", compat, compat_len); err = fdt_setprop(blob, off, "compatible", compat, compat_len);
if (err < 0) if (err < 0)
goto err; goto err;
@@ -275,7 +276,7 @@ void fdt_fixup_qportals(void *blob)
goto err; goto err;
#endif #endif
#else #else
#ifdef CONFIG_ARCH_LS1046A #if defined(CONFIG_ARCH_LS1043A) || defined(CONFIG_ARCH_LS1046A)
if (smmu_ph >= 0) { if (smmu_ph >= 0) {
u32 icids[3]; u32 icids[3];