note: gc05a2 flip & mirror use the same register;
but write value to the register not valid immediately,
so need record it in variable, to avoid being covered.
Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
Change-Id: Ice9c9fcefdbf9fa56a83f9b049e434cfe1c23bba
The counter result read after disabled may be inaccurate,
because the arbitration has been removed.
Change-Id: Id91069721ef5767d81bb8bced0ae429840711ad4
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
According to IC design, it is not recommended to enable/disable
pclk in counter mode, because the pclk is used to sync counter
result.
Change-Id: Ibb44082ae1091d38a51f0d1f0c1879769109bc86
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
According to the datasheet, CLK_RATIO_2X should be enabled
for interlace modes otherwise the 720x480i60/720x576i60
modes may be mistaken for 360x480p60/360x576p60.
Change-Id: I7efa084b7d3a05bdafd0dc17264784db178d05c6
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Clear output_if of rockchip_crtc_state in rockchip_rgb_encoder_disable()
only if active_changed flag of drm_crtc_state is true,
otherwise the output_if related checks may be affected
in .atomic_enable() of crtc.
Change-Id: Id15873feebd420a77c8949ea6601b9f33c18188c
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
The logs about max clock check may be too frequent, so
replace DRM_DEV_ERROR() with DRM_DEBUG_DRIVER().
Change-Id: Ia5e4ad4a7dc00863e99d9b6cb92f3a812c1171e9
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Some GigaDevice ecc_get_status functions use on-stack buffer for
spi_mem_op causes spi_mem_check_op failing, fix the issue by using
spinand scratchbuf.
Fixes: c40c7a990a ("mtd: spinand: Add support for GigaDevice GD5F1GQ4UExxG")
Change-Id: I061911754ab4a3d69bfa2ebbb17af8f14027e5cc
Signed-off-by: Han Xu <han.xu@nxp.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20231108150701.593912-1-han.xu@nxp.com
(cherry picked from commit 59950610c0c00c7a06d8a75d2ee5d73dba4274cf)
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
when the kernel suspend abort with is_hall_wakeup true,
mh248 resume will use wrong state of is_hall_wakeup
to send powerkey event to wakeup screen.
Signed-off-by: Weixin Zhou <zwx@rock-chips.com>
Change-Id: Ifc8d83f49329631e9088fee9111b295c77e05a8a
The SDI1/2/3 and SDO1/2/3 for SAI1 on RK3576 is iomux functions.
Change-Id: I2292e4c3b5c75044e343d19c3557724591365836
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
in non-HDR mode, short gain and long gian need to be set the same
values.
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: Idaa14c389a20b2518757303538dc19fb8154695d
As described in:
commit 0f3b68b66a ("drm/dsi: Add _NO_ to MIPI_DSI_* flags disabling features")
Many of the DSI flags have names opposite to their actual effects,
e.g. MIPI_DSI_MODE_EOT_PACKET means that EoT packets will actually
be disabled. Fix this by including _NO_ in the flag names, e.g.
MIPI_DSI_MODE_NO_EOT_PACKET.
Change-Id: Ibf5faf52f95a1ab07c3ffb7848ff1be7071c458b
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
Do nothing when stream is invalid, especially for
HDMI-TX-DLP with multi-dais situation.
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Ieb056147875ca2707b85f8d9962a5593e66abb21
Do nothing when stream is invalid, especially for
HDMI-TX-DLP with multi-dais situation.
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I5b7387779c6fc166196fff1ef9ab35907b268021
Support for HDMI-TX Audio Digital Loopback.
e.g.
&hdmi {
audio,digital-loopback;
};
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Id5b4490b8bd96559b49fb8225cf93feac7c3d5c2
Used for measure the time cost between dma guard and stream.
Change-Id: I626f6b892faa31fbf06e7b1100fdf0b0fa3347f7
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
TDM mode use all FIFOs, the max burst is 16 word of DMAC,
so we used the max FIFO to cover DDR dmc windows.
4 FIFOs controller:
TDL:
16 word: WL = ((32 * 4) - 16) / 4 = 28
RDL:
16 word: WL = 16 / 4 = 4
Change-Id: Idd88e0615d7fd4ec8c36c72af1c0b1b2d716b43e
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
If a mux device in DPTX driver, usbdp phy should not trigger
dp hpd. DPTX driver will call phy_set_mode to transfer this
info.
Change-Id: I1d13858a9115a688bd9560eb41a2f86c76e73316
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
The power domain for vo grf may not enable when phy power
on. To access vo grf in other callback function to ensure
the power domain enable before access vo grf.
Change-Id: Iba5f8e6b62670bc01084616506ce146fb22d8e3c
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>