Handle resets; needed on Allwinner R40/V40.
authorkettenis <kettenis@openbsd.org>
Fri, 5 Jan 2018 22:19:36 +0000 (22:19 +0000)
committerkettenis <kettenis@openbsd.org>
Fri, 5 Jan 2018 22:19:36 +0000 (22:19 +0000)
sys/arch/armv7/sunxi/sxiahci.c

index 455ff94..f1c42d5 100644 (file)
@@ -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);