]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: omap5: add platform specific ethernet phy modes configurations
authorMugunthan V N <mugunthanvnm@ti.com>
Thu, 28 Apr 2016 10:06:05 +0000 (15:36 +0530)
committerJoe Hershberger <joe.hershberger@ni.com>
Tue, 24 May 2016 16:42:02 +0000 (11:42 -0500)
Add platforms specific phy mode configuration bits to be used
to configure phy mode in control module.

Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
arch/arm/include/asm/arch-omap5/cpu.h

index b1513e9aaf468751178c4525a258aca6cea4d885..683d9053337fc201b9e2e80d280e8e682c8b61fa 100644 (file)
@@ -116,4 +116,16 @@ struct watchdog {
 #define CPSW_BASE                      0x48484000
 #define CPSW_MDIO_BASE                 0x48485000
 
+/* gmii_sel register defines */
+#define GMII1_SEL_MII          0x0
+#define GMII1_SEL_RMII         0x1
+#define GMII1_SEL_RGMII                0x2
+#define GMII2_SEL_MII          (GMII1_SEL_MII << 4)
+#define GMII2_SEL_RMII         (GMII1_SEL_RMII << 4)
+#define GMII2_SEL_RGMII                (GMII1_SEL_RGMII << 4)
+
+#define MII_MODE_ENABLE                (GMII1_SEL_MII | GMII2_SEL_MII)
+#define RMII_MODE_ENABLE        (GMII1_SEL_RMII | GMII2_SEL_RMII)
+#define RGMII_MODE_ENABLE      (GMII1_SEL_RGMII | GMII2_SEL_RGMII)
+
 #endif /* _CPU_H */