I have a Pengutronix BSP for an AM3359 from phytec. My goal is to get both MIIs set up into RMII mode. The stock BSP that comes with the board sets interface 1 into RMII mode, and interface 2 into RGMII mode. I am not entirely sure what to change to get interface 2 into RMII mode.
I have set the pinmux table so that the board config files are right, and I have verified that by checking the memory locations called out in the tech manual, SPRUH73G. The location for the mii control register (0x44E10650) shows that mii2 is configured for RGMII operation (Bits 7-0 are 1111001). Bits 7-0 should be 1110101. My only clue is that In the pcm051-board.c file, there is this line: am33xx_cpsw_init(AM33XX_CPSW_MODE_RMII1_RGMII2, NULL, NULL); I don't know if this is a function written by the board manufacturer (phytec), or if it is from Pengutronix. I am hoping to learn how to get mii2 properly configured for my application into RMII mode, or at least where this function is defined, or what the AM33XX_CPSW_MODE_RMII1_RGMII2 parameter means or does. I checked with a pr_info statement, AM33XX_CPSW_MODE_RMII1_RGMII2 = 3. I am also asking Phytec, but they don't always respond. Nick Wernicke
