mirrored from git://xenbits.xen.org/xen.git
-
Notifications
You must be signed in to change notification settings - Fork 331
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drivers/char: rename arm-uart.c to uart-init.c
Rename the file containing uart_init() to enable reuse across other architectures that utilize device trees or SPCR tables to locate UART information. After locating UART data, {acpi}_device_init() is called to initialize the UART. arm_uart_init() is renamed to uart_init() to be reused by other architectures. A new configuration option, CONFIG_GENERIC_UART_INIT, is introduced, currently available only for Arm. Enabling CONFIG_UART_INIT on additional architectures will require additional functionality, such as device tree mapping and unflattening, etc. arm-uart.c is removed from "ARM (W/ VIRTUALIZATION EXTENSIONS) ARCHITECTURE" section in the MAINTAINERS file, as it is no longer Arm-specific and can now be maintained by maintainers of other architectures. Use GENERIC_UART_INIT for CONFIG_ARM by adding `select GENERIC_UART_INIT` to CONFIG_ARM. Signed-off-by: Oleksii Kurochko <[email protected]> Reviewed-by: Michal Orzel <[email protected]> Acked-by: Julien Grall <[email protected]>
- Loading branch information
Oleksii Kurochko
authored and
Julien Grall
committed
Nov 28, 2024
1 parent
a14593e
commit 7bd8d37
Showing
7 changed files
with
11 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -245,7 +245,6 @@ S: Supported | |
L: [email protected] | ||
F: docs/misc/arm/ | ||
F: xen/arch/arm/ | ||
F: xen/drivers/char/arm-uart.c | ||
F: xen/drivers/char/cadence-uart.c | ||
F: xen/drivers/char/exynos4210-uart.c | ||
F: xen/drivers/char/imx-lpuart.c | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
config GENERIC_UART_INIT | ||
bool | ||
|
||
config HAS_NS16550 | ||
bool "NS16550 UART driver" if ARM | ||
default n if RISCV | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,13 @@ | ||
/* SPDX-License-Identifier: GPL-2.0-or-later */ | ||
|
||
/* | ||
* Derived from: | ||
* xen/drivers/char/arm-uart.c | ||
* | ||
* Generic uart retrieved via the device tree or ACPI | ||
* | ||
* Julien Grall <[email protected]> | ||
* Copyright (c) 2013 Linaro Limited. | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation; either version 2 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
*/ | ||
|
||
#include <asm/device.h> | ||
|
@@ -126,7 +119,7 @@ static void __init acpi_uart_init(void) | |
static void __init acpi_uart_init(void) { } | ||
#endif | ||
|
||
void __init arm_uart_init(void) | ||
void __init uart_init(void) | ||
{ | ||
if ( acpi_disabled ) | ||
dt_uart_init(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters