From f22f0821a0ef337fe87455e626676629f263e93c Mon Sep 17 00:00:00 2001 From: kettenis Date: Fri, 5 Jan 2018 22:19:36 +0000 Subject: [PATCH] Handle resets; needed on Allwinner R40/V40. --- sys/arch/armv7/sunxi/sxiahci.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 * 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); -- 2.20.1