mirror of
git://nv-tegra.nvidia.com/linux-hwpm.git
synced 2025-12-23 01:35:10 +03:00
tegra: hwpm: Linux: Setup trigger IOCTL Infra
Add IOCTL infra for Cross trigger programming in HWPM Driver. Cross Triggering involves the access to secure register, which cannot be issued by user space application. Hence, implement cross trigger functionality in HWPM kernel driver. Bug 4571175 Signed-off-by: vasukis <vasukis@nvidia.com> Change-Id: Ia46227c4678d3ee282ebae8c58e116feaf4e59cb Reviewed-on: https://git-master.nvidia.com/r/c/linux-hwpm/+/3147289 Reviewed-by: Seema Khowala <seemaj@nvidia.com> GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
f672287ded
commit
425b5f92ae
@@ -259,3 +259,14 @@ int tegra_hwpm_credit_program(struct tegra_soc_hwpm *hwpm,
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
int tegra_hwpm_setup_trigger(struct tegra_soc_hwpm *hwpm,
|
||||
struct tegra_soc_hwpm_setup_trigger *setup_trigger)
|
||||
{
|
||||
tegra_hwpm_fn(hwpm, " ");
|
||||
|
||||
/* Call chip specific setup trigger API */
|
||||
return hwpm->active_chip->setup_trigger(hwpm,
|
||||
setup_trigger->enable_cross_trigger,
|
||||
setup_trigger->session_type);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user