This function is inherit from linux-4.4, only connector
has mode_valid callback at that age, so we should tie
it to rockchip_crtc_funcs and called by connector driver.
Now drm_crtc_helper_funcs has a mode_valid callback,
so we can tie it here and called by drm framework.
This make connector driver simple.
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: Ib15906d8ab54907c20811e3ac9c531f7113c20c3
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
RK3588 saradc will usleep before start, so if start call
from timer will panic. fix it by using delayed_work instead.
Change-Id: I7f98266659f5f2d8968a901bd6423efaa50839b5
Signed-off-by: Simon Xue <xxm@rock-chips.com>
Current the LCPLL/CDR/ROPLL lock timeout (600us) is too short,
change timeout to 100ms refer to the usbdp phy of exynos.
Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: Ia88206f32d0e2ab1288a12f5f64d654bf6d24311
intx_lock should be initialized before use.
Fixes: ee99fe07a7 ("PCIe: rockchip: Add more legacy int support")
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: I39586ae4f8edc1c39d78ce95af29f24bfc46b4d4
In command mode systems, the display notifies the host through a TE
signaling whenever it reaches a specific scanline. This action allows
the host to know when to update the display GRAM without causing a
tearing effect.
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
Change-Id: I24d660e411a5bdf6041bfad9281135ab74d05ecc
- Improve link training code
- Add link retrain logic
- Reject modes that exceed the maximum bandwidth
Fixes: 9548fbb10c ("drm/rockchip: Add support for Synopsys DesignWare Cores DPTX")
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: I135a62587b71a4c237407db6899486ff93124a90
Use "rockchip,trngv1" as compatible, first supported in RK3588.
Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
Change-Id: Ifa9637a64ceae1e7fd5478832b768838e43d460b
Linux app always use the default zpos, and they thought:
Primary plane zpos < overlay plane zpos < cursor plane zpos.
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Change-Id: I5d10be4c4a6463248a80fb2e3f6ff27e8b3cc414
crypto module should use scmi_clk rather than cru.
Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
Change-Id: If20d4ab2ff3906564644a89510fed1b25a8a6b1f
For now, new vicap needs this ioctl to obtain channel info.
Change-Id: Ib19345924aa5492b1d999b60cf9fe59faecb6c8e
Signed-off-by: Shunqian Zheng <zhengsq@rock-chips.com>
If the transfer finished, auto stop to end this transfer.
Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: I23cd39e63b8ce292a63c9530edde2c9b72c289cb
reason:
if device combo, the device are share the same queue,
which hardware run in different time. thus, these can
also use the same kthread.
Change-Id: I92f6ec4d753b223b55923ae3a243144ba65dc47e
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
According to gki commit 17f9730086 ("ANDROID: GKI: Disable CONFIG_ZONE_DMA on arm64").
After 1a8e1cef76 "arm64: use both ZONE_DMA and ZONE_DMA32" ZONE_DMA
gets enabled by default. Disable this config to remove unused zone.
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I555747b4a3aaccb914c7ce2895f08504d2b2dcc2