tegra: Make tegra_vi01_device accessible
Andrew Chew [Wed, 1 Aug 2012 23:39:32 +0000 (16:39 -0700)]
Make it accessible outside of drivers/video/tegra. V4L2 driver needs
to set some platform_data.

Add suport for T20.

Change-Id: I98353c2874ea28cfa0a7a5dd8a1dc4c586af4dd7
Signed-off-by: Andrew Chew <achew@nvidia.com>
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/200220
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

drivers/video/tegra/host/t20/t20.c
drivers/video/tegra/host/t30/t30.c
include/linux/nvhost.h

index 71ed733..e6840ae 100644 (file)
@@ -286,3 +286,9 @@ int nvhost_init_t20_support(struct nvhost_master *host,
 
        return 0;
 }
+
+/* Hacky way to get access to struct nvhost_device tegra_vi01_device. */
+struct nvhost_device *t20_get_tegra_vi01_device(void)
+{
+       return &tegra_vi01_device;
+}
index 334d598..6c3a7f9 100644 (file)
@@ -301,3 +301,9 @@ int nvhost_init_t30_support(struct nvhost_master *host,
 
        return 0;
 }
+
+/* Hacky way to get access to struct nvhost_device tegra_vi01_device. */
+struct nvhost_device *t30_get_tegra_vi01_device(void)
+{
+       return &tegra_vi01_device;
+}
index d7d8ad0..add4aea 100644 (file)
@@ -215,4 +215,8 @@ int nvhost_syncpt_wait_timeout_ext(struct nvhost_device *dev, u32 id, u32 thresh
 
 void nvhost_scale3d_set_throughput_hint(int hint);
 
+/* Hacky way to get access to struct nvhost_device tegra_vi01_device. */
+struct nvhost_device *t20_get_tegra_vi01_device(void);
+struct nvhost_device *t30_get_tegra_vi01_device(void);
+
 #endif