]> xenbits.xensource.com Git - people/aperard/xen-unstable.git/commitdiff
drivers: char: Enable OMAP UART driver for TI K3 devices
authorVaishnav Achath <vaishnav.a@ti.com>
Mon, 8 Apr 2024 15:03:17 +0000 (20:33 +0530)
committerStefano Stabellini <stefano.stabellini@amd.com>
Tue, 9 Apr 2024 00:18:26 +0000 (17:18 -0700)
TI K3 devices (J721E, J721S2, AM62X .etc) have the same variant
of UART as OMAP4. Add the compatible used in Linux device tree,
"ti,am654-uart" to the OMAP UART dt_match so that the driver can
be used with these devices. Also, enable the driver for ARM64
platforms.

Signed-off-by: Vaishnav Achath <vaishnav.a@ti.com>
Reviewed-by: Michal Orzel <michal.orzel@amd.com>
xen/drivers/char/Kconfig
xen/drivers/char/omap-uart.c

index e18ec3788c715ced99ae52f2b35ee90ebba090e3..3f836ab3015743671369d036517fa97f8b6574a6 100644 (file)
@@ -55,7 +55,7 @@ config HAS_EXYNOS4210
 config HAS_OMAP
        bool "Texas Instruments OMAP UART driver"
        default y
-       depends on ARM_32
+       depends on ARM
        help
          This selects the Texas Instruments OMAP UART. If you have a Texas
          Instruments based CPU, say Y.
index f4368c158c06ca8f472bf8beb52567a091764303..03b5b66e7acb4a72d64412987694a2a290169a6f 100644 (file)
@@ -372,6 +372,7 @@ static int __init omap_uart_init(struct dt_device_node *dev,
 static const struct dt_device_match omap_uart_dt_match[] __initconst =
 {
     DT_MATCH_COMPATIBLE("ti,omap4-uart"),
+    DT_MATCH_COMPATIBLE("ti,am654-uart"),
     { /* sentinel */ },
 };