If same layer is closed twice, atv_layer_cnt may be
set to zero, so vop go to standy. Now win0、win1、hwc
is mapped to atv_layer_cnt bit[0-2]. When open/close
layer, set coresponding atv_layer_cnt bit to one/zero.
The driver supports 32 parameters of each mipi cmds
when initialization the mipi screen.
But the users may send a cmds longer the 32 parameters sometimes,
and it will result in that the array out of range.
DTYPE_GEN_SWRITE_2P:
Generic Short WRITE Packet with 2 parameters(one command
and one parameter). But the users may send the packet more
than 2 parameters.
DTYPE_GEN_SWRITE_1P:
Generic Short WRITE Packet with 1 parameters(one command
without parameter).
DTYPE_GEN_SWRITE_0P:
Generic Short WRITE Packet with 0 parameters(nop packet
without command and parameter).
Take following sequence to avoid picture flash when swiching resolution:
1. Send AV_MUTE GCP packet.
2. Power off hdmi phy.
3. Sleep 2 second to wait TV process no TMDS signal.
4. Configure video and audio registers.
5. Power on HDMI phy.
6. Send CLEAR_MUTE GCP packet.
before release fence, we should make sure extend lcdc config take
effect. if not, maybe GPU would access the buffer which hdmi using,
and cause tearing.
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
1. Remove ehci_port_power() in ehci-rockchip, since commit
c73cee7 the ehci_port_power() function no longer needed,
ehci hub driver taking care of power supply.
2. Fix 64-bit address pointer warnning.
3. Register rk-rhci driver by ehci_init_driver() for reducing
useless code.
4. Fix kernrl crash caused by null pointer dereference ,
When 'echo 0 > ehci_power' usb_remove_hcd() run twice. Set rk
ehci->host_enabled 0 to stop connect_detect thread.
For box, we need to set hdmi switch state when insert/remove,
regardless of whether the device supports audio. So add function
rk_fb_get_display_policy() to get display policy.
If master power domain is disabled,at this time to r/w the
iommu register,it would failed.Master call the attach_deivce
means it must power on itself,so iommu_reset in attach_device
can guarantee the safety
Depend on this, we can remove the vpu/hevc GRF relative code