提交 3c2a6599 编写于 作者: K Kuninori Morimoto 提交者: Florian Tobias Schandinat

fbdev: sh_mipi_dsi: tidyup VMCTR2 parameter expression

VMCTR2 parameter will be supported more in the future.
1 << xx style is easy to understand.
Signed-off-by: NKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: NMagnus Damm <damm@opensource.se>
Signed-off-by: NFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
上级 32ba95c6
...@@ -317,9 +317,9 @@ static int __init sh_mipi_setup(struct sh_mipi *mipi, ...@@ -317,9 +317,9 @@ static int __init sh_mipi_setup(struct sh_mipi *mipi,
* HSA period allowed, no commands in LP * HSA period allowed, no commands in LP
*/ */
if (pdata->flags & SH_MIPI_DSI_HSABM) if (pdata->flags & SH_MIPI_DSI_HSABM)
vmctr2 |= 0x20; vmctr2 |= 1 << 5;
if (pdata->flags & SH_MIPI_DSI_HBPBM) if (pdata->flags & SH_MIPI_DSI_HBPBM)
vmctr2 |= 0x10; vmctr2 |= 1 << 4;
iowrite32(vmctr2, mipi->linkbase + VMCTR2); iowrite32(vmctr2, mipi->linkbase + VMCTR2);
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册