artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9a46ef
)
Handle resets; needed on Allwinner R40/V40.
author
kettenis
<kettenis@openbsd.org>
Fri, 5 Jan 2018 22:19:36 +0000
(22:19 +0000)
committer
kettenis
<kettenis@openbsd.org>
Fri, 5 Jan 2018 22:19:36 +0000
(22:19 +0000)
sys/arch/armv7/sunxi/sxiahci.c
patch
|
blob
|
history
diff --git
a/sys/arch/armv7/sunxi/sxiahci.c
b/sys/arch/armv7/sunxi/sxiahci.c
index
455ff94
..
f1c42d5
100644
(file)
--- a/
sys/arch/armv7/sunxi/sxiahci.c
+++ b/
sys/arch/armv7/sunxi/sxiahci.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: sxiahci.c,v 1.1
2 2017/01/21 08:26:49 patrick Exp $
*/
+/* $OpenBSD: sxiahci.c,v 1.1
3 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);