summaryrefslogtreecommitdiffstats
path: root/drivers/firmware/tegra/Makefile
diff options
context:
space:
mode:
authorTimo Alho2017-10-03 08:12:13 +0200
committerThierry Reding2017-10-19 16:27:56 +0200
commitf2381f652266fabfb7a8f5c4b2a05de36cad3a73 (patch)
tree7cc1a2b2ea4abd3a97676a119960ed7a5d702a06 /drivers/firmware/tegra/Makefile
parentfirmware: tegra: Add stubs when BPMP not enabled (diff)
downloadkernel-qcow2-linux-f2381f652266fabfb7a8f5c4b2a05de36cad3a73.tar.gz
kernel-qcow2-linux-f2381f652266fabfb7a8f5c4b2a05de36cad3a73.tar.xz
kernel-qcow2-linux-f2381f652266fabfb7a8f5c4b2a05de36cad3a73.zip
firmware: tegra: Add BPMP debugfs support
Tegra power management firmware running on the co-processor (BPMP) implements a simple pseudo file system akin to debugfs. The file system can be used for debugging purposes to examine and change the status of selected resources controlled by the firmware (such as clocks, resets, voltages, powergates, ...). Add support to "mirror" the firmware's file system to debugfs. At boot, query firmware for a list of all possible files and create corresponding debugfs entries. Read/write of individual files is implemented by sending a Message ReQuest (MRQ) that passes the full file path name and data to firmware via DRAM. Signed-off-by: Timo Alho <talho@nvidia.com> Reviewed-by: Jon Hunter <jonathanh@nvidia.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/firmware/tegra/Makefile')
-rw-r--r--drivers/firmware/tegra/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/firmware/tegra/Makefile b/drivers/firmware/tegra/Makefile
index e34a2f79e1ad..1b826dcca719 100644
--- a/drivers/firmware/tegra/Makefile
+++ b/drivers/firmware/tegra/Makefile
@@ -1,2 +1,4 @@
-obj-$(CONFIG_TEGRA_BPMP) += bpmp.o
+tegra-bpmp-y = bpmp.o
+tegra-bpmp-$(CONFIG_DEBUG_FS) += bpmp-debugfs.o
+obj-$(CONFIG_TEGRA_BPMP) += tegra-bpmp.o
obj-$(CONFIG_TEGRA_IVC) += ivc.o