diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2013-09-02 19:03:06 +0530 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2013-09-14 13:45:11 -0700 |
commit | 8e35ab2eb4073f988f276548cd99fa584ad75103 (patch) | |
tree | 81599e88214c2229fca503dc16596f8cbbe26177 /drivers/tty | |
parent | 1167d3459e274b5487644f0038a779fe3ff35e81 (diff) |
serail: tegra: renames the driver for easy to interpret/use
Change the port name to SERIAL_TEGRA, driver name to serial-hs-tegra
and add some new compatible value for making easy to use.
bug 1349711
Change-Id: I6f16002c6b9a55954439f748b824fbba6364034c
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/269395
Tested-by: Pradeep Goudagunta <pgoudagunta@nvidia.com>
GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'drivers/tty')
-rw-r--r-- | drivers/tty/serial/serial-tegra.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/drivers/tty/serial/serial-tegra.c b/drivers/tty/serial/serial-tegra.c index 49a0f789fa2f..a18a6066b938 100644 --- a/drivers/tty/serial/serial-tegra.c +++ b/drivers/tty/serial/serial-tegra.c @@ -46,7 +46,7 @@ #include <linux/platform_data/serial-tegra.h> #include <mach/clk.h> -#define TEGRA_UART_TYPE "TEGRA_UART" +#define TEGRA_UART_TYPE "SERIAL_TEGRA" #define TX_EMPTY_STATUS (UART_LSR_TEMT | UART_LSR_THRE) #define BYTES_TO_ALIGN(x) ((unsigned long)(x) & 0x3) @@ -1207,7 +1207,7 @@ static struct uart_ops tegra_uart_ops = { static struct uart_driver tegra_uart_driver = { .owner = THIS_MODULE, - .driver_name = "tegra_hsuart", + .driver_name = "serial-hs-tegra", .dev_name = "ttyHS", .cons = 0, .nr = TEGRA_UART_MAXIMUM, @@ -1269,6 +1269,15 @@ static struct of_device_id tegra_uart_of_match[] = { .compatible = "nvidia,tegra114-hsuart", .data = &tegra114_uart_chip_data, }, { + .compatible = "nvidia,tegra30-hs-serial", + .data = &tegra30_uart_chip_data, + }, { + .compatible = "nvidia,tegra20-hs-serial", + .data = &tegra20_uart_chip_data, + }, { + .compatible = "nvidia,tegra114-hs-serial", + .data = &tegra114_uart_chip_data, + }, { }, }; MODULE_DEVICE_TABLE(of, tegra_uart_of_match); |