video: dsi: tegra: Add fields to store chip info
Animesh Kishore [Wed, 10 Aug 2011 12:04:48 +0000 (17:04 +0530)]
Add fields for chip id and revision.

Bug 837129

Original-Change-Id: I2ed5496f86967b06c40cd8e07e8be572952fc172
Reviewed-on: http://git-master/r/46348
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Re205f5a2640d5320785ca94fde583efbafbcf24b

arch/arm/mach-tegra/include/mach/dc.h
drivers/video/tegra/dc/dsi.c

index 2482100..843db39 100644 (file)
@@ -127,6 +127,8 @@ struct tegra_dsi_out {
        u8              panel_reset;                    /* required */
        u8              virtual_channel;                /* required */
        u8              dsi_instance;
+       u8              chip_id;
+       u8              chip_rev;
 
        bool            panel_has_frame_buffer; /* required*/
 
index 5749a1d..68dd07b 100644 (file)
@@ -1917,9 +1917,11 @@ static int tegra_dc_dsi_cp_info(struct tegra_dc_dsi_data *dsi,
        if (!dsi->info.lp_cmd_mode_freq_khz)
                dsi->info.lp_cmd_mode_freq_khz = DEFAULT_LP_CMD_MODE_CLK_KHZ;
 
+       if (!dsi->info.chip_id || !dsi->info.chip_rev)
+               printk(KERN_WARNING "DSI: Failed to get chip info\n");
+
        /* host mode is for testing only*/
        dsi->driven_mode = TEGRA_DSI_DRIVEN_BY_DC;
-
        return 0;
 
 err_free: