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.

AM6442: The question between CPSW two port and DMA channel

Part Number: AM6442

Hi, Team

The CPSW of am64x has 2 ports. From device tree and TISCI, there are 8 tx channels and 1 rx channel.

Q1: How do the two ports allocate these 8 dma sending channels?

Q2: Do the two ports use the same dma receiving channel? 

Q3: Can I reset and re-initialize only a single port? Or are both ports reset at the same time? (Because there is only one mac)

Best Regards,

Zane

  • Hello Zane,

    The expert engineer who works on the above issue is on vacation.so, you will get a delayed reply.

    Regards,

    S.Anil.

  • Hi Zane,

    Q1: How do the two ports allocate these 8 dma sending channels?

    The 8 TX and 1 RX Channel are all shared between the ports.

    Q2: Do the two ports use the same dma receiving channel? 

    Yes

    Q3: Can I reset and re-initialize only a single port? Or are both ports reset at the same time? (Because there is only one mac)

    Yes. Using the "ifconfig <interface> down" followed by "ifconfig <interface> up" command will reset the particular interface. By "reset", I assume that you mean Software Reset by writing to the "CPSW_PN_MAC_SOFT_RESET_REG_k" register.

    Best Regards

    Ashwani