]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
video: tegra: host: Export subdomain registration
authorArto Merilainen <amerilainen@nvidia.com>
Thu, 8 May 2014 15:49:38 +0000 (18:49 +0300)
committerTony Ly <tly@nvidia.com>
Mon, 12 May 2014 17:32:11 +0000 (10:32 -0700)
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

drivers/video/tegra/host/nvhost_acm.c
include/linux/nvhost.h

index ebbaf119aa7a45c63b0f902446b4db2c8757a772..cd02f20ea0068f0f60f6867444ef30d188a536bc 100644 (file)
@@ -719,6 +719,12 @@ int _nvhost_module_add_domain(struct generic_pm_domain *domain,
        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)
index 46faeca981e25ac01b02f6ad69a37010a2e57876..40dbc6f2a7057c00af1429beae64d370ae96db44 100644 (file)
@@ -325,6 +325,9 @@ bool nvhost_module_powered_ext(struct platform_device *dev);
 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);