This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TDA4VM: TDA4VM: Ethernet switch CPSW-9G configurations

Part Number: TDA4VM

I study the thread https://e2e.ti.com/support/processors/f/791/t/895467?tisearch=e2e-sitesearch&keymatch=ethernet  

there are two things I have questions form Misael Lopez Cruz's reply:
Q1:i need to open MAC port5 as RGMII,how can i change the CPSW LLD's board utiles

Q2:For MAC-to-MAC, you could use the helper function CpswAppUtils_setNoPhyCfgRgmii()=>where to use  CpswAppUtils_setNoPhyCfgRgmii()

Q3:In our hardware design - we have connected external  switch to PORT 5 of CPSW-9G via RGMII interface,how to enable external switch from tda4 side

  • Hello.

    The MAC interface configuration is done in a board-dependent library in the CPSW LLD and the MAC port allocation is done in the EthFw BIOS application. These are the modules and files needed to modify for your platform:

    Board library: <PDK_INSTALL_PATH>/packages/ti/board/src/j721e_evm/

    For CPSW9G:

    - Pinmux: pinmux_data_gesi_cpsw9g.c

    - ENET config (interface type configuration): board_ethernet_config.c (see Board_ethConfigCpsw9g())

    CPSW board utils: <PDK_INSTALL_PATH>/packages/ti/drv/cpsw/examples/cpsw_apputils/V1

    - Port configuration and PHY link parameters: cpsw_appboardutils_j721e_evm.c

    - Other relevant files: cpsw_board_pinmux.c, cpsw_board_pinmux_data.c

    EthFw: <ETHFW_INSTALL_PATH>/apps/app_remoteswitchcfg_server/mcu_2_0

    - MAC port list: main_tirtos.c (see gCpswMainAppMacPorts array)

    For the external switch configuration we do not currently have this enabled, but we'll be working on the initialization with our SDK7.0 release next month.

    Best regards,

    Dave

    The MAC interface configuration is done in a board-dependent library in CPSW LLD. The MAC port allocation is done in the EthFw BIOS application.
     
    These are the modules and files we have pointed our customers who are enabling their platforms:
     
    Board library: <PDK_INSTALL_PATH>/packages/ti/board/src/j721e_evm/
    For CPSW9G:
    • Pinmux: pinmux_data_gesi_cpsw9g.c
    • ENET config (interface type configuration): board_ethernet_config.c (see Board_ethConfigCpsw9g())
     
    CPSW board utils: <PDK_INSTALL_PATH>/packages/ti/drv/cpsw/examples/cpsw_apputils/V1
    • Port configuration and PHY link parameters: cpsw_appboardutils_j721e_evm.c
    • Other relevant files: cpsw_board_pinmux.c, cpsw_board_pinmux_data.c
     
    EthFw: <ETHFW_INSTALL_PATH>/apps/app_remoteswitchcfg_server/mcu_2_0
    • MAC port list: main_tirtos.c (see gCpswMainAppMacPorts array)