disable clock will call disable power domain.
hdmi and lcdc share the power domain, so they must disable
the power domain when system shutdown.
Signed-off-by: zwl <zwl@rockchips.com>
Video stress test failed, may have something relationship to vop mmu stall operation
skip it as a workaround
Reboot stress test failed, error showed a large number of vop/vop mmu interrupt,mask
vop mmu interrupt to avoid reboot stress test failed in rk312x
Signed-off-by: Simon <xxm@rock-chips.com>
data toggle error without a ChannelHalt status is not a real data
toggle err, it is a transfer error state so just clear the
interrupt bit rather than resubmit this request
Signed-off-by: lyz <lyz@rock-chips.com>
between hcd_reinit() and cil_interrupt handler.
hcd_reinit() should get core_if->lock before modify this
lock, so that can prevent competition between cil_interrupt
handler and hcd_reinit(), hcd_reinit() be scheduled while
cil_interrupt handler holding core_if->lock, hcd_reinit() modify
the lock then previous core_if->lock will never be unlocked.
Signed-off-by: lyz <lyz@rock-chips.com>
changed
When otg stop host mode and before change to device mode hcd_stop
function should do something to double check all usb device is
disconnect because the disconnect interrupt might be lost.
1.kill all active urbs attached to this hcd
2.set hcd->flags to notify usb core to disconnect all usb devices
Signed-off-by: lyz <lyz@rock-chips.com>
move extend display(HDMI) configuration to hareware composer lib
and support dual different display.
Need update: hareware composer lib.
Signed-off-by: xzj <xzj@rockchips.com>
Signed-off-by: zwl <zwl@rockchips.com>
xact/yact means display buffer size, if use xsize/ysize,
maybe out of buffer size range, that would cause iommu crash.
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
1.disable host interrupts when id changed so that no more host
interrupt will happen after otg disconnect
2.hold hcd->lock in hcd_reinit function to protect qtd list
3.recheck USB_STATUS_ID in vbus detect thread make sure it indeed
in device mode
4.fix some null pointer dereference
5.otg disconnect threshold set to 575mv in case of disconnect
interrupt lose
Recover the code that remove in previous coding-style commit.
Without this code, hw could not running proberly.
Signed-off-by: Alpha Lin <alpha.lin@rock-chips.com>
1. Modify box display policy, rk_fb_update_reg() need to check yuv420
format.
2. When power up in uboot logo mode, if rk_fb_switch_screen input screen
type is not equal to current screen type, exit uboot logo mode. For
the case of display interface change happen at the moment of kernel
initialization.
3. Fox box, if RK_FBIOSET_YUV_ADDR input address is zero, we close related
lcdc layer. Because RK_FBIOSET_ENABLE may not be called by application,
especially at low memory enviorment,such as rk3036 256M ram.
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
Android generate Serial number too later than set 1 to
sys/class/android_usb/android0/enable. So here we have to manual
delay some time to enable usb connect in usb controler driver,
otherwise adb read a wrong serial number via usb then CTS test
will fail.
Signed-off-by: lyz <lyz@rock-chips.com>