Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8064e93f authored by AnilKumar Chimata's avatar AnilKumar Chimata
Browse files

firmware: qcom: Add TZ log driver snapshot



This is a snapshot of the TZ log driver as of msm-4.4
commit <726279510b02ba9> (msm: pcie: add sysfs entry
for PCIe enumeration).

Change-Id: I3ab77bac40ab38538e0b0f78635be67c70ac9124
Signed-off-by: default avatarAnilKumar Chimata <anilc@codeaurora.org>
parent 50e1c1cc
Loading
Loading
Loading
Loading
+24 −0
Original line number Diff line number Diff line
* TZLOG (Trust Zone Log)

The tz_log driver is a platform device driver that exposes a debugfs
interface for accessing and displaying diagnostic information
related to secure code (Trustzone/QSEE).

Required properties:
- compatible : Should be "qcom,tz-log"
- reg        : Offset and size of the register set for the device

Optional properties:
- qcom,hyplog-enabled   : (boolean) indicates if driver supports HYP logger service.
- hyplog-address-offset : Register offset to get the HYP log base address.
- hyplog-size-offset    : Register offset to get the HYP log size parameter.

Example:

	qcom,tz-log@fe805720 {
		compatible = "qcom,tz-log";
                reg = <0xfe805720 0x1000>;
		qcom,hyplog-enabled;
		hyplog-address-offset = 0x410;
		hyplog-size-offset = 0x414;
	};
+1 −0
Original line number Diff line number Diff line
@@ -210,5 +210,6 @@ source "drivers/firmware/broadcom/Kconfig"
source "drivers/firmware/google/Kconfig"
source "drivers/firmware/efi/Kconfig"
source "drivers/firmware/meson/Kconfig"
source "drivers/firmware/qcom/Kconfig"

endmenu
+1 −0
Original line number Diff line number Diff line
@@ -26,3 +26,4 @@ obj-y += meson/
obj-$(CONFIG_GOOGLE_FIRMWARE)	+= google/
obj-$(CONFIG_EFI)		+= efi/
obj-$(CONFIG_UEFI_CPER)		+= efi/
obj-$(CONFIG_MSM_TZ_LOG)	+= qcom/
+7 −0
Original line number Diff line number Diff line
config MSM_TZ_LOG
        tristate "MSM Trust Zone (TZ) Log Driver"
        depends on DEBUG_FS
        help
          This option enables a driver with a debugfs interface for messages
          produced by the Secure code (Trust zone). These messages provide
          diagnostic information about TZ operation.
+1 −0
Original line number Diff line number Diff line
obj-$(CONFIG_MSM_TZ_LOG) += tz_log.o
Loading