From c484c772de2f3b8e7bfdffb3e88099a8758f137d Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Fri, 5 Jan 2018 22:19:37 +0000 Subject: Handle resets; needed on Allwinner R40/V40. --- sys/arch/armv7/sunxi/sxiahci.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/arch/armv7') 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); -- cgit v1.2.3