projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d557a9c
)
OMAPDSS: DSI: fix tlpx_half reg field length
author
Tomi Valkeinen
<tomi.valkeinen@ti.com>
Mon, 24 Sep 2012 06:34:52 +0000
(09:34 +0300)
committer
Tomi Valkeinen
<tomi.valkeinen@ti.com>
Wed, 26 Sep 2012 09:57:51 +0000
(12:57 +0300)
tlpx_half bit field in DSI_DSIPHY_CFG1 is [20,16], not [22,16] as
accessed in the code currently. Fix this.
The bug should not have caused any problems on OMAP3/4, as the bits
21,22 are unused. They are used on OMAP5, though.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/omap2/dss/dsi.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/video/omap2/dss/dsi.c
b/drivers/video/omap2/dss/dsi.c
index 4d748139315dc20efd8081e54f9451a78004eac2..abe335abca533881d776664a22d6b9b6f903619b 100644
(file)
--- a/
drivers/video/omap2/dss/dsi.c
+++ b/
drivers/video/omap2/dss/dsi.c
@@
-2289,7
+2289,7
@@
static void dsi_cio_timings(struct platform_device *dsidev)
dsi_write_reg(dsidev, DSI_DSIPHY_CFG0, r);
r = dsi_read_reg(dsidev, DSI_DSIPHY_CFG1);
- r = FLD_MOD(r, tlpx_half, 2
2
, 16);
+ r = FLD_MOD(r, tlpx_half, 2
0
, 16);
r = FLD_MOD(r, tclk_trail, 15, 8);
r = FLD_MOD(r, tclk_zero, 7, 0);
@@
-4107,7
+4107,7
@@
static void dsi_proto_timings(struct omap_dss_device *dssdev)
ths_exit = FLD_GET(r, 7, 0);
r = dsi_read_reg(dsidev, DSI_DSIPHY_CFG1);
- tlpx = FLD_GET(r, 2
2
, 16) * 2;
+ tlpx = FLD_GET(r, 2
0
, 16) * 2;
tclk_trail = FLD_GET(r, 15, 8);
tclk_zero = FLD_GET(r, 7, 0);