diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2018-01-05 22:19:37 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2018-01-05 22:19:37 +0000 |
commit | c484c772de2f3b8e7bfdffb3e88099a8758f137d (patch) | |
tree | ebf07797581c31ab90766125522491130b072a88 /sys/arch/armv7 | |
parent | d463a2f82293f9abbe212fddcbfec27fc218142f (diff) |
Handle resets; needed on Allwinner R40/V40.
Diffstat (limited to 'sys/arch/armv7')
-rw-r--r-- | sys/arch/armv7/sunxi/sxiahci.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/armv7/sunxi/sxiahci.c b/sys/arch/armv7/sunxi/sxiahci.c index 455ff94754b..f1c42d5c5e3 100644 --- a/sys/arch/armv7/sunxi/sxiahci.c +++ b/sys/arch/armv7/sunxi/sxiahci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sxiahci.c,v 1.12 2017/01/21 08:26:49 patrick Exp $ */ +/* $OpenBSD: sxiahci.c,v 1.13 2018/01/05 22:19:36 kettenis Exp $ */ /* * Copyright (c) 2013 Patrick Wildt <patrick@blueri.se> * Copyright (c) 2013,2014 Artturi Alm @@ -115,6 +115,8 @@ sxiahci_attach(struct device *parent, struct device *self, void *aux) clock_enable_all(faa->fa_node); delay(5000); + reset_deassert_all(faa->fa_node); + /* XXX setup magix */ SXIWRITE4(sc, SXIAHCI_RWC, 0); delay(10); |