Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/broadcom SDHC_MAX_BLK_LEN_1024 needs to be shif...



details:   https://anonhg.NetBSD.org/src/rev/eca1cfab48ec
branches:  trunk
changeset: 802779:eca1cfab48ec
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Wed Oct 01 21:14:58 2014 +0000

description:
SDHC_MAX_BLK_LEN_1024 needs to be shifted into caps reg

diffstat:

 sys/arch/arm/broadcom/bcm2835_emmc.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r ce3afd169434 -r eca1cfab48ec sys/arch/arm/broadcom/bcm2835_emmc.c
--- a/sys/arch/arm/broadcom/bcm2835_emmc.c      Wed Oct 01 21:06:20 2014 +0000
+++ b/sys/arch/arm/broadcom/bcm2835_emmc.c      Wed Oct 01 21:14:58 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bcm2835_emmc.c,v 1.17 2014/10/01 21:06:20 jmcneill Exp $       */
+/*     $NetBSD: bcm2835_emmc.c,v 1.18 2014/10/01 21:14:58 jmcneill Exp $       */
 
 /*-
  * Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bcm2835_emmc.c,v 1.17 2014/10/01 21:06:20 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bcm2835_emmc.c,v 1.18 2014/10/01 21:14:58 jmcneill Exp $");
 
 #include "bcmdmac.h"
 
@@ -118,7 +118,7 @@
        sc->sc.sc_flags |= SDHC_FLAG_HOSTCAPS;
        sc->sc.sc_flags |= SDHC_FLAG_NO_HS_BIT;
        sc->sc.sc_caps = SDHC_VOLTAGE_SUPP_3_3V | SDHC_HIGH_SPEED_SUPP |
-           SDHC_MAX_BLK_LEN_1024;
+           (SDHC_MAX_BLK_LEN_1024 << SDHC_MAX_BLK_LEN_SHIFT);
 
        sc->sc.sc_host = sc->sc_hosts;
        sc->sc.sc_clkbase = 50000;      /* Default to 50MHz */



Home | Main Index | Thread Index | Old Index