Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 251043
b: refs/heads/master
c: d1f5857
h: refs/heads/master
i:
  251041: 4f1b7ab
  251039: e008dfe
v: v3
  • Loading branch information
Tomi Valkeinen committed May 11, 2011
1 parent e53c937 commit 2b192b1
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 22d6d676261a5e204a7078df21459747750c92fb
refs/heads/master: d1f5857e4bc9b2620fb3e84b1dbaa0ac11b831b4
15 changes: 15 additions & 0 deletions trunk/drivers/video/omap2/dss/dsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,8 @@ static struct
void __iomem *base;
int irq;

void (*dsi_mux_pads)(bool enable);

struct dsi_clock_info current_cinfo;

bool vdds_dsi_enabled;
Expand Down Expand Up @@ -2035,6 +2037,9 @@ static int dsi_cio_init(struct omap_dss_device *dssdev)

DSSDBGF();

if (dsi.dsi_mux_pads)
dsi.dsi_mux_pads(true);

dsi_enable_scp_clk();

/* A dummy read using the SCP interface to any DSIPHY register is
Expand Down Expand Up @@ -2122,13 +2127,17 @@ static int dsi_cio_init(struct omap_dss_device *dssdev)
dsi_cio_disable_lane_override();
err_scp_clk_dom:
dsi_disable_scp_clk();
if (dsi.dsi_mux_pads)
dsi.dsi_mux_pads(false);
return r;
}

static void dsi_cio_uninit(void)
{
dsi_cio_power(DSI_COMPLEXIO_POWER_OFF);
dsi_disable_scp_clk();
if (dsi.dsi_mux_pads)
dsi.dsi_mux_pads(false);
}

static int _dsi_wait_reset(void)
Expand Down Expand Up @@ -3993,10 +4002,16 @@ static void dsi_calc_clock_param_ranges(void)

static int dsi_init(struct platform_device *pdev)
{
struct omap_display_platform_data *dss_plat_data;
struct omap_dss_board_info *board_info;
u32 rev;
int r, i;
struct resource *dsi_mem;

dss_plat_data = pdev->dev.platform_data;
board_info = dss_plat_data->board_data;
dsi.dsi_mux_pads = board_info->dsi_mux_pads;

spin_lock_init(&dsi.irq_lock);
spin_lock_init(&dsi.errors_lock);
dsi.errors = 0;
Expand Down
1 change: 1 addition & 0 deletions trunk/include/video/omapdss.h
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ struct omap_dss_board_info {
int num_devices;
struct omap_dss_device **devices;
struct omap_dss_device *default_device;
void (*dsi_mux_pads)(bool enable);
};

#if defined(CONFIG_OMAP2_DSS_MODULE) || defined(CONFIG_OMAP2_DSS)
Expand Down

0 comments on commit 2b192b1

Please sign in to comment.