Add common APIs to set read margin and set intermediate rate.
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I8fb1d16f4ca1a9ec0ba80019197a73e56391c14c
In order to get target read margin and scmi clk earlier,
and it will also be used in later submissions.
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I75bd79dc4963fa0dcc73d7c66a696e1cc0c177b7
In order to modify the logic, check whether the standby
function is supported by (*crtc_standby). And add the
universal function rockchip_drm_crtc_standby().
Replace vop2_standby() by rockchip_drm_crtc_standby() in
dsi2 driver.
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: I974780c441fe0e9a8a81f933b3070a727321b589
1. When iommu pagefault, hardware will stop and wait to deal with it.
in order to respond quickly, such as NVR, reset the hardware directly.
2. The iommu handle should be for the current device, not the queue.
and, the mpp_task_dump_hw_reg function is used to dump hardware register
info, it no relation for task.
3. In the mode of link-mode and multi-core, it cannot accurately get task
via queue->running_task, thereforce, it is not suitable to dump task
register here.
Change-Id: Ifed2cbc484997a07ed65c38c16062abe9b9aff81
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
1. for rk3588, it may hung for when bus error, then, it should
use sip reset.
2. before reset, it make sure that the clock is on.
Change-Id: I2dd1dc5c4cd273eb8678ceaa29b0e966828f50fd
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
rv1126 does not support VOP2, so add config options to
reduce memory usage.
./ksize.sh drivers/gpu/drm/
before ksize: 487941 Bytes
after kszie: 380303 Bytes
save about: 107628 Bytes
In addition, improve the format of space and tab, and remove
extra "depends on DRM_ROCKCHIP".
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: I2b29a543a7e52e4e4b72112980e2c6dc6c6cce92
Add constants and callback functions for the dwmac on RV1106 soc.
As can be seen, the base structure is the same,.In addition, there is
an internal phy inside.
Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: I5889a7dd8bdbbbf763a617c5d1aa525454006e39
This reverts commit 48c78936e0.
The next patch, grf will include venc_grf.
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Iaaf2f1067adbaa21fcfc3d0cfd59cd10390a5daf
Add the reg shift of vop_pipe_bypass. Lcd lower pins(0~7)
and hsync/vsync/den belong to VCCIO6 which controlled
by venc_grf. And lcd higher pins(8~17) belong to VCCIO5
which depend on vo_grf.
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: If7eab4570cbba12f5ff38eafe826112a44ea90c9
Add compatible string for RV1106 gmac, and constrain it to
be compatible with Synopsys dwmac 4.20a.
Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: I3a9ddfa9e217309901dec24e81f571c568f7d7b1
There are now two built-in phys ephy and sphy, so that use the
interface integrated_phy_power() as a public interface.
Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: If964436beeba1359a7ce7c764f85b50a6cf52bd7
Support RK630 ethernet PHY currently, this is a RMII PHY.
Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: I444f9c5abd1dc5fe8067b79ddee93a801d7a28b9
The default used thermal with IPA on rockchip_linux_defconfig.
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Change-Id: I8c928ea6c139db3d34af783bc9aa9d7e8987afc9
Switch to use CMDLINE partition instead of GPT partition.
This patch also disable MDOS partition which apply for FAT.
- CONFIG_MSDOS_PARTITION
- CONFIG_EFI_PARTITION
+ CONFIG_CMDLINE_PARTITION
Change-Id: Ic298b8fbe7f8d393ba722991717ae11f881d394c
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
The sdio requires the cmd and data pins to pull up by soc.
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: Ieef7128a280a9f39b226879f5b16559025dabe3b
If set dclk to the same frequency as before, the set_rate callback
won't be called. Hdmi phy is not configured correctly. So hdmi phy
must be configured in the clk enable callback.
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Change-Id: Ie780a5969b342595fa94c60dd58889b9bf2bb78b
In some condition, only 1 hdmi phy is enabled. The strategy
need judge which hdmi phy pll can be used.
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
Change-Id: Ia36d3f3cf010a0322e4d51a85f980012b5ee2231
For ipc product not use GPT, kernel get the partition from cmdline.
Signed-off-by: Weiwen Chen <cww@rock-chips.com>
Change-Id: I3d4126edb1af89e9eb7d70a975fd1dfc4222262e
In addition, move rgb node from peri_grf to venc_grf.
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: Ib4586cf83e4418ce51381bc0adf989e6f3e742a6
The vogrf register is cleared when system suspend. It need
config the hpd status when system resume.
Change-Id: I50419b8496ba389193238cae08e3710172f6c5be
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Fixes: b31df11baa ("drm/rockchip: dw-dp: force runtime PM suspend on system suspend")
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: Iaf5ceb65584cbe613c0e5c37c9586bfc235259e8