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.

Linux/TMS320DM8148: How to define marvell switch in board file ?

Guru 20755 points
Part Number: TMS320DM8148
Other Parts Discussed in Thread: DM385

Tool/software: Linux

Hello,

I've been searching for an example of board file which uses marvell switch (any) , but found none.

Is there any example for such usage ?

Thank you,

Ran

  • Ran,

    I also made a search for 2.6.37 kernel TI board files with marvell switch, but I was also not able to find any.

    You can explore some other board files which seems to have marvell switches (i.e. mx51, kirkwood, etc)

    linux-omap3/arch/arm/configs/ti811x_evm_defconfig:# CONFIG_MARVELL_PHY is not set
    linux-omap3/arch/arm/configs/ti8148_evm_defconfig:# CONFIG_MARVELL_PHY is not set
    linux-omap3/arch/arm/configs/mx51_defconfig:CONFIG_MARVELL_PHY=y
    linux-omap3/arch/arm/configs/dm385_evm_defconfig:# CONFIG_MARVELL_PHY is not set
    linux-omap3/arch/arm/configs/kirkwood_defconfig:CONFIG_MARVELL_PHY=y
    linux-omap3/arch/arm/configs/mv78xx0_defconfig:CONFIG_MARVELL_PHY=y
    linux-omap3/arch/arm/configs/ti8168_evm_defconfig:# CONFIG_MARVELL_PHY is not set
    linux-omap3/arch/arm/configs/orion5x_defconfig:CONFIG_MARVELL_PHY=y
    linux-omap3/arch/arm/configs/mmp2_defconfig:CONFIG_MACH_MARVELL_JASPER=y
    linux-omap3/arch/arm/configs/at572d940hfek_defconfig:CONFIG_MARVELL_PHY=m
    linux-omap3/arch/arm/configs/cam60_defconfig:CONFIG_MARVELL_PHY=m



    Regards,
    Pavel
  • Thank you very much Pavel !

    I also see an interesting talk on this issue here:

    We connect emac1  mii to switch. We don't use the other port (emac0) at all.

    I understand that I need to configure both switch phy and ethernet mac to the same communication (rmii/gmii/ etc) type.

    I need to make changes both in u-boot and in Linux because network is used to load and program Linux after u-boot is loaded. 

    What I mainly confused with is how to make the mii port (emac1) which is connected to switch (emac1)  , integrate with Linux network interface.

    I see that this issue is talked about in the above link.

    For example:

    1. should I disable phy_init  in u-boot (because we don;t use normal phy but the switch is our phy) ? Does the switch should be seen as normal phy , and give correct link status to emac ?

    2. Do I need some additional changes in Linux to make Linux understand that the data in mii is Ethernet frames to/from IP stack ?

    Thanks,

    Ran

  • Ran,

    For any detailed software support, bug fixes, or enhancements to this software, please contact the partners recommended below.

    e2e.ti.com/.../660422

    Regards,
    Pavel
  • Hi Pavel,

    If I may please ask a general question:

    We already have a working switch in u-boot.

    Is it required in Linux, to update cpsw about link state and force cpsw to believe link is on , or may it cause problem when cpsw is forced to link on (netif_carrier_on, netif_wake_queue) , while there is no actual link ?

    Thank you,
    ran