Module Name: src
Committed By: reinoud
Date: Mon Aug 25 16:49:43 UTC 2014
Modified Files:
src/sys/arch/evbarm/odroid: odroid_machdep.c
Log Message:
Relax the timing around the usb lan9730 powercycle.
To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/sys/arch/evbarm/odroid/odroid_machdep.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/evbarm/odroid/odroid_machdep.c
diff -u src/sys/arch/evbarm/odroid/odroid_machdep.c:1.27 src/sys/arch/evbarm/odroid/odroid_machdep.c:1.28
--- src/sys/arch/evbarm/odroid/odroid_machdep.c:1.27 Tue Aug 19 16:18:15 2014
+++ src/sys/arch/evbarm/odroid/odroid_machdep.c Mon Aug 25 16:49:43 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: odroid_machdep.c,v 1.27 2014/08/19 16:18:15 reinoud Exp $ */
+/* $NetBSD: odroid_machdep.c,v 1.28 2014/08/25 16:49:43 reinoud Exp $ */
/*
* Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: odroid_machdep.c,v 1.27 2014/08/19 16:18:15 reinoud Exp $");
+__KERNEL_RCSID(0, "$NetBSD: odroid_machdep.c,v 1.28 2014/08/25 16:49:43 reinoud Exp $");
#include "opt_evbarm_boardtype.h"
#include "opt_exynos.h"
@@ -846,14 +846,14 @@ exynos_usb_powercycle_lan9730(device_t s
error = iic_exec(i2c, I2C_OP_WRITE_WITH_STOP, chipid, ®, 1,
&wdata, sizeof(wdata), 0);
KASSERT(!error);
- DELAY(10000);
+ DELAY(20000);
/* set power level back to 3.3v */
wdata = 0x33;
error = iic_exec(i2c, I2C_OP_WRITE_WITH_STOP, chipid, ®, 1,
&wdata, sizeof(wdata), 0);
KASSERT(!error);
- DELAY(10000);
+ DELAY(20000);
/* enable the bucket explicitly */
reg = buck_ctlreg;
@@ -864,7 +864,7 @@ exynos_usb_powercycle_lan9730(device_t s
error = iic_exec(i2c, I2C_OP_WRITE_WITH_STOP, chipid, ®, 1,
&rdata, sizeof(rdata), 0);
KASSERT(!error);
- DELAY(20000);
+ DELAY(30000);
iic_release_bus(i2c, 0);
@@ -877,9 +877,9 @@ exynos_usb_powercycle_lan9730(device_t s
"can't reserve GPIO pin %s\n", pin_enable);
} else {
exynos_gpio_pindata_write(&enable_pin, 0);
- DELAY(20000);
+ DELAY(30000);
exynos_gpio_pindata_write(&enable_pin, 1);
- DELAY(10000);
+ DELAY(30000);
}
} else {
aprint_error_dev(self, "failed to lookup lan_power GPIO pin");