ASoC: wcd934x: WDSP debug enhancement

Add interface to trigger WDSP dumps for debug use.
Important register dump and WDSP ramdump are both collected when
DEBUG_DUMP string is sent from userspace via WDSP misc node or
when WDSP boot timeout happens.

CRs-Fixed: 2117755
Change-Id: I8b91a8939201a54512a5e3557ce771b4ff2ff075
Signed-off-by: Walter Yang <yandongy@codeaurora.org>
This commit is contained in:
Walter Yang
2017-11-17 15:47:57 +08:00
parent 05cae9910f
commit 83b0584703
3 changed files with 154 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2016, The Linux Foundation. All rights reserved.
* Copyright (c) 2016-2017, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
@@ -109,6 +109,10 @@ struct wcd_dsp_cntl {
/* Misc device related */
char miscdev_name[256];
struct miscdevice miscdev;
#ifdef CONFIG_DEBUG_FS
/* Debug dump related */
atomic_t err_irq_flag;
#endif
};
void wcd_dsp_cntl_init(struct snd_soc_codec *codec,