dma: ti: Update J21E PSIL endpoint information for MAIN CPSW0

The PSIL endpoint data for J721E currently covers only the MCU domain
CPSW0 instance. Add the data for the MAIN domain CPSW0 as well to allow
the MAIN domain Ethernet ports to be usable on any platform using J721E
SoC.

Additionally, since J721E's PSIL endpoint data is applicable to J7200
SoC as well, the MAIN CPSW0 instance on J7200 will also be usable now.

Signed-off-by: Suman Anna <s-anna@ti.com>
[s-vadapalli@ti.com: Update commit message indicating support for J7200]
Signed-off-by: Siddharth Vadapalli <s-vadapalli@ti.com>
This commit is contained in:
Suman Anna 2023-08-02 13:47:24 +05:30 committed by Tom Rini
parent bdc682437a
commit 066e860bc7

View file

@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
/* /*
* Copyright (C) 2019 Texas Instruments Incorporated - http://www.ti.com * Copyright (C) 2019-2023 Texas Instruments Incorporated - https://www.ti.com
* Author: Peter Ujfalusi <peter.ujfalusi@ti.com> * Author: Peter Ujfalusi <peter.ujfalusi@ti.com>
*/ */
@ -21,13 +21,15 @@
/* PSI-L source thread IDs, used for RX (DMA_DEV_TO_MEM) */ /* PSI-L source thread IDs, used for RX (DMA_DEV_TO_MEM) */
static struct psil_ep j721e_src_ep_map[] = { static struct psil_ep j721e_src_ep_map[] = {
/* CPSW0 */ /* MCU_CPSW0 */
PSIL_ETHERNET(0x7000), PSIL_ETHERNET(0x7000),
/* MAIN_CPSW0 */
PSIL_ETHERNET(0x4a00),
}; };
/* PSI-L destination thread IDs, used for TX (DMA_MEM_TO_DEV) */ /* PSI-L destination thread IDs, used for TX (DMA_MEM_TO_DEV) */
static struct psil_ep j721e_dst_ep_map[] = { static struct psil_ep j721e_dst_ep_map[] = {
/* CPSW0 */ /* MCU_CPSW0 */
PSIL_ETHERNET(0xf000), PSIL_ETHERNET(0xf000),
PSIL_ETHERNET(0xf001), PSIL_ETHERNET(0xf001),
PSIL_ETHERNET(0xf002), PSIL_ETHERNET(0xf002),
@ -36,6 +38,15 @@ static struct psil_ep j721e_dst_ep_map[] = {
PSIL_ETHERNET(0xf005), PSIL_ETHERNET(0xf005),
PSIL_ETHERNET(0xf006), PSIL_ETHERNET(0xf006),
PSIL_ETHERNET(0xf007), PSIL_ETHERNET(0xf007),
/* MAIN_CPSW0 */
PSIL_ETHERNET(0xca00),
PSIL_ETHERNET(0xca01),
PSIL_ETHERNET(0xca02),
PSIL_ETHERNET(0xca03),
PSIL_ETHERNET(0xca04),
PSIL_ETHERNET(0xca05),
PSIL_ETHERNET(0xca06),
PSIL_ETHERNET(0xca07),
}; };
struct psil_ep_map j721e_ep_map = { struct psil_ep_map j721e_ep_map = {