Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Apr 2017 05:59:00 +0000 (UTC)
From:      Ganbold Tsagaankhuu <ganbold@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r317126 - head/sys/arm/allwinner
Message-ID:  <201704190559.v3J5x0Nv017171@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ganbold
Date: Wed Apr 19 05:59:00 2017
New Revision: 317126
URL: https://svnweb.freebsd.org/changeset/base/317126

Log:
  Use hwreset_get_by_ofw_idx() function instead, since there is
  no reset-names dts property defined for IR in case of H3 SoC.
  That way IR works on H3 SoC based board.
  Tested on Orangepi mini 2 board.

Modified:
  head/sys/arm/allwinner/aw_cir.c

Modified: head/sys/arm/allwinner/aw_cir.c
==============================================================================
--- head/sys/arm/allwinner/aw_cir.c	Wed Apr 19 05:28:21 2017	(r317125)
+++ head/sys/arm/allwinner/aw_cir.c	Wed Apr 19 05:59:00 2017	(r317126)
@@ -419,7 +419,7 @@ aw_ir_attach(device_t dev)
 	}
 
 	/* De-assert reset */
-	if (hwreset_get_by_ofw_name(dev, 0, "apb", &rst_apb) == 0) {
+	if (hwreset_get_by_ofw_idx(dev, 0, 0, &rst_apb) == 0) {
 		err = hwreset_deassert(rst_apb);
 		if (err != 0) {
 			device_printf(dev, "cannot de-assert reset\n");



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