Module Name: src Committed By: jmcneill Date: Mon Sep 28 11:34:47 UTC 2020
Modified Files: src/sys/dev/fdt: dw_apb_uart.c Log Message: Default reg-shift is 2, not 0, for DW APB UART To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/sys/dev/fdt/dw_apb_uart.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/fdt/dw_apb_uart.c diff -u src/sys/dev/fdt/dw_apb_uart.c:1.6 src/sys/dev/fdt/dw_apb_uart.c:1.7 --- src/sys/dev/fdt/dw_apb_uart.c:1.6 Mon Sep 28 11:32:19 2020 +++ src/sys/dev/fdt/dw_apb_uart.c Mon Sep 28 11:34:47 2020 @@ -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 <jmcne...@invisible.ca> @@ -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 @@ dw_apb_uart_console_consinit(struct fdt_ 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));