summaryrefslogtreecommitdiff
path: root/drivers/video/tegra
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/tegra')
-rw-r--r--drivers/video/tegra/dc/Makefile1
-rw-r--r--drivers/video/tegra/dc/dc.c2
-rw-r--r--drivers/video/tegra/dc/dc_priv.h10
-rw-r--r--drivers/video/tegra/dc/dsi.c2
-rw-r--r--drivers/video/tegra/dc/ext/Makefile1
5 files changed, 10 insertions, 6 deletions
diff --git a/drivers/video/tegra/dc/Makefile b/drivers/video/tegra/dc/Makefile
index 8a826412f90c..13f8989f02fd 100644
--- a/drivers/video/tegra/dc/Makefile
+++ b/drivers/video/tegra/dc/Makefile
@@ -1,4 +1,5 @@
GCOV_PROFILE := y
+EXTRA_CFLAGS += -Idrivers/video/tegra/host
obj-y += bandwidth.o
obj-y += dc.o
obj-y += rgb.o
diff --git a/drivers/video/tegra/dc/dc.c b/drivers/video/tegra/dc/dc.c
index 7c5cacc75358..db4efc95aab1 100644
--- a/drivers/video/tegra/dc/dc.c
+++ b/drivers/video/tegra/dc/dc.c
@@ -51,6 +51,8 @@
#include "dc_reg.h"
#include "dc_config.h"
#include "dc_priv.h"
+#include "host1x/host1x.h"
+#include "host1x/host1x_syncpt.h"
#include "nvsd.h"
#define TEGRA_CRC_LATCHED_DELAY 34
diff --git a/drivers/video/tegra/dc/dc_priv.h b/drivers/video/tegra/dc/dc_priv.h
index 351998683008..a2e77ebf3385 100644
--- a/drivers/video/tegra/dc/dc_priv.h
+++ b/drivers/video/tegra/dc/dc_priv.h
@@ -27,9 +27,7 @@
#include <mach/dc.h>
-#include "../host/dev.h"
#include "../host/nvhost_acm.h"
-#include "../host/host1x/host1x_syncpt.h"
#include <mach/tegra_dc_ext.h>
#include <mach/clk.h>
@@ -152,12 +150,12 @@ struct tegra_dc {
static inline void tegra_dc_io_start(struct tegra_dc *dc)
{
- nvhost_module_busy(nvhost_get_host(dc->ndev)->dev);
+ nvhost_module_busy(to_nvhost_device(dc->ndev->dev.parent));
}
static inline void tegra_dc_io_end(struct tegra_dc *dc)
{
- nvhost_module_idle(nvhost_get_host(dc->ndev)->dev);
+ nvhost_module_idle(to_nvhost_device(dc->ndev->dev.parent));
}
static inline unsigned long tegra_dc_readl(struct tegra_dc *dc,
@@ -165,7 +163,7 @@ static inline unsigned long tegra_dc_readl(struct tegra_dc *dc,
{
unsigned long ret;
- BUG_ON(!nvhost_module_powered(nvhost_get_host(dc->ndev)->dev));
+ BUG_ON(!nvhost_module_powered(to_nvhost_device(dc->ndev->dev.parent)));
if (!tegra_is_clk_enabled(dc->clk))
WARN(1, "DC is clock-gated.\n");
@@ -177,7 +175,7 @@ static inline unsigned long tegra_dc_readl(struct tegra_dc *dc,
static inline void tegra_dc_writel(struct tegra_dc *dc, unsigned long val,
unsigned long reg)
{
- BUG_ON(!nvhost_module_powered(nvhost_get_host(dc->ndev)->dev));
+ BUG_ON(!nvhost_module_powered(to_nvhost_device(dc->ndev->dev.parent)));
if (!tegra_is_clk_enabled(dc->clk))
WARN(1, "DC is clock-gated.\n");
diff --git a/drivers/video/tegra/dc/dsi.c b/drivers/video/tegra/dc/dsi.c
index 0ea3947176fe..26301abe4222 100644
--- a/drivers/video/tegra/dc/dsi.c
+++ b/drivers/video/tegra/dc/dsi.c
@@ -36,6 +36,8 @@
#include "dc_reg.h"
#include "dc_priv.h"
+#include "host1x/host1x.h"
+#include "host1x/host1x_syncpt.h"
#include "dsi_regs.h"
#include "dsi.h"
diff --git a/drivers/video/tegra/dc/ext/Makefile b/drivers/video/tegra/dc/ext/Makefile
index 343217ccc4a8..16e4cdf43ebb 100644
--- a/drivers/video/tegra/dc/ext/Makefile
+++ b/drivers/video/tegra/dc/ext/Makefile
@@ -1,4 +1,5 @@
GCOV_PROFILE := y
+EXTRA_CFLAGS += -Idrivers/video/tegra/host
obj-y += dev.o
obj-y += util.o
obj-y += cursor.o