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 Clear status of BCM2835_STIMER_M3 only...



details:   https://anonhg.NetBSD.org/src/rev/7dacf39d066a
branches:  trunk
changeset: 805083:7dacf39d066a
user:      nat <nat%NetBSD.org@localhost>
date:      Tue Dec 16 13:09:33 2014 +0000

description:
Clear status of BCM2835_STIMER_M3 only as timer comparison reg 0 and 2
are used by the VideoCore on Raspberry Pi.  This fixes audio playback.

Addresses PR 48805.

This commit was approved by skrll@

diffstat:

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

diffs (27 lines):

diff -r 889cd03b8364 -r 7dacf39d066a sys/arch/arm/broadcom/bcm2835_tmr.c
--- a/sys/arch/arm/broadcom/bcm2835_tmr.c       Tue Dec 16 11:42:27 2014 +0000
+++ b/sys/arch/arm/broadcom/bcm2835_tmr.c       Tue Dec 16 13:09:33 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bcm2835_tmr.c,v 1.3 2013/01/08 12:13:58 skrll Exp $    */
+/*     $NetBSD: bcm2835_tmr.c,v 1.4 2014/12/16 13:09:33 nat Exp $      */
 
 /*-
  * Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bcm2835_tmr.c,v 1.3 2013/01/08 12:13:58 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bcm2835_tmr.c,v 1.4 2014/12/16 13:09:33 nat Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -201,7 +201,7 @@
        if (!(status & BCM2835_STIMER_M3))
                return 0;
 
-       bus_space_write_4(sc->sc_iot, sc->sc_ioh, BCM2835_STIMER_CS, status);
+       bus_space_write_4(sc->sc_iot, sc->sc_ioh, BCM2835_STIMER_CS, BCM2835_STIMER_M3);
 
        hardclock(frame);
 



Home | Main Index | Thread Index | Old Index