Skip to content

Commit

Permalink
AXI performance monitor driver
Browse files Browse the repository at this point in the history
Uses the debugfs I/F to provide access to the AXI
bus performance monitors.

Requires the new mailbox peripheral access for access
to the VPU performance registers, system bus access
is done using direct register reads.

Signed-off-by: James Hughes <james.hughes@raspberrypi.org>
  • Loading branch information
James Hughes committed Nov 2, 2017
1 parent b76f96e commit 8296317
Show file tree
Hide file tree
Showing 5 changed files with 653 additions and 0 deletions.
8 changes: 8 additions & 0 deletions arch/arm/boot/dts/bcm270x.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,14 @@
/* Add alias */
status = "disabled";
};

axiperf: axiperf {
compatible = "brcm,bcm2835-axiperf";
reg = <0x7e009800 0x100>,
<0x7ee08000 0x100>;
firmware = <&firmware>;
status = "okay";
};
};

vdd_5v0_reg: fixedregulator_5v0 {
Expand Down
6 changes: 6 additions & 0 deletions drivers/perf/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,10 @@ config XGENE_PMU
help
Say y if you want to use APM X-Gene SoC performance monitors.

config RPI_AXIPERF
depends on ARCH_BCM2835
bool "RaspberryPi AXI Performance monitors"
default n
help
Say y if you want to use Raspberry Pi AXI performance monitors
endmenu
1 change: 1 addition & 0 deletions drivers/perf/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ obj-$(CONFIG_ARM_PMU_ACPI) += arm_pmu_acpi.o
obj-$(CONFIG_QCOM_L2_PMU) += qcom_l2_pmu.o
obj-$(CONFIG_QCOM_L3_PMU) += qcom_l3_pmu.o
obj-$(CONFIG_XGENE_PMU) += xgene_pmu.o
obj-$(CONFIG_RPI_AXIPERF) += raspberrypi_axi_monitor.o
Loading

0 comments on commit 8296317

Please sign in to comment.