diff options
author | Renn Wu <rewu@nvidia.com> | 2014-12-11 16:11:12 +0800 |
---|---|---|
committer | Matthew Pedro <mapedro@nvidia.com> | 2015-01-20 09:25:21 -0800 |
commit | af6d3b2391cf8757e02ac2d042f330862d4a9e6e (patch) | |
tree | 303ff19fa51fd19afb2ef029e8001659ddb9e48b /drivers/platform | |
parent | 0aab059d8bee8e30c5d84799ad211f5c911ddee4 (diff) |
FIQ: Implement WDT FIQ debugger
Implement Tegra WDT FIQ debug function.
Default is disabled.
Bug 1581432
Change-Id: Ic81ab4cd3285080016b37191e6e0fab18e330a30
Signed-off-by: Renn Wu <rewu@nvidia.com>
Reviewed-on: http://git-master/r/#/c/271988
Reviewed-on: http://git-master/r/662550
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Diffstat (limited to 'drivers/platform')
-rw-r--r-- | drivers/platform/tegra/tegra_fiq_debugger.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/drivers/platform/tegra/tegra_fiq_debugger.c b/drivers/platform/tegra/tegra_fiq_debugger.c index 302b081e43a9..64f90d1b0cc3 100644 --- a/drivers/platform/tegra/tegra_fiq_debugger.c +++ b/drivers/platform/tegra/tegra_fiq_debugger.c @@ -4,7 +4,7 @@ * Serial Debugger Interface for Tegra * * Copyright (C) 2008 Google, Inc. - * Copyright (c) 2012-2013, NVIDIA CORPORATION. All rights reserved. + * Copyright (c) 2012-2015, NVIDIA CORPORATION. All rights reserved. * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and @@ -124,6 +124,12 @@ static void fiq_enable(struct platform_device *pdev, unsigned int irq, bool on) tegra_fiq_disable(irq); } + +static void fiq_ack(struct platform_device *pdev, unsigned int fiq) +{ + tegra_fiq_ack(fiq); +} + static int tegra_fiq_debugger_id; static void __tegra_serial_debug_init(unsigned int base, int fiq, int irq, @@ -145,7 +151,7 @@ static void __tegra_serial_debug_init(unsigned int base, int fiq, int irq, t->pdata.uart_putc = debug_putc; t->pdata.uart_flush = debug_flush; t->pdata.fiq_enable = fiq_enable; - + t->pdata.fiq_ack = fiq_ack; t->debug_port_base = ioremap(base, PAGE_SIZE); if (!t->debug_port_base) { pr_err("Failed to ioremap for fiq debugger\n"); |