summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLeon Yu <leoyu@nvidia.com>2020-01-30 01:31:03 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2020-02-07 14:23:55 -0500
commit143272e44dc2ddbd8115b4b6c951ae88adb5a17c (patch)
treea092b12875fb310178ac1e733ac2e2d553d7b5a2 /include
parentcf09fec01be5d52bc857d2cc446cdb33534dcb01 (diff)
video: tegra: host: add freq. capping capability
This change adds sysfs interface under acm for capping frequencies of host1x clients. It is to replace existing nvpmodel kernel driver which serves same purpose but does this in an unreliable/wrong way - bypassing host1x and grabbing parent clock handle of clients directly. With this functionality, things are put under host1x acm control and we gain more finely grained control in some cases, e.g. setting freq. cap independently for dla0 and dla1. Bug 200585348 Bug 200521935 Change-Id: I34445df1abc3656138cfde06c23ea5a4c8694d07 Signed-off-by: Leon Yu <leoyu@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2288876 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'include')
-rw-r--r--include/linux/nvhost.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/nvhost.h b/include/linux/nvhost.h
index ade9da2de..56448483c 100644
--- a/include/linux/nvhost.h
+++ b/include/linux/nvhost.h
@@ -3,7 +3,7 @@
3 * 3 *
4 * Tegra graphics host driver 4 * Tegra graphics host driver
5 * 5 *
6 * Copyright (c) 2009-2019, NVIDIA Corporation. All rights reserved. 6 * Copyright (c) 2009-2020, NVIDIA Corporation. All rights reserved.
7 * 7 *
8 * This program is free software; you can redistribute it and/or modify 8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by 9 * it under the terms of the GNU General Public License as published by
@@ -235,6 +235,9 @@ struct nvhost_device_data {
235 235
236 struct kobject *power_kobj; /* kobject to hold power sysfs entries */ 236 struct kobject *power_kobj; /* kobject to hold power sysfs entries */
237 struct nvhost_device_power_attr *power_attrib; /* sysfs attributes */ 237 struct nvhost_device_power_attr *power_attrib; /* sysfs attributes */
238 /* kobject to hold clk_cap sysfs entries */
239 struct kobject clk_cap_kobj;
240 struct kobj_attribute *clk_cap_attrs;
238 struct dentry *debugfs; /* debugfs directory */ 241 struct dentry *debugfs; /* debugfs directory */
239 242
240 u32 nvhost_timeout_default; 243 u32 nvhost_timeout_default;