Hi ,
I am using DM368 with DVSDK 2_10_01_18 with psp version - PSP_02_10_00_14 and kernel version - 2.6.18 for streaming and recording applications.I have a doubt with respect to the EMAC driver.
I want to know how data is being read from or written to the MDIO Bus. According to the below link PHY device address is from bits 21-25 followed by PHY register address on bits 16-20.
http://en.wikipedia.org/wiki/Management_Data_Input/Output
But in the register USERACCESS0 of the EMAC driver, bit no 21-25 are for PHY register address and bit no 16-20 are for PHY device address. Therefore I want to know if the data being pushed to the MDIO bus is according to the bit patterns filled in the USERACCESS0 register or according to the standard given in the above link.
I also wanted to know when the data is being written to/ read from the MDIO bus, will the MSB pushed first or the LSB?
Please Note: mdio_read/mdio_write is the function in the EMAC driver which reads from/writes to the MDIO bus and these functions internally call __raw_readl/__raw_writel whose implementations have NOT been changed.
Thanks in advance.