]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
serial: samsung: add devicetree properties for non-Exynos SoCs
authorHeiko Stübner <heiko@sntech.de>
Thu, 22 Nov 2012 10:37:44 +0000 (11:37 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 26 Nov 2012 23:36:39 +0000 (15:36 -0800)
Until now only the Exynos SoCs could use the serial driver via the
device tree. This patch adds compatible properties for the other
supported SoCs as well.

Tested on a s3c2416 based machine.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/samsung.c

index 9368c3e81cc89fb8258c8229a06a44473fb891e6..fb0e0f0bed0efb1ce3fd42127274c4f257f4d219 100644 (file)
@@ -1709,6 +1709,16 @@ MODULE_DEVICE_TABLE(platform, s3c24xx_serial_driver_ids);
 
 #ifdef CONFIG_OF
 static const struct of_device_id s3c24xx_uart_dt_match[] = {
+       { .compatible = "samsung,s3c2410-uart",
+               .data = (void *)S3C2410_SERIAL_DRV_DATA },
+       { .compatible = "samsung,s3c2412-uart",
+               .data = (void *)S3C2412_SERIAL_DRV_DATA },
+       { .compatible = "samsung,s3c2440-uart",
+               .data = (void *)S3C2440_SERIAL_DRV_DATA },
+       { .compatible = "samsung,s3c6400-uart",
+               .data = (void *)S3C6400_SERIAL_DRV_DATA },
+       { .compatible = "samsung,s5pv210-uart",
+               .data = (void *)S5PV210_SERIAL_DRV_DATA },
        { .compatible = "samsung,exynos4210-uart",
                .data = (void *)EXYNOS4210_SERIAL_DRV_DATA },
        {},