summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/video/tegra/dc/dc_priv.h2
-rw-r--r--drivers/video/tegra/dc/dsi.c12
2 files changed, 10 insertions, 4 deletions
diff --git a/drivers/video/tegra/dc/dc_priv.h b/drivers/video/tegra/dc/dc_priv.h
index c353680ffc96..a1b434c15061 100644
--- a/drivers/video/tegra/dc/dc_priv.h
+++ b/drivers/video/tegra/dc/dc_priv.h
@@ -23,6 +23,8 @@
#include <linux/wait.h>
#include <linux/completion.h>
+#include <mach/dc.h>
+
#include "../host/dev.h"
#include "../host/t20/syncpt_t20.h"
diff --git a/drivers/video/tegra/dc/dsi.c b/drivers/video/tegra/dc/dsi.c
index 04f621be9033..7f199dad55c9 100644
--- a/drivers/video/tegra/dc/dsi.c
+++ b/drivers/video/tegra/dc/dsi.c
@@ -270,17 +270,19 @@ const u32 init_reg[] = {
DSI_PKT_LEN_6_7,
};
-static inline unsigned long tegra_dsi_readl(struct tegra_dc_dsi_data *dsi,
+inline unsigned long tegra_dsi_readl(struct tegra_dc_dsi_data *dsi,
u32 reg)
{
return readl(dsi->base + reg * 4);
}
+EXPORT_SYMBOL(tegra_dsi_readl);
-static inline void tegra_dsi_writel(struct tegra_dc_dsi_data *dsi,u32 val,
+inline void tegra_dsi_writel(struct tegra_dc_dsi_data *dsi,u32 val,
u32 reg)
{
writel(val, dsi->base + reg * 4);
}
+EXPORT_SYMBOL(tegra_dsi_writel);
static int tegra_dsi_syncpt(struct tegra_dc_dsi_data *dsi)
{
@@ -1299,7 +1301,7 @@ static int _tegra_dsi_write_data(struct tegra_dc_dsi_data *dsi,
return err;
}
-static int tegra_dsi_write_data(struct tegra_dc *dc,
+int tegra_dsi_write_data(struct tegra_dc *dc,
struct tegra_dc_dsi_data *dsi,
u8* pdata, u8 data_id, u16 data_len)
{
@@ -1348,6 +1350,7 @@ static int tegra_dsi_write_data(struct tegra_dc *dc,
fail:
return err;
}
+EXPORT_SYMBOL(tegra_dsi_write_data);
static int tegra_dsi_send_panel_cmd(struct tegra_dc *dc,
struct tegra_dc_dsi_data *dsi,
@@ -1492,7 +1495,7 @@ static int tegra_dsi_parse_read_response(struct tegra_dc *dc,
return err;
}
-static int tegra_dsi_read_data(struct tegra_dc *dc,
+int tegra_dsi_read_data(struct tegra_dc *dc,
struct tegra_dc_dsi_data *dsi,
u32 max_ret_payload_size,
u32 panel_reg_addr, u8 *read_data)
@@ -1624,6 +1627,7 @@ fail:
return err;
}
+EXPORT_SYMBOL(tegra_dsi_read_data);
static int tegra_dsi_enter_ulpm(struct tegra_dc_dsi_data *dsi)
{