gpu: host1x-nvhost: export nvhost_get_host1x_device API

Export the API, that can be used by other modules, for retrieving
the host1x platform_device data for the right host1x instance.

Bug 4793553
Jira HOSTX-5414

Signed-off-by: Santosh BS <santoshb@nvidia.com>
Change-Id: Iadfb9f1f28468a4ff470ea505512a27f9092e2f2
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3196481
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com>
This commit is contained in:
Omar Nemri
2024-08-19 10:02:56 -07:00
committed by Jon Hunter
parent d789effad6
commit edf6adc357
2 changed files with 3 additions and 1 deletions

View File

@@ -185,6 +185,7 @@ int nvhost_flcn_finalize_poweron(struct platform_device *dev);
/* public api to return platform_device ptr to the default host1x instance */
struct platform_device *nvhost_get_default_device(void);
struct platform_device *nvhost_get_host1x_device(int instance);
/* common runtime pm and power domain APIs */
int nvhost_module_init(struct platform_device *ndev);