I'm very new to fs devices. This time I'm working on p1040. I need to config the eTSEC2 port to SGMII mode in order to connect a switch chip. The only ref I have is the p1010rdb code in linux 3.12 kernel. I have no idea where to start. From the p1040RM, it seems come configs (eg. GUTS_PORDEVSR1 GUTS_DEVDISR1...) are needed, but I don't konw how to form such config in code. Could any one help me to start?