]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
video: tegra: host: export txx_vi_info for VI driver
authorBryan Wu <pengw@nvidia.com>
Thu, 28 Feb 2013 02:17:37 +0000 (18:17 -0800)
committerDan Willemsen <dwillemsen@nvidia.com>
Sat, 14 Sep 2013 20:38:51 +0000 (13:38 -0700)
Export these nvhost_device_info for VI driver modulization and let
board file to access these data structs via nvhost.h header file.

Bug 1240806

Change-Id: Ifae11b0cebf56385f2dc2879fd220e1ceb4079f3
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/246263
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>
drivers/video/tegra/host/t114/t114.c
drivers/video/tegra/host/t148/t148.c
drivers/video/tegra/host/t20/t20.c
drivers/video/tegra/host/t30/t30.c
include/linux/nvhost.h

index a4101ca6cd4d93d9c44c5c8da9baefaf5aa7e3c2..425e3097af53125d3987a0701e532313d0067636 100644 (file)
@@ -18,6 +18,7 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+#include <linux/export.h>
 #include <linux/mutex.h>
 #include <linux/kernel.h>
 #include <linux/nvhost_ioctl.h>
@@ -235,6 +236,7 @@ struct nvhost_device_data t11_vi_info = {
        .moduleid       = NVHOST_MODULE_VI,
        .update_clk     = nvhost_host1x_update_clk,
 };
+EXPORT_SYMBOL(t11_vi_info);
 
 static struct platform_device tegra_vi01_device = {
        .name           = "vi",
index 7071ebacc68e4ad314101e98806a77701315f563..7367e2f4447185f601b98c2667fbaa8bd4b401a5 100644 (file)
@@ -18,6 +18,7 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+#include <linux/export.h>
 #include <linux/mutex.h>
 #include <mach/powergate.h>
 #include <linux/nvhost.h>
@@ -233,6 +234,7 @@ struct nvhost_device_data t14_vi_info = {
        .moduleid       = NVHOST_MODULE_VI,
        .update_clk     = nvhost_host1x_update_clk,
 };
+EXPORT_SYMBOL(t14_vi_info);
 
 static struct platform_device tegra_vi01_device = {
        .name           = "vi",
index e5c07a5a41a571e07f4485a02685288de96e9ac2..e2382a9eabbf29343f3e80f0a4a252f4a92b7235 100644 (file)
@@ -18,6 +18,7 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+#include <linux/export.h>
 #include <linux/init.h>
 #include <linux/nvhost_ioctl.h>
 
@@ -205,6 +206,7 @@ struct nvhost_device_data t20_vi_info = {
        NVHOST_DEFAULT_CLOCKGATE_DELAY,
        .moduleid       = NVHOST_MODULE_VI,
 };
+EXPORT_SYMBOL(t20_vi_info);
 
 static struct platform_device tegra_vi01_device = {
        .name           = "vi",
index 7fb3aef6559e56a76c9ca132aec4d672270cc49c..3bd63ee38f178c76fd74477681e2a116df39c426 100644 (file)
@@ -18,6 +18,8 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+
+#include <linux/export.h>
 #include <linux/mutex.h>
 #include <linux/kernel.h>
 #include <linux/nvhost_ioctl.h>
@@ -226,6 +228,7 @@ struct nvhost_device_data t30_vi_info = {
        NVHOST_DEFAULT_CLOCKGATE_DELAY,
        .moduleid       = NVHOST_MODULE_VI,
 };
+EXPORT_SYMBOL(t30_vi_info);
 
 static struct platform_device tegra_vi01_device = {
        .name           = "vi",
index 629c5510b65dc0f5dfbe4e96eeb9077864968ca0..019fbbecf3759056f7b32b966e8fba7bf2c14c0e 100644 (file)
@@ -304,4 +304,10 @@ int nvhost_syncpt_wait_timeout_ext(struct platform_device *dev, u32 id, u32 thre
 
 void nvhost_scale3d_set_throughput_hint(int hint);
 
+/* Hacky way to get access to struct nvhost_device_data for VI device. */
+extern struct nvhost_device_data t20_vi_info;
+extern struct nvhost_device_data t30_vi_info;
+extern struct nvhost_device_data t11_vi_info;
+extern struct nvhost_device_data t14_vi_info;
+
 #endif