summaryrefslogtreecommitdiffstats
path: root/freebsd/sys/dev/dwc/if_dwc.c
diff options
context:
space:
mode:
Diffstat (limited to 'freebsd/sys/dev/dwc/if_dwc.c')
-rw-r--r--freebsd/sys/dev/dwc/if_dwc.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/freebsd/sys/dev/dwc/if_dwc.c b/freebsd/sys/dev/dwc/if_dwc.c
index 895fdfe5..7e249414 100644
--- a/freebsd/sys/dev/dwc/if_dwc.c
+++ b/freebsd/sys/dev/dwc/if_dwc.c
@@ -1239,16 +1239,13 @@ dwc_reset(device_t dev)
if (OF_hasprop(node, "snps,reset-active-low"))
pin_value = GPIO_PIN_HIGH;
- if (flags & GPIO_ACTIVE_LOW)
- pin_value = !pin_value;
-
GPIO_PIN_SETFLAGS(gpio, pin, GPIO_PIN_OUTPUT);
GPIO_PIN_SET(gpio, pin, pin_value);
- DELAY(delay_prop[0]);
+ DELAY(delay_prop[0] * 5);
GPIO_PIN_SET(gpio, pin, !pin_value);
- DELAY(delay_prop[1]);
+ DELAY(delay_prop[1] * 5);
GPIO_PIN_SET(gpio, pin, pin_value);
- DELAY(delay_prop[2]);
+ DELAY(delay_prop[2] * 5);
#endif /* __rtems__ */
return (0);