Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/acpi Ignore AccessWidth (PL011 and SBSA console...
details: https://anonhg.NetBSD.org/src/rev/a2e8c30f7101
branches: trunk
changeset: 462975:a2e8c30f7101
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Fri Aug 02 19:49:17 2019 +0000
description:
Ignore AccessWidth (PL011 and SBSA console always needs 32-bit access)
diffstat:
sys/arch/arm/acpi/acpi_platform.c | 11 +++--------
1 files changed, 3 insertions(+), 8 deletions(-)
diffs (32 lines):
diff -r 78a320de0428 -r a2e8c30f7101 sys/arch/arm/acpi/acpi_platform.c
--- a/sys/arch/arm/acpi/acpi_platform.c Fri Aug 02 14:55:57 2019 +0000
+++ b/sys/arch/arm/acpi/acpi_platform.c Fri Aug 02 19:49:17 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: acpi_platform.c,v 1.15 2019/07/24 19:37:52 jmcneill Exp $ */
+/* $NetBSD: acpi_platform.c,v 1.16 2019/08/02 19:49:17 jmcneill Exp $ */
/*-
* Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
#include "opt_multiprocessor.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi_platform.c,v 1.15 2019/07/24 19:37:52 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_platform.c,v 1.16 2019/08/02 19:49:17 jmcneill Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -278,12 +278,7 @@
plcom_console.pi_iot = &arm_generic_bs_tag;
plcom_console.pi_iobase = spcr->SerialPort.Address;
plcom_console.pi_size = PL011COM_UART_SIZE;
- if (spcr->InterfaceType == ACPI_DBG2_ARM_SBSA_32BIT) {
- plcom_console.pi_flags = PLC_FLAG_32BIT_ACCESS;
- } else {
- plcom_console.pi_flags = ACPI_ACCESS_BIT_WIDTH(spcr->SerialPort.AccessWidth) == 8 ?
- 0 : PLC_FLAG_32BIT_ACCESS;
- }
+ plcom_console.pi_flags = PLC_FLAG_32BIT_ACCESS;
plcomcnattach(&plcom_console, baud_rate, 0, TTYDEF_CFLAG, -1);
break;
Home |
Main Index |
Thread Index |
Old Index