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 /include/linux | |
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 'include/linux')
-rw-r--r-- | include/linux/irqchip/tegra.h | 14 | ||||
-rw-r--r-- | include/linux/tegra_fiq_debugger.h | 11 |
2 files changed, 17 insertions, 8 deletions
diff --git a/include/linux/irqchip/tegra.h b/include/linux/irqchip/tegra.h index 7c537b08f0ff..533af0bc587a 100644 --- a/include/linux/irqchip/tegra.h +++ b/include/linux/irqchip/tegra.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2010-2013 NVIDIA Corporation. All rights reserved. + * Copyright (C) 2010-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 @@ -39,6 +39,13 @@ void tegra_gic_dist_enable(void); void tegra_gic_disable_affinity(void); void tegra_gic_restore_affinity(void); void tegra_gic_affinity_to_cpu0(void); + +#if !defined(CONFIG_TRUSTED_FOUNDATIONS) && \ + defined(CONFIG_ARCH_TEGRA_12x_SOC) && defined(CONFIG_FIQ_DEBUGGER) +void __cpuinit tegra_gic_secondary_init(void); +void __cpuinit gic_secondary_init_t124(unsigned int); +#endif + #endif #endif @@ -120,6 +127,11 @@ int get_vbus_id_cable_connect_state(bool *is_vbus_connected, void tegra_fiq_enable(int n); void tegra_fiq_disable(int n); +#if !defined(CONFIG_TRUSTED_FOUNDATIONS) && \ + defined(CONFIG_ARCH_TEGRA_12x_SOC) && defined(CONFIG_FIQ_DEBUGGER) +void tegra_fiq_ack(unsigned int n); +#endif + void tegra_init_legacy_irq_cop(void); /* lp1 wake interrupts enabled or disabled using this API */ diff --git a/include/linux/tegra_fiq_debugger.h b/include/linux/tegra_fiq_debugger.h index 67ca9bdaa4d9..99d76315df95 100644 --- a/include/linux/tegra_fiq_debugger.h +++ b/include/linux/tegra_fiq_debugger.h @@ -2,6 +2,7 @@ * linux/arch/arm/mach-tegra/include/mach/tegra_fiq_debugger.h * * Copyright (C) 2010 Google, Inc. + * Copyright (C) 2014-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 @@ -18,19 +19,15 @@ #define __MACH_TEGRA_FIQ_DEBUGGER_H #ifdef CONFIG_TEGRA_FIQ_DEBUGGER -void tegra_serial_debug_init(unsigned int base, int fiq, +void tegra_serial_debug_init(unsigned int base, int irq, struct clk *clk, int signal_irq, int wakeup_irq); void tegra_serial_debug_init_irq_mode(unsigned int base, int irq, - struct clk *clk, int signal_irq, int wakeup_irq); + struct clk *clk, int signal_irq, int wakeup_irq); #else -static inline void tegra_serial_debug_init(unsigned int base, int fiq, +static inline void tegra_serial_debug_init(unsigned int base, int irq, struct clk *clk, int signal_irq, int wakeup_irq) { } -static inline void tegra_serial_debug_init_irq_mode(unsigned int base, int irq, - struct clk *clk, int signal_irq, int wakeup_irq) -{ -} #endif #endif |