Skip to content

Commit

Permalink
fbdev: sh_mipi_dsi: fixup setup timing of SYSCONF
Browse files Browse the repository at this point in the history
SYSCONF should be set after PHYCTRL

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
  • Loading branch information
Kuninori Morimoto authored and Florian Tobias Schandinat committed Nov 21, 2011
1 parent c2658b7 commit a2065a3
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions drivers/video/sh_mipi_dsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -245,18 +245,6 @@ static int __init sh_mipi_setup(struct sh_mipi *mipi,

/* setup DSI link */

/*
* Default = ULPS enable |
* Contention detection enabled |
* EoT packet transmission enable |
* CRC check enable |
* ECC check enable
* additionally enable first two lanes
*/
bitmap_fill((unsigned long *)&tmp, pdata->lane);
tmp |= 0x00003700;
iowrite32(tmp, base + SYSCONF);

/*
* T_wakeup = 0x7000
* T_hs-trail = 3
Expand Down Expand Up @@ -287,6 +275,17 @@ static int __init sh_mipi_setup(struct sh_mipi *mipi,
/* Deassert resets, power on */
iowrite32(0x03070001, base + PHYCTRL);

/*
* Default = ULPS enable |
* Contention detection enabled |
* EoT packet transmission enable |
* CRC check enable |
* ECC check enable
*/
bitmap_fill((unsigned long *)&tmp, pdata->lane);
tmp |= 0x00003700;
iowrite32(tmp, base + SYSCONF);

/* setup l-bridge */

/*
Expand Down

0 comments on commit a2065a3

Please sign in to comment.