diff options
| author | Emmanuel Vadot <manu@FreeBSD.org> | 2019-11-28 17:42:11 +0000 |
|---|---|---|
| committer | Emmanuel Vadot <manu@FreeBSD.org> | 2019-11-28 17:42:11 +0000 |
| commit | 9698b5b7c20815a8c4ef33b44e1a1ff7b3237180 (patch) | |
| tree | 8d8c599df647fce420a486d04e93d69f26306baf /sys/dev/dwc | |
| parent | 6ab09832d5fe77c49218eb67cbf601ad052f5a2d (diff) | |
Notes
Diffstat (limited to 'sys/dev/dwc')
| -rw-r--r-- | sys/dev/dwc/if_dwc.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/dev/dwc/if_dwc.c b/sys/dev/dwc/if_dwc.c index a01c03aafd18..aeb0255aba79 100644 --- a/sys/dev/dwc/if_dwc.c +++ b/sys/dev/dwc/if_dwc.c @@ -1074,16 +1074,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); return (0); } |
