From 1f2b0eaf5293329eaf35742921e1260552313a2d Mon Sep 17 00:00:00 2001 From: Ramalingam C Date: Wed, 11 Jul 2012 12:30:44 +0530 Subject: tty: serial: tegra: IrDA support with tegra_hsuart Adds the IrDA transceiver handling support to tegra_hsuart driver based on the platform data. Bug 999895 Change-Id: Ia475639d97c540d014c7128ef392fa394a5b26ad Signed-off-by: Ramalingam C Reviewed-on: http://git-master/r/114927 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Laxman Dewangan --- include/linux/tegra_uart.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'include/linux/tegra_uart.h') diff --git a/include/linux/tegra_uart.h b/include/linux/tegra_uart.h index 38912ea97068..f51b373f8025 100644 --- a/include/linux/tegra_uart.h +++ b/include/linux/tegra_uart.h @@ -1,6 +1,6 @@ /* include/linux/tegra_uart.h * - * Copyright (C) 2011 NVIDIA Corporation + * Copyright (C) 2011-2012 NVIDIA Corporation * * 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 @@ -33,6 +33,12 @@ struct tegra_uart_platform_data { struct uart_clk_parent *parent_clk_list; int parent_clk_count; bool is_loopback; + bool is_irda; + int (*irda_init)(void); + int (*irda_mode_switch)(int); + void (*irda_start)(void); + void (*irda_shutdown)(void); + void (*irda_remove)(void); }; int tegra_uart_is_tx_empty(struct uart_port *); -- cgit v1.2.3