Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/allwinner Wait 20ms for the PLL to stabilize af...



details:   https://anonhg.NetBSD.org/src/rev/414211c585c9
branches:  trunk
changeset: 811768:414211c585c9
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Sat Nov 14 10:32:40 2015 +0000

description:
Wait 20ms for the PLL to stabilize after enabling it.
Fixes occasional bogus size report for my SD card.

diffstat:

 sys/arch/arm/allwinner/awin_mmc.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 97b1d924ad9d -r 414211c585c9 sys/arch/arm/allwinner/awin_mmc.c
--- a/sys/arch/arm/allwinner/awin_mmc.c Sat Nov 14 07:31:13 2015 +0000
+++ b/sys/arch/arm/allwinner/awin_mmc.c Sat Nov 14 10:32:40 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: awin_mmc.c,v 1.22 2015/10/16 14:22:25 bouyer Exp $ */
+/* $NetBSD: awin_mmc.c,v 1.23 2015/11/14 10:32:40 bouyer Exp $ */
 
 /*-
  * Copyright (c) 2014 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -29,7 +29,7 @@
 #include "locators.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: awin_mmc.c,v 1.22 2015/10/16 14:22:25 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: awin_mmc.c,v 1.23 2015/11/14 10:32:40 bouyer Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -380,6 +380,7 @@
        clk |= __SHIFTIN(sdly, AWIN_SD_CLK_PHASE_CTR);
        clk |= AWIN_PLL_CFG_ENABLE;
        bus_space_write_4(sc->sc_bst, sc->sc_clk_bsh, 0, clk);
+       delay(20000);
 
        return 0;
 }



Home | Main Index | Thread Index | Old Index