This far the subdomain registration has been allowed for drivers that
use nvhost_acm framework. However, gk20a handles its own power domain bu
it needs to register it as a subdomain of host1x. This patch exports
necessary functionality in public header.
Bug
200003112
Change-Id: Ie3457345c101329cadac4ef8aa71e448629a419b
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/407002
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mitch Luban <mluban@nvidia.com>
GVS: Gerrit_Virtual_Submit
return ret;
}
+void nvhost_register_client_domain(struct generic_pm_domain *domain)
+{
+ pm_genpd_add_subdomain(host1x_domain, domain);
+}
+EXPORT_SYMBOL(nvhost_register_client_domain);
+
/* common runtime pm and power domain APIs */
int nvhost_module_add_domain(struct generic_pm_domain *domain,
struct platform_device *pdev)
int nvhost_module_busy_ext(struct platform_device *dev);
void nvhost_module_idle_ext(struct platform_device *dev);
+/* public api to register a subdomain */
+void nvhost_register_client_domain(struct generic_pm_domain *domain);
+
/* public host1x sync-point management APIs */
u32 nvhost_syncpt_incr_max_ext(struct platform_device *dev, u32 id, u32 incrs);
void nvhost_syncpt_cpu_incr_ext(struct platform_device *dev, u32 id);