diff options
author | Markus Mayer <mmayer@broadcom.com> | 2016-10-27 17:05:36 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2016-11-01 01:07:38 -0400 |
commit | 33de45c133b40a129a880c175af4c2bb39dafc88 (patch) | |
tree | d507a18bc093e6e71c8e86fdaa34a8cf95ed01ba /drivers/cpufreq/Kconfig.arm | |
parent | de322e085995b9417582d6f72229dadb5c09d163 (diff) |
cpufreq: brcmstb-avs-cpufreq: add debugfs support
In order to aid debugging, we add a debugfs interface to the driver
that allows direct interaction with the AVS co-processor.
The debugfs interface provides a means for reading all and writing some
of the mailbox registers directly from the shell prompt and enables a
user to execute the communications protocol between ARM CPU and AVS CPU
step-by-step.
This interface should be used for debugging purposes only.
Signed-off-by: Markus Mayer <mmayer@broadcom.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpufreq/Kconfig.arm')
-rw-r--r-- | drivers/cpufreq/Kconfig.arm | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/cpufreq/Kconfig.arm b/drivers/cpufreq/Kconfig.arm index 04f7862eacd3..920c469f3953 100644 --- a/drivers/cpufreq/Kconfig.arm +++ b/drivers/cpufreq/Kconfig.arm | |||
@@ -23,6 +23,16 @@ config ARM_BRCMSTB_AVS_CPUFREQ | |||
23 | 23 | ||
24 | Say Y, if you have a Broadcom SoC with AVS support for DFS or DVFS. | 24 | Say Y, if you have a Broadcom SoC with AVS support for DFS or DVFS. |
25 | 25 | ||
26 | config ARM_BRCMSTB_AVS_CPUFREQ_DEBUG | ||
27 | bool "Broadcom STB AVS CPUfreq driver sysfs debug capability" | ||
28 | depends on ARM_BRCMSTB_AVS_CPUFREQ | ||
29 | help | ||
30 | Enabling this option turns on debug support via sysfs under | ||
31 | /sys/kernel/debug/brcmstb-avs-cpufreq. It is possible to read all and | ||
32 | write some AVS mailbox registers through sysfs entries. | ||
33 | |||
34 | If in doubt, say N. | ||
35 | |||
26 | config ARM_DT_BL_CPUFREQ | 36 | config ARM_DT_BL_CPUFREQ |
27 | tristate "Generic probing via DT for ARM big LITTLE CPUfreq driver" | 37 | tristate "Generic probing via DT for ARM big LITTLE CPUfreq driver" |
28 | depends on ARM_BIG_LITTLE_CPUFREQ && OF | 38 | depends on ARM_BIG_LITTLE_CPUFREQ && OF |