firmware: tegra: Add BPMP debugfs support
authorTimo Alho <talho@nvidia.com>
Tue, 3 Oct 2017 06:12:13 +0000 (09:12 +0300)
committerThierry Reding <treding@nvidia.com>
Thu, 19 Oct 2017 14:27:56 +0000 (16:27 +0200)
commitf2381f652266fabfb7a8f5c4b2a05de36cad3a73
tree7cc1a2b2ea4abd3a97676a119960ed7a5d702a06
parent80d47a91e5db96e5db391aaad414fb6ceb40e7c0
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>
drivers/firmware/tegra/Makefile
drivers/firmware/tegra/bpmp-debugfs.c [new file with mode: 0644]
drivers/firmware/tegra/bpmp.c
include/soc/tegra/bpmp.h