Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Jun 2018 15:27:10 +0000 (UTC)
From:      Emmanuel Vadot <manu@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r335445 - head/sys/arm64/rockchip
Message-ID:  <201806201527.w5KFRAaD092989@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: manu
Date: Wed Jun 20 15:27:09 2018
New Revision: 335445
URL: https://svnweb.freebsd.org/changeset/base/335445

Log:
  if_rk_dwc: Disable setting delays for now
  
  The values for tx/rx delays differs accross the different DTS.
  Mainline Linux set it to 0x24/0x18
  Mostly-Vendor u-boot (the one maintained and developped) to 0x18/0x18
  Mostly-Vendor linux (the one maintained and developped) to 0x26/0x11
  
  By experience only 0x18/0x18 works so until the issue is resolved rely on
  the bootloader settings.

Modified:
  head/sys/arm64/rockchip/if_dwc_rk.c

Modified: head/sys/arm64/rockchip/if_dwc_rk.c
==============================================================================
--- head/sys/arm64/rockchip/if_dwc_rk.c	Wed Jun 20 14:46:07 2018	(r335444)
+++ head/sys/arm64/rockchip/if_dwc_rk.c	Wed Jun 20 15:27:09 2018	(r335445)
@@ -80,7 +80,8 @@ rk3328_set_delays(struct syscon *grf, phandle_t node)
 	rx = ((rx & RK3328_GRF_MAC_CON0_TX_MASK) <<
 	    RK3328_GRF_MAC_CON0_RX_SHIFT);
 
-	SYSCON_WRITE_4(grf, RK3328_GRF_MAC_CON0, tx | rx | 0xFFFF0000);
+	/* Disable delays as values conflict between DTS */
+	/* SYSCON_WRITE_4(grf, RK3328_GRF_MAC_CON0, tx | rx | 0xFFFF0000); */
 }
 
 static int



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201806201527.w5KFRAaD092989>