diff --git a/drivers/staging/android/fiq_debugger/fiq_debugger.c b/drivers/staging/android/fiq_debugger/fiq_debugger.c index fcf0c901a24a..fda77661f3f4 100644 --- a/drivers/staging/android/fiq_debugger/fiq_debugger.c +++ b/drivers/staging/android/fiq_debugger/fiq_debugger.c @@ -54,6 +54,10 @@ #include "fiq_debugger_priv.h" #include "fiq_debugger_ringbuf.h" +#ifdef CONFIG_ROCKCHIP_DEBUG +#include "../../../soc/rockchip/rockchip_debug.h" +#endif + #define DEBUG_MAX 64 #define CMD_COUNT 0x0f #define MAX_UNHANDLED_FIQ_COUNT 1000000 @@ -489,6 +493,9 @@ static char cmd_buf[][16] = { {"reboot"}, {"irqs"}, {"kmsg"}, +#ifdef CONFIG_ROCKCHIP_DEBUG + {"pcsr"}, +#endif {"version"}, {"sleep"}, {"nosleep"}, @@ -515,6 +522,9 @@ static void fiq_debugger_help(struct fiq_debugger_state *state) " reset [] Hard reset with command \n" " irqs Interupt status\n"); fiq_debugger_printf(&state->output, +#ifdef CONFIG_ROCKCHIP_DEBUG + " pcsr Dump all cpus pc by DBGPCSR\n" +#endif " kmsg Kernel log\n" " version Kernel version\n"); fiq_debugger_printf(&state->output, @@ -623,6 +633,10 @@ static bool fiq_debugger_fiq_exec(struct fiq_debugger_state *state, fiq_debugger_dump_irqs(state); } else if (!strcmp(cmd, "kmsg")) { fiq_debugger_dump_kernel_log(state); +#ifdef CONFIG_ROCKCHIP_DEBUG + } else if (!strcmp(cmd, "pcsr")) { + rockchip_debug_dump_pcsr(&state->output); +#endif } else if (!strcmp(cmd, "version")) { fiq_debugger_printf(&state->output, "%s\n", linux_banner); } else if (!strcmp(cmd, "sleep")) {