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.
I am going through Keystone 2 defconfig file and wanted to know how NetCp support is provided in defconfig,For other vendors support for Ethernet controller has provided like below
CONFIG_NET_ETHERNET=y
CONFIG_SMSC911X=y
Above is how SMSC ethernet controller is support is provided in vexpress_defconfig file,In the same way how can
I provide support for KeyStone 2 NetCp ethernet controller in keystone2_defconfig?
Thanks Rex for your answer.
With my Little understanding ,would like to know don't we require below lines to in order to enable KeyStone CPSW(Ethernet controller).
CONFIG_NETDEVICES=y
CONFIG_TI_DAVINCI_MDIO=y
CONFIG_TI_CPTS=y
In keystone_defconfig?
Actully, I wanted to enable CPSW controller on some other SoC from TI.How should I go about it?
Amit,
For Keystone-2, by enabling CONFIG_TI_KEYSTONE_NET will enable NetCP, but for other platforms, it may not apply. You should check with that platform specifically.
Those kconfig you mentioned enables the ethernet, not the NetCP.
Rex
Ok,fine Rex.
What I understood of your answer is,NetCP is the ethernet controller in keyston2,right?
Also NetCp is consists of four modules as I read and CPSW is one of the component which is equivalent to the
Tradition Ethernet controller and rest are PA and SA,right?
Please correct if I am wrong.
Amit,
Yes, you understanding is correct. NetCP is more than a traditional Ethernet controller (MAC only NIC card) because it is MAC + Swtich (CPSW). The PA and SA are optional for the network. If special handling are needed, such as security, checksum offload, etc., then they need to be enabled.
Rex
Thanks Rex ,your comments are indeed helpful.
One final query regarding MAC+SWITCH(CPSW) ,Are these two davinci_emac.c and cpsw.c file contains the code
for controlling MAC+SWITCH or there are some more files manages the Ethernet controller in keystone?
Also,from IP layer packet will first come to CPSW and then forwarded to MAC layer,right?
Thanks
Amit
Hi, Amit,
Please take a look at the Makefile in which the files needed are under TI_KEYSTONE_NET. In the Makefile, it shows that cpsw.c is not used in Keystone-2, but cpsw_ale.c.
I think the packets come in to MAC then to the switch.
Rex