powerpc/t1040qds: Initialize EPHY2 clock to RGMII only
authorvijay rai <vijay.rai@freescale.com>
Fri, 20 Jun 2014 05:15:29 +0000 (10:45 +0530)
committerYork Sun <yorksun@freescale.com>
Tue, 22 Jul 2014 23:25:54 +0000 (16:25 -0700)
Setting FPGA register brdcfg9 EPHY2 bits to '0' to initialize EPHY2 clock to RGMII mode.

Signed-off-by: Vijay Rai <vijay.rai@freescale.com>
Signed-off-by: Priyanka Jain <Priyanka.Jain@freescale.com>
Signed-off-by: Prabhakar Kushwaha <prabhakar@freescale.com>
Reviewed-by: York Sun <yorksun@freescale.com>
board/freescale/t1040qds/eth.c
board/freescale/t1040qds/t1040qds_qixis.h

index 3077b4ae2c5258139638476837705e7ad43ac4c6..1929bba20b3b1215f48e124348ee1f374bc60e15 100644 (file)
@@ -355,7 +355,9 @@ static void set_brdcfg9_for_gtx_clk(void)
 {
        u8 brdcfg9;
        brdcfg9 = QIXIS_READ(brdcfg[9]);
-       brdcfg9 |= (1 << 5);
+/* Initializing EPHY2 clock to RGMII mode */
+       brdcfg9 &= ~(BRDCFG9_EPHY2_MASK);
+       brdcfg9 |= (BRDCFG9_EPHY2_VAL);
        QIXIS_WRITE(brdcfg[9], brdcfg9);
 }
 
index 98d2d39e6d66a2df1334296e6676ce0bcb3c2b04..cef8ad0bfaf26bc502726a57501a39a6096255c8 100644 (file)
 #define BRDCFG5_IMX_MASK               0xC0
 #define BRDCFG5_IMX_DIU                        0x80
 
+/* BRDCFG9[2] controls EPHY2 Clock */
+#define BRDCFG9_EPHY2_MASK              0x20
+#define BRDCFG9_EPHY2_VAL               0x00
+
 /* BRDCFG15[3] controls LCD Panel Powerdown*/
 #define BRDCFG15_LCDPD_MASK            0x10
 #define BRDCFG15_LCDPD_ENABLED         0x00