Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drivers: PL011: add ACPI probing for SBSA UART

Add the necessary driver boilerplate to let the driver be used when
the respective ACPI table is discovered by the ACPI subsystem.

[Andre: change table name, add MODULE_DEVICE_TABLE entry and improve
commit message]

Reviewed-by: Hanjun Guo <hanjun.guo@linaro.org>
Signed-off-by: Graeme Gregory <graeme.gregory@linaro.org>
Tested-by: Mark Langsdorf <mlangsdo@redhat.com>
Tested-by: Naresh Bhat <nbhat@cavium.com>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Graeme Gregory and committed by
Greg Kroah-Hartman
3db9ab0b 0dd1e247

+8
+8
drivers/tty/serial/amba-pl011.c
··· 58 58 #include <linux/pinctrl/consumer.h> 59 59 #include <linux/sizes.h> 60 60 #include <linux/io.h> 61 + #include <linux/acpi.h> 61 62 62 63 #define UART_NR 14 63 64 ··· 2487 2486 }; 2488 2487 MODULE_DEVICE_TABLE(of, sbsa_uart_of_match); 2489 2488 2489 + static const struct acpi_device_id sbsa_uart_acpi_match[] = { 2490 + { "ARMH0011", 0 }, 2491 + {}, 2492 + }; 2493 + MODULE_DEVICE_TABLE(acpi, sbsa_uart_acpi_match); 2494 + 2490 2495 static struct platform_driver arm_sbsa_uart_platform_driver = { 2491 2496 .probe = sbsa_uart_probe, 2492 2497 .remove = sbsa_uart_remove, 2493 2498 .driver = { 2494 2499 .name = "sbsa-uart", 2495 2500 .of_match_table = of_match_ptr(sbsa_uart_of_match), 2501 + .acpi_match_table = ACPI_PTR(sbsa_uart_acpi_match), 2496 2502 }, 2497 2503 }; 2498 2504