Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/fdt Default reg-shift is 2, not 0, for DW APB UART
details: https://anonhg.NetBSD.org/src/rev/93f38a9122fc
branches: trunk
changeset: 955410:93f38a9122fc
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Mon Sep 28 11:34:47 2020 +0000
description:
Default reg-shift is 2, not 0, for DW APB UART
diffstat:
sys/dev/fdt/dw_apb_uart.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r d0c4cc9f4407 -r 93f38a9122fc sys/dev/fdt/dw_apb_uart.c
--- a/sys/dev/fdt/dw_apb_uart.c Mon Sep 28 11:33:15 2020 +0000
+++ b/sys/dev/fdt/dw_apb_uart.c Mon Sep 28 11:34:47 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dw_apb_uart.c,v 1.6 2020/09/28 11:32:19 jmcneill Exp $ */
+/* $NetBSD: dw_apb_uart.c,v 1.7 2020/09/28 11:34:47 jmcneill Exp $ */
/*-
* Copyright (c) 2017 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -28,7 +28,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: dw_apb_uart.c,v 1.6 2020/09/28 11:32:19 jmcneill Exp $");
+__KERNEL_RCSID(1, "$NetBSD: dw_apb_uart.c,v 1.7 2020/09/28 11:34:47 jmcneill Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -174,8 +174,8 @@
flags = fdtbus_get_stdout_flags();
if (of_getprop_uint32(phandle, "reg-shift", ®_shift)) {
- /* missing or bad reg-shift property, assume 0 */
- reg_shift = 0;
+ /* missing or bad reg-shift property, assume 2 */
+ reg_shift = 2;
}
memset(&dummy_bsh, 0, sizeof(dummy_bsh));
Home |
Main Index |
Thread Index |
Old Index