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>
* 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>
.moduleid = NVHOST_MODULE_VI,
.update_clk = nvhost_host1x_update_clk,
};
+EXPORT_SYMBOL(t11_vi_info);
static struct platform_device tegra_vi01_device = {
.name = "vi",
* 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>
.moduleid = NVHOST_MODULE_VI,
.update_clk = nvhost_host1x_update_clk,
};
+EXPORT_SYMBOL(t14_vi_info);
static struct platform_device tegra_vi01_device = {
.name = "vi",
* 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>
NVHOST_DEFAULT_CLOCKGATE_DELAY,
.moduleid = NVHOST_MODULE_VI,
};
+EXPORT_SYMBOL(t20_vi_info);
static struct platform_device tegra_vi01_device = {
.name = "vi",
* 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>
NVHOST_DEFAULT_CLOCKGATE_DELAY,
.moduleid = NVHOST_MODULE_VI,
};
+EXPORT_SYMBOL(t30_vi_info);
static struct platform_device tegra_vi01_device = {
.name = "vi",
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