Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/sunxi Add missing A10_RST_LVDS entry



details:   https://anonhg.NetBSD.org/src/rev/415d85f21e10
branches:  trunk
changeset: 321734:415d85f21e10
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Mon Apr 02 20:57:18 2018 +0000

description:
Add missing A10_RST_LVDS entry
fix sun4i_a10_ac_dig_table[] with values from arm/allwinner/,
audio plays at the right rate again on my lime2

diffstat:

 sys/arch/arm/sunxi/sun4i_a10_ccu.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (43 lines):

diff -r e18a7e7f48b9 -r 415d85f21e10 sys/arch/arm/sunxi/sun4i_a10_ccu.c
--- a/sys/arch/arm/sunxi/sun4i_a10_ccu.c        Mon Apr 02 20:55:49 2018 +0000
+++ b/sys/arch/arm/sunxi/sun4i_a10_ccu.c        Mon Apr 02 20:57:18 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sun4i_a10_ccu.c,v 1.8 2018/04/01 21:19:17 bouyer Exp $ */
+/* $NetBSD: sun4i_a10_ccu.c,v 1.9 2018/04/02 20:57:18 bouyer Exp $ */
 
 /*-
  * Copyright (c) 2017 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -28,7 +28,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(1, "$NetBSD: sun4i_a10_ccu.c,v 1.8 2018/04/01 21:19:17 bouyer Exp $");
+__KERNEL_RCSID(1, "$NetBSD: sun4i_a10_ccu.c,v 1.9 2018/04/02 20:57:18 bouyer Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -74,6 +74,7 @@
 #define        CSI_CFG_REG             0x134
 #define        VE_CFG_REG              0x13c
 #define        AUDIO_CODEC_SCLK_CFG_REG 0x140
+#define        LVDS_CFG_REG            0x14c
 #define        HDMI_CLOCK_CFG_REG      0x150
 #define        MALI_CLOCK_CFG_REG      0x154
 #define        IEP_SCLK_CFG_REG        0x160
@@ -106,6 +107,7 @@
        SUNXI_CCU_RESET(A10_RST_DE_MP, MP_CFG_REG, 30),
        SUNXI_CCU_RESET(A10_RST_TCON0, LCD0CH0_CFG_REG, 30),
        SUNXI_CCU_RESET(A10_RST_TCON1, LCD1CH0_CFG_REG, 30),
+       SUNXI_CCU_RESET(A10_RST_LVDS, LVDS_CFG_REG, 0),
 };
 
 static const char *cpu_parents[] = { "losc", "osc24m", "pll_core", "pll_periph" };
@@ -132,7 +134,7 @@
 };
 
 static const struct sunxi_ccu_nkmp_tbl sun4i_a10_ac_dig_table[] = {
-       { 24576000, 86, 0, 21, 3 },
+       { 24576000, 86, 0, 21, 4 },
        { 0 }
 };
 



Home | Main Index | Thread Index | Old Index