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
It's better to force link into L2 before we power off devices,
especially if link is in L1. L2 routine is fully defined as:
1) host brings all downstream components back to D0 and L0 before
PCIe stack set D2hot to all devices.
2) send PME_Turn_Off to downstream components and wait for PME_To_Ack
3) check if we are ready to enter L23
4) check if link is already in L2
5) release all kinds of resources including power, #PERST, etc.
6) reset controller when resume
7) brings all downstream components to L0s and L1 after resume
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: I27d7e41079d5e15b4a93d66aa8d6b9286e182ecd
This driver aimed at starting decompression as soon as
possible.
Change-Id: Ie29f43935f0642ae8c9c605d3ebc40292d4d1781
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
The current runtime suspend/resume do nothing when the
current_dr_role is not set. It may fail to do core init
in some scenes.
Test on RK3588 EVB2 or NVR Demo which have Type-A OTG
port, without this patch, the USB ADB enumeration failed
occasionally. When this error happens, we can find that
the register GUSB2PHYCFG(0) isn't initialized correctly.
It's because that during dwc3 probe, if the drd_work which
called from dwc3_drd_init() is scheduled behind the runtime
suspend process, the current_dr_role will be uninitialized,
this cause the runtime resume process doing nothing and put
the dwc3 phy in uninitialized status.
This patch add dwc3_core_init and dwc3_core_exit operation
for runtime suspend/resume when the current_dr_role is not
initialized.
Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: I294bcf2ad68136e9eb24a9e4a1ad389e73c974d2
The RV1106 SoC have one channel TS-ADC(CPU).
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: Ib8485cd438feb5aab0e359ab1517ea263a6a978e
HASH_ALGO_SHA224 was misspelled as HASH_ALGO_SHA256.
In hMAC-224 algorithm, key digest errors occur when the key
length exceeds the blocksize length.
Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
Change-Id: I38c20028b390f32fa7326e4b4e4adeb43902f2e0
This adds mailbox and pmu_mailbox nodes for RV1106 SoCs.
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
Change-Id: I2c1f6c9f64f0ec04d981c1491495611bc2cff09a