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 soft reset A31 codec at attach time
details: https://anonhg.NetBSD.org/src/rev/e03bf0b4d83a
branches: trunk
changeset: 332956:e03bf0b4d83a
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Sun Oct 12 17:25:35 2014 +0000
description:
soft reset A31 codec at attach time
diffstat:
sys/arch/arm/allwinner/awin_ac.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diffs (30 lines):
diff -r 8c4ff1f9c596 -r e03bf0b4d83a sys/arch/arm/allwinner/awin_ac.c
--- a/sys/arch/arm/allwinner/awin_ac.c Sun Oct 12 17:20:58 2014 +0000
+++ b/sys/arch/arm/allwinner/awin_ac.c Sun Oct 12 17:25:35 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: awin_ac.c,v 1.12 2014/09/06 23:04:10 jmcneill Exp $ */
+/* $NetBSD: awin_ac.c,v 1.13 2014/10/12 17:25:35 jmcneill Exp $ */
/*-
* Copyright (c) 2014 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -30,7 +30,7 @@
#include "opt_ddb.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: awin_ac.c,v 1.12 2014/09/06 23:04:10 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: awin_ac.c,v 1.13 2014/10/12 17:25:35 jmcneill Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -354,6 +354,11 @@
if (sc->sc_has_pactrl_gpio)
awin_gpio_pindata_write(&sc->sc_pactrl_gpio, 0);
+ if (awin_chip_id() == AWIN_CHIP_ID_A31) {
+ awin_reg_set_clear(sc->sc_bst, aio->aio_ccm_bsh,
+ AWIN_A31_APB1_RESET_REG, AWIN_A31_APB1_RESET_CODEC_RST, 0);
+ }
+
awinac_init(sc);
sc->sc_pdma = awin_dma_alloc(AWIN_DMA_TYPE_NDMA, awinac_pint, sc);
Home |
Main Index |
Thread Index |
Old Index