fbdev: sh_mipi_dsi: add extra phyctrl for sh_mipi_dsi_info
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Wed, 21 Mar 2012 01:34:10 +0000 (18:34 -0700)
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
Wed, 21 Mar 2012 07:24:01 +0000 (07:24 +0000)
commit8f9c60f2e29717155227f225b557d3f1fda442bd
tree293b53e20f8092f55d76a25877b6c99c7adf3334
parentf363afc168e772a6034ea97b7b213a1b47b8f376
fbdev: sh_mipi_dsi: add extra phyctrl for sh_mipi_dsi_info

sh_mipi uses some clocks, but the method of setup depends on CPU.

Current SuperH (like sh73a0) can control all of these clocks
by CPG (Clock Pulse Generator).
It means we can control it by clock framework only.
But on sh7372, it needs CPG settings AND sh_mipi PHYCTRL::PLLDS,
and only sh7372 has PHYCTRL::PLLDS.

But on current sh_mipi driver, PHYCTRL::PLLDS of sh7372 was
overwrote since the callback timing of clock setting was changed
by c2658b70f06108361aa5024798f9c1bf47c73374
(fbdev: sh_mipi_dsi: fixup setup timing of sh_mipi_setup()).
To solve this issue, this patch adds extra .phyctrl.

This patch adds detail explanation for unclear mipi settings
and fixup wrong PHYCTRL::PLLDS value for ap4evb (0xb -> 0x6).

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
arch/arm/mach-shmobile/board-ap4evb.c
drivers/video/sh_mipi_dsi.c
include/video/sh_mipi_dsi.h