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 Set TCON1 parent to PLL_VIDEO1(1X)



details:   https://anonhg.NetBSD.org/src/rev/b9fbb99b3e50
branches:  trunk
changeset: 966953:b9fbb99b3e50
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sat Nov 23 18:57:36 2019 +0000

description:
Set TCON1 parent to PLL_VIDEO1(1X)

diffstat:

 sys/arch/arm/sunxi/sun50i_a64_ccu.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 8179abc1c741 -r b9fbb99b3e50 sys/arch/arm/sunxi/sun50i_a64_ccu.c
--- a/sys/arch/arm/sunxi/sun50i_a64_ccu.c       Sat Nov 23 18:55:08 2019 +0000
+++ b/sys/arch/arm/sunxi/sun50i_a64_ccu.c       Sat Nov 23 18:57:36 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sun50i_a64_ccu.c,v 1.17 2019/11/23 12:29:20 jmcneill Exp $ */
+/* $NetBSD: sun50i_a64_ccu.c,v 1.18 2019/11/23 18:57:36 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2017 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -28,7 +28,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(1, "$NetBSD: sun50i_a64_ccu.c,v 1.17 2019/11/23 12:29:20 jmcneill Exp $");
+__KERNEL_RCSID(1, "$NetBSD: sun50i_a64_ccu.c,v 1.18 2019/11/23 18:57:36 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -622,5 +622,9 @@
        clk_set_parent(&sc->sc_clks[A64_CLK_DE].base, &sc->sc_clks[A64_CLK_PLL_DE].base);
        clk_set_rate(&sc->sc_clks[A64_CLK_PLL_DE].base, 420000000);
 
+       /* Set TCON1 parent to PLL_VIDEO1(1X) */
+       clk_set_parent(&sc->sc_clks[A64_CLK_TCON1].base, &sc->sc_clks[A64_CLK_PLL_VIDEO1].base);
+       clk_set_rate(&sc->sc_clks[A64_CLK_PLL_VIDEO1].base, 297000000);
+
        sunxi_ccu_print(sc);
 }



Home | Main Index | Thread Index | Old Index