video: dsi: tegra: Export dsi functions
Animesh Kishore [Fri, 5 Aug 2011 12:51:03 +0000 (17:51 +0530)]
Export following functions:
- panel read
- panel write
- register write
- register read

Bug 830296

Original-Change-Id: Ie0854e0b8eb213ac2c7fd54f8883ec28e523e1a3
Reviewed-on: http://git-master/r/45529
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Tested-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com>

Rebase-Id: R69d9bed3b6c66384316a849bd646726cd321b1b2

drivers/video/tegra/dc/dc_priv.h
drivers/video/tegra/dc/dsi.c

index c353680..a1b434c 100644 (file)
@@ -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"
 
index 04f621b..7f199da 100644 (file)
@@ -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)
 {