summaryrefslogtreecommitdiff
path: root/drivers/tty/serial/serial-tegra.c
AgeCommit message (Collapse)Author
2014-04-11serial: tegra: support DMA channel request for non-DT instancesChaitanya Bandi
dma_request_slave_channel_reason would only work in case the device nodes are registered from DT. Added support for DMA channel request for non-DT instances as well. Bug 1497862 Change-Id: I1f8c1a1902cf3615a85061901348840213251fe3 Signed-off-by: Chaitanya Bandi <bandik@nvidia.com>
2014-04-07serial: tegra: convert to standard DMA DT bindingsChaitanya Bandi
By using dma_request_slave_channel_or_err(), the DMA slave ID can be looked up from standard DT properties, and squirrelled away during channel allocation. Hence, there's no need to use a custom DT property to store the slave ID. Change-Id: I56c2233d390ba185329a6e77e6bd6b0dfcdfe802 Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Stephen Warren <swarren@nvidia.com> Reviewed-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Chaitanya Bandi <bandik@nvidia.com> Reviewed-on: http://git-master/r/389696 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
2013-12-23serial: tegra: Fix RX DMAPradeep Goudagunta
Acknowledge dma after aborting the RX dma request. Bug 1423050 Bug 1415632 Change-Id: I1edfa49a92074aa37c9686865356091191be085b Signed-off-by: Pradeep Goudagunta <pgoudagunta@nvidia.com> Reviewed-on: http://git-master/r/348692 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
2013-12-02tty: serial: tegra: Change device node namePradeep Goudagunta
Change device node name to match upstream driver. Bug 1231069 Change-Id: Ica784dd54a6c00bf8ce9df60bed0e1a212cc99aa Signed-off-by: Pradeep Goudagunta <pgoudagunta@nvidia.com> Reviewed-on: http://git-master/r/299541 Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
2013-10-31Merge tag 'v3.10.17' into dev-kernel-3.10Ajay Nandakumar
This is the 3.10.17 stable release Conflicts: drivers/usb/host/xhci.c Change-Id: I6bd3b15ff92a0b94568b9d02e9bb1036becfca20
2013-10-05serial: tegra: fix tty-kref leakJohan Hovold
commit cfd29aa0e81b791985e8428e6507e80e074e6730 upstream. Fix potential tty-kref leak in stop_rx path. Signed-off-by: Johan Hovold <jhovold@gmail.com> Tested-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-09-14ARM: tegra: Use <linux/clk/tegra.h> instead of <mach/clk.h>Dan Willemsen
So that the upstream common clk infrastructure can live side by side. Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com> Change-Id: I0fe0ef8cd207d27b707821eed838c75b8ec04025
2013-09-14serail: tegra: renames the driver for easy to interpret/useLaxman Dewangan
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
2013-09-14serial: tegra: move header to linux/platform_dataLaxman Dewangan
Move serial-tegra header file to platform_data and renamed as serial-tegra from serial_tegra. Change-Id: I5c7b761192e40591453f626c3b6376742f9e5b70 Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/264389
2013-09-14serial: tegra: Fix stop_txPradeep Goudagunta
Update tx_circular buffer only when TX_DMA is pending. Bug 1332139 Change-Id: I9d94066ca209c153e92468e544d107b310ddf206 Signed-off-by: Pradeep Goudagunta <pgoudagunta@nvidia.com> Reviewed-on: http://git-master/r/259148 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
2013-09-14tty: serial: tegra: Rename device name ttyHSPradeep Goudagunta
Rename device name to ttyHS* from ttyTHS*. Bug 1323103 Change-Id: I98f83782e904ad27b61ec8cb754c64b5715ba4cd Signed-off-by: Pradeep Goudagunta <pgoudagunta@nvidia.com> Reviewed-on: http://git-master/r/233263 (cherry picked from commit 1b57a306934d92d1b9d2121b6a6f511f8321807f) Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com> Reviewed-on: http://git-master/r/247128 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com> Tested-by: Dan Willemsen <dwillemsen@nvidia.com>
2013-09-14serial: tegra: add chip data for T114 SOCKunal Agrawal
added chip data and also compatible, data fields in of_device_id for T114 SOC. Bug 1323103 Change-Id: Iea39ffa247c29f21e87be6b650f5f3b4aa960fbe Signed-off-by: Kunal Agrawal <kunala@nvidia.com> Reviewed-on: http://git-master/r/219674 (cherry picked from commit 0e22fbc3a4d1ff0e3d4d139742f74c59a9b41f6b) Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com> Reviewed-on: http://git-master/r/247127 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com> Tested-by: Dan Willemsen <dwillemsen@nvidia.com>
2013-09-14serial: tegra: support registration of devices through board fileKunal Agrawal
support registration of uart devices through board files also Bug 1323103 Change-Id: Ie17bb8e204d11a83b0ac4935654fb1536d9c43d2 Signed-off-by: Kunal Agrawal <kunala@nvidia.com> Reviewed-on: http://git-master/r/211162 (cherry picked from commit fcea3df82bc7a5136872c04b8429ac7f636f508d) Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com> Reviewed-on: http://git-master/r/247126 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com> Tested-by: Dan Willemsen <dwillemsen@nvidia.com>
2013-09-13Revert "serial: tegra: Fix compilation error"Dan Willemsen
This reverts commit dbf5bef8da169b38db804996a661f8d634df8295. Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>
2013-09-13Revert "serial: tegra: assume CONFIG_OF"Dan Willemsen
This reverts commit c3e1becebfe115f827ea2242218c9a8f627c094f. Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>
2013-03-15serial: tegra: Convert to devm_ioremap_resource()Sachin Kamat
Use the newly introduced devm_ioremap_resource() instead of devm_request_and_ioremap() which provides more consistent error handling. devm_ioremap_resource() provides its own error messages; so all explicit error messages can be removed from the failure code paths. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Reviewed-by: Thierry Reding <thierry.reding@avionic-design.de> Cc: Laxman Dewangan <ldewangan@nvidia.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-02-15serial: tegra: assume CONFIG_OFStephen Warren
Tegra only supports, and always enables, device tree. Remove all ifdefs for DT support from the driver. Signed-off-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-01-25serial: tegra: Fix compilation errorVenu Byravarasu
Fix compilation error, by adding the correct header file for Tegra clocks. Signed-off-by: Venu Byravarasu <vbyravarasu@nvidia.com> Reviewed-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-01-17serial: tegra: Switch to using struct tty_portThierry Reding
Many of the tty functions were converted to use a struct tty_port instead of a struct tty_struct. Update the Tegra driver accordingly to avoid build breakage. Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-01-15serial: tegra: add serial driverLaxman Dewangan
NVIDIA's Tegra has multiple UART controller which supports: - APB DMA based controller fifo read/write. - End Of Data interrupt in incoming data to know whether end of frame achieve or not. - HW controlled RTS and CTS flow control to reduce SW overhead. Add serial driver to use all above feature. Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Acked-by: Alan Cox <alan@linux.intel.com> Reviewed-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>