diff options
author | Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> | 2019-08-21 13:58:18 -0500 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2019-08-23 12:01:02 +0530 |
commit | bf03473d5bcc85fbe9533fa042f67809d8520c4e (patch) | |
tree | f7011ad3cc5026c8d2644ba7bede251510ec2d98 /drivers/soundwire/Makefile | |
parent | e87cf35835d933d8c295cc946dae8547d1a6bd63 (diff) | |
download | linux-bf03473d5bcc85fbe9533fa042f67809d8520c4e.tar.gz linux-bf03473d5bcc85fbe9533fa042f67809d8520c4e.tar.bz2 linux-bf03473d5bcc85fbe9533fa042f67809d8520c4e.zip |
soundwire: add debugfs support
Add base debugfs mechanism for SoundWire bus by creating soundwire
root and master-N and slave-x hierarchy.
Also add SDW Slave SCP, DP0 and DP-N register debug file.
Registers not implemented will print as "XX"
Credits: this patch is based on an earlier internal contribution by
Vinod Koul, Sanyog Kale, Shreyas Nc and Hardik Shah.
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Sanyog Kale <sanyog.r.kale@intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20190821185821.12690-2-pierre-louis.bossart@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/soundwire/Makefile')
-rw-r--r-- | drivers/soundwire/Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/soundwire/Makefile b/drivers/soundwire/Makefile index fd99a831b92a..34bbd36a9851 100644 --- a/drivers/soundwire/Makefile +++ b/drivers/soundwire/Makefile @@ -7,6 +7,10 @@ soundwire-bus-objs := bus_type.o bus.o slave.o mipi_disco.o stream.o obj-$(CONFIG_SOUNDWIRE_BUS) += soundwire-bus.o +ifdef CONFIG_DEBUG_FS +soundwire-bus-objs += debugfs.o +endif + #Cadence Objs soundwire-cadence-objs := cadence_master.o obj-$(CONFIG_SOUNDWIRE_CADENCE) += soundwire-cadence.o |