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 Fix copy/paste issue that resulted in tco...
details: https://anonhg.NetBSD.org/src/rev/00f5a3f60441
branches: trunk
changeset: 449001:00f5a3f60441
user: jakllsch <jakllsch%NetBSD.org@localhost>
date: Mon Feb 18 02:42:27 2019 +0000
description:
Fix copy/paste issue that resulted in tcon0 ch0/ch1 crtc clk mixup.
diffstat:
sys/arch/arm/sunxi/sunxi_lcdc.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (34 lines):
diff -r cd43da20f438 -r 00f5a3f60441 sys/arch/arm/sunxi/sunxi_lcdc.c
--- a/sys/arch/arm/sunxi/sunxi_lcdc.c Mon Feb 18 01:12:22 2019 +0000
+++ b/sys/arch/arm/sunxi/sunxi_lcdc.c Mon Feb 18 02:42:27 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sunxi_lcdc.c,v 1.4 2019/02/04 12:10:13 jmcneill Exp $ */
+/* $NetBSD: sunxi_lcdc.c,v 1.5 2019/02/18 02:42:27 jakllsch Exp $ */
/*-
* Copyright (c) 2019 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sunxi_lcdc.c,v 1.4 2019/02/04 12:10:13 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sunxi_lcdc.c,v 1.5 2019/02/18 02:42:27 jakllsch Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -244,13 +244,13 @@
TCON_WRITE(sc, TCON0_IO_POL_REG, val);
if (sc->sc_clk_ch[0] != NULL) {
- error = clk_set_rate(sc->sc_clk_ch[1], mode->crtc_clock * 1000);
+ error = clk_set_rate(sc->sc_clk_ch[0], mode->crtc_clock * 1000);
if (error != 0) {
device_printf(sc->sc_dev, "failed to set CH0 PLL rate to %u Hz: %d\n",
mode->crtc_clock * 1000, error);
return;
}
- error = clk_enable(sc->sc_clk_ch[1]);
+ error = clk_enable(sc->sc_clk_ch[0]);
if (error != 0) {
device_printf(sc->sc_dev, "failed to enable CH0 PLL: %d\n", error);
return;
Home |
Main Index |
Thread Index |
Old Index