File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
source/portable/NetworkInterface/Zynq Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -500,11 +500,12 @@ unsigned configure_IEEE_phy_speed( XEmacPs * xemacpsp,
500500 return 0 ;
501501}
502502
503- static void WriteSLCRDivisors ( int mac_baseaddr ,
504- u32 SlcrDiv0 ,
503+ static void WriteSLCRDivisors ( int mac_baseaddr ,
504+ u32 SlcrDiv0 ,
505505 u32 SlcrDiv1 )
506506{
507507 volatile u32 slcrBaseAddress ;
508+
508509 if ( ( unsigned long ) mac_baseaddr == EMAC0_BASE_ADDRESS )
509510 {
510511 slcrBaseAddress = SLCR_GEM0_CLK_CTRL_ADDR ;
@@ -513,6 +514,7 @@ static void WriteSLCRDivisors( int mac_baseaddr,
513514 {
514515 slcrBaseAddress = SLCR_GEM1_CLK_CTRL_ADDR ;
515516 }
517+
516518 u32 SlcrTxClkCntrl = * ( volatile unsigned int * ) ( slcrBaseAddress );
517519 SlcrTxClkCntrl &= EMACPS_SLCR_DIV_MASK ;
518520 SlcrTxClkCntrl |= ( SlcrDiv1 << 20 );
@@ -527,6 +529,7 @@ static void SetUpSLCRDivisors( int mac_baseaddr,
527529
528530 #ifdef PEEP
529531 volatile u32 slcrBaseAddress ;
532+
530533 if ( ( unsigned long ) mac_baseaddr == EMAC0_BASE_ADDRESS )
531534 {
532535 slcrBaseAddress = SLCR_GEM0_CLK_CTRL_ADDR ;
@@ -535,6 +538,7 @@ static void SetUpSLCRDivisors( int mac_baseaddr,
535538 {
536539 slcrBaseAddress = SLCR_GEM1_CLK_CTRL_ADDR ;
537540 }
541+
538542 if ( speed == 1000 )
539543 {
540544 * ( volatile unsigned int * ) ( slcrBaseAddress ) =
You can’t perform that action at this time.
0 commit comments