AnsweredAssumed Answered

i.mx6 fec driver and micrel switch&phy driver

Question asked by Coiln Park on Feb 22, 2017
Latest reply on Feb 28, 2017 by Artur Petukhov

Hi~ I am colin.

 

Nowadays, I am very confuzed because of FEC and micrel drivers.

 

I have plan to use spi slave mode of micrel ksz8873 ethernet switch driver with imx6solo.

I checked that SPI interface worked correctly. I could check that by spidev default driver.

 

So, I wanted to use the provided micrel ethernet switch driver (SPI) instead of spidev driver.

 

Finally I turn off the fec driver in the menuconfig and the kernel couldn't find ethernet mac.

 

DO I have to keep the fec driver for mac and I have to use micrel driver for switch configuration with phy?

Or do I have to turn off FEC driver and I have to use only micrel driver for switch, phy and mac.

 

I guess, i.mx6solo has MAC, not switch. so I think I have to use FEC driver for MAC....

I am very confused. 

 

/arch/ar/mach-imx/mach-imx6q.c

 

static inline void imx6q_enet_init(void)
{
//imx6_enet_mac_init("fsl,imx6q-fec", "fsl,imx6q-ocotp");
imx6_enet_mac_init("micrel,ksz8873", "fsl,imx6q-ocotp");
imx6q_enet_phy_init();
imx6q_1588_init();
if (cpu_is_imx6q() && imx_get_soc_revision() == IMX_CHIP_REVISION_2_0)
imx6q_enet_clk_sel();
}

 

To use micrel switch ksz8873, what things I have to change in first.

 

Could you help me? 

Outcomes