Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/rockchip Fix mux register offset
details: https://anonhg.NetBSD.org/src/rev/4f50e4e263c7
branches: trunk
changeset: 456268:4f50e4e263c7
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Tue Apr 30 22:42:32 2019 +0000
description:
Fix mux register offset
diffstat:
sys/arch/arm/rockchip/rk3399_iomux.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r c538ae13b0af -r 4f50e4e263c7 sys/arch/arm/rockchip/rk3399_iomux.c
--- a/sys/arch/arm/rockchip/rk3399_iomux.c Tue Apr 30 22:39:31 2019 +0000
+++ b/sys/arch/arm/rockchip/rk3399_iomux.c Tue Apr 30 22:42:32 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rk3399_iomux.c,v 1.3 2019/04/30 22:24:27 jmcneill Exp $ */
+/* $NetBSD: rk3399_iomux.c,v 1.4 2019/04/30 22:42:32 jmcneill Exp $ */
/*-
* Copyright (c) 2018 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -29,7 +29,7 @@
//#define RK3399_IOMUX_DEBUG
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rk3399_iomux.c,v 1.3 2019/04/30 22:24:27 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rk3399_iomux.c,v 1.4 2019/04/30 22:42:32 jmcneill Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -367,7 +367,7 @@
} else {
reg = 0x0e000 + (0x10 * (bank - 2));
}
- reg += 0x4 * (idx / 4);
+ reg += 0x4 * (idx / 8);
mask = 3 << ((idx & 7) * 2);
#ifdef RK3399_IOMUX_DEBUG
Home |
Main Index |
Thread Index |
Old Index