
13 Oct
2010
13 Oct
'10
10:23 a.m.
...
<snip>
+/* Gbit PHYs */ +#define CONFIG_BITBANGMII /* bit-bang MII PHY
management */
+#define CONFIG_SYS_MDIO_PIN (0x80000000 >> 13) /* our
MDIO is GPIO0 */
+#define CONFIG_SYS_MDC_PIN (0x80000000 >> 7) /* our
MDC is GPIO7 */
+#define MDIO_ACTIVE out32(GPIO0_TCR, in32(GPIO0_TCR) | CONFIG_SYS_MDIO_PIN)
Use out_be32() accessors here and below.
Please fix and resubmit. Thanks.
To make this work, drivers/net/phy/miiphybb.c would have to include asm/io.h somehow. What would be the right way to achieve this?
Cheers, Stefan
Cheers Dirk