Commit Graph

1268641 Commits

Author SHA1 Message Date
Jianwei Fan
24569fc13f media: i2c: ov16880: add camera driver
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: Ibe581cb1f371005138bc2b798b51609a072fdb01
2024-03-18 20:06:09 +08:00
Tao Huang
6523a8c7f3 arm64: dts: rockchip: Fix Makefile sorting for rk3576-iotest-v10
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ibfb107aa828ec51fd6f2be62b14ca2f6385966f0
2024-03-18 20:04:43 +08:00
Binyuan Lan
97d6a1d0cf arm64: dts: rockchip: rk3576-tablet: add dp_sound
Signed-off-by: Binyuan Lan <lby@rock-chips.com>
Change-Id: I1a61786f9e1f353eb98b96f932bb6ab07d96aec8
2024-03-18 20:00:40 +08:00
Liang Chen
4941995dbd clk: rockchip: rk3576: mark clk_ref_mphy_26m as critical
The power consumption of mphy will be abnormal when clk_ref_mphy_26m
is disabled and PD_USB is power off/on.

Signed-off-by: Liang Chen <cl@rock-chips.com>
Change-Id: Icd67187494a22656a25454352ffcc06cc4321577
2024-03-18 20:00:08 +08:00
Damon Ding
1568e5614d drm/rockchip: vop2: not to register crtc for inactive video port
Make sure that the vp to be registered has at least
one connector, otherwise it will be as an inactive vp.

Fixes: 6092eb96b6 ("drm/rockchip: vop2: add possible_vp_mask to calculate the exact possible_crtcs")
Change-Id: Ibc078d9f50e47877e4296c2e570721a6f69c9058
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2024-03-18 19:59:31 +08:00
Sandy Huang
0ce65b9ff3 drm/rockchip: vop2: fix hdmi yuv420 display error for rk3576
At HDMI 4kYUV420 or 4K60 split output mode, pixel clk is 600M, dclk from
hdmi phy is 297M.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I619b94647b7dcb651b34f084e346f10bcc35efd3
2024-03-18 19:59:31 +08:00
Sandy Huang
398895b615 drm/rockchip: vop2: get the correctly vp id when close all pd
The win attached vp maybe unused, and the unused vp will not
register crtc, so we need to lool up all win under the pd and check
if the win attached vp has register crtc.
If all the win attached vp is unused, we set the first win(undter
the pd) attach to the first crtc to make sure the pd can be closed normally.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: Id7dfedae2d3b6e7a139ca2eebaefea250e986d12
2024-03-18 19:59:31 +08:00
Luo Wei
7df2bd15e3 arm64: dts: rockchip: rk3576-vehicle-evb: init dts files
Change-Id: I3fa36362f761ef9a2de9ff22a3a111a6200d6aad
Signed-off-by: Luo Wei <lw@rock-chips.com>
Signed-off-by: Zheng zhiqi <looper.zheng@rock-chips.com>
Signed-off-by: Cai Wenzhong <wenzhong.cai@rock-chips.com>
Signed-off-by: Xu Xuehui <xxh@rock-chips.com>
2024-03-18 15:56:45 +08:00
Andy Yan
b34ddbc6c6 drm/rockchip: vop: Improve registers dump
Add vop register address base.
Add callback for active register dump.

Change-Id: I78b39f160c799aa72da22f17564696c92a256962
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
2024-03-18 14:22:46 +08:00
Andy Yan
6b460d196d drm/rockchip: vop: print dest->x1/y1 for display offset
The dsp_stx/dsp_sty on vop is dest->x1/y1 + blank timing,
this is different from vop2.

Change-Id: If2f97e85aa65ee94dcf8889d5703d92750e36061
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
2024-03-18 14:22:46 +08:00
Andy Yan
7f4926daaf drm/rockchip: vop: Fix blend_mode check
DRM_MODE_BLEND_PREMULTI is defined as zero.

Change-Id: I6bcb1777a9f9df454b6709f1f741c2a2aa9c63e3
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
2024-03-18 14:22:46 +08:00
Weixin Zhou
ae9e12cb18 arm64: dts: rockchip: rk3576-eink: move rk806 node to eink dtsi
Signed-off-by: Weixin Zhou <zwx@rock-chips.com>
Change-Id: I75a29f323c1f48c6d0b9f0e6121e59e4c78aa330
2024-03-18 14:18:57 +08:00
Wang Panzhenzhuan
e74f2de328 arm64: dts: rockchip: rk3576 evb1 add nvp6324 ahd2csi board
Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
Change-Id: I133a0b7ebeed1ee832468c6fe03183b7ba63cfaf
2024-03-18 14:18:36 +08:00
XiaoDong Huang
9b7a30b33d arm64: dts: rockchip: rk3576-eink: enable rockchip_suspend node
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
Change-Id: I9f277c0e4b8db73f241c0be7708ba449b862bbb7
2024-03-18 14:16:56 +08:00
Lin Jianhua
881a04cde8 arm64: dts: rockchip: rk3576-industry: enable boot logo
Change-Id: I721fbe80ed4cf083aaaf0c1344127d494f6d417e
Signed-off-by: Lin Jianhua <linjh@rock-chips.com>
2024-03-18 14:16:05 +08:00
Weixin Zhou
bb44752e4c arm64: dts: rockchip: rk3576-test1-v10-eink: only include evb rk806
Signed-off-by: Weixin Zhou <zwx@rock-chips.com>
Change-Id: Ibc6b97eefdfcaf316fd713d7999e5f4a234ee218
2024-03-18 14:11:09 +08:00
Finley Xiao
446711ce94 soc: rockchip: power-domain: Make pd vpu keep on when startup for rk3576
Because the ebc is under pd vpu, and it may be enabled in uboot.

Change-Id: Iee8afa8f802a5f02c7c50f2223479349614371ff
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2024-03-18 12:03:19 +08:00
Mingwei Yan
7614b638e9 media: rockchip: vpss: optimize module set
1: add module_get
2: module can't be changed dynamically

Signed-off-by: Mingwei Yan <mingwei.yan@rock-chips.com>
Change-Id: I4b7c6c5a8b3b600908a796224ab5fceaab6c995b
2024-03-18 11:30:52 +08:00
Binyuan Lan
4f9157021a arm64: dts: rockchip: rk3576-tablet: update rk806 config
Signed-off-by: Binyuan Lan <lby@rock-chips.com>
Change-Id: Ia83caef6c9d67801c706d8031a0cb0d96dee6f96
2024-03-18 11:16:53 +08:00
Jakub Raczynski
4a6827b309 stmmac: Clear variable when destroying workqueue
Currently when suspending driver and stopping workqueue it is checked whether
workqueue is not NULL and if so, it is destroyed.
Function destroy_workqueue() does drain queue and does clear variable, but
it does not set workqueue variable to NULL. This can cause kernel/module
panic if code attempts to clear workqueue that was not initialized.

This scenario is possible when resuming suspended driver in stmmac_resume(),
because there is no handling for failed stmmac_hw_setup(),
which can fail and return if DMA engine has failed to initialize,
and workqueue is initialized after DMA engine.
Should DMA engine fail to initialize, resume will proceed normally,
but interface won't work and TX queue will eventually timeout,
causing 'Reset adapter' error.
This then does destroy workqueue during reset process.
And since workqueue is initialized after DMA engine and can be skipped,
it will cause kernel/module panic.

To secure against this possible crash, set workqueue variable to NULL when
destroying workqueue.

Log/backtrace from crash goes as follows:
[88.031977]------------[ cut here ]------------
[88.031985]NETDEV WATCHDOG: eth0 (sxgmac): transmit queue 1 timed out
[88.032017]WARNING: CPU: 0 PID: 0 at net/sched/sch_generic.c:477 dev_watchdog+0x390/0x398
           <Skipping backtrace for watchdog timeout>
[88.032251]---[ end trace e70de432e4d5c2c0 ]---
[88.032282]sxgmac 16d88000.ethernet eth0: Reset adapter.
[88.036359]------------[ cut here ]------------
[88.036519]Call trace:
[88.036523] flush_workqueue+0x3e4/0x430
[88.036528] drain_workqueue+0xc4/0x160
[88.036533] destroy_workqueue+0x40/0x270
[88.036537] stmmac_fpe_stop_wq+0x4c/0x70
[88.036541] stmmac_release+0x278/0x280
[88.036546] __dev_close_many+0xcc/0x158
[88.036551] dev_close_many+0xbc/0x190
[88.036555] dev_close.part.0+0x70/0xc0
[88.036560] dev_close+0x24/0x30
[88.036564] stmmac_service_task+0x110/0x140
[88.036569] process_one_work+0x1d8/0x4a0
[88.036573] worker_thread+0x54/0x408
[88.036578] kthread+0x164/0x170
[88.036583] ret_from_fork+0x10/0x20
[88.036588]---[ end trace e70de432e4d5c2c1 ]---
[88.036597]Unable to handle kernel NULL pointer dereference at virtual address 0000000000000004

Fixes: 5a5586112b ("net: stmmac: support FPE link partner hand-shaking procedure")
Change-Id: Id0284c08a103ec9d539a0665374f71ca0ae06fab
Signed-off-by: Jakub Raczynski <j.raczynski@samsung.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: David Wu <david.wu@rock-chips.com>
2024-03-16 18:26:25 +08:00
Liang Chen
f15de56eee cpufreq: rockchip: fix find opp for panic dump
Signed-off-by: Liang Chen <cl@rock-chips.com>
Change-Id: I1c2b4d398a30cc959594d9eb7f0df6534ea5a26f
2024-03-16 18:26:25 +08:00
Finley Xiao
5299842032 arm64: dts: rockchip: rk3576: Change suspend freq to 408MHz for cpub
Change-Id: I3ee338692ec7a1d09c3b6d1c31d6830aa7e5be08
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2024-03-16 16:26:37 +08:00
Damon Ding
0772c64096 drm/rockchip: remove the dependency of CONFIG_ROCKCHIP_VOP for CONFIG_ROCKCHIP_ANALOGIX_DP
The CONFIG_ROCKCHIP_ANALOGIX_DP may be enabled for VOP or VOP2,
so make its dependency consistent with the configs of other
interfaces.

Fixes: b382406a2c ("drm/rockchip: Make VOP driver optional")
Change-Id: I272926898bf520d5e023e0bbb873f680362b68ee
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2024-03-15 18:14:15 +08:00
Jianwei Fan
863b879bf9 media: i2c: rk628: remove mutex lock in g_frame_interval
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: I0efe96ae6fccfac7d49044f3253e07f94dd71956
2024-03-15 15:04:37 +08:00
Tao Huang
fc124f851e mfd: rkx110_x120: ROCKCHIP_SERDES_DRM_PANEL depends on MFD_RKX110_X120
ERROR: modpost: "rkx120_dsi_tx_cmd_seq_xfer" [drivers/mfd/rkx110_x120/rkx110_x120_panel.ko] undefined!

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I427e0ff85376f38e7877db4ccd01e811e41b14a6
2024-03-15 14:54:32 +08:00
Shawn Lin
ad6596720d scsi: ufs: rockchip: Fix compile error of module
Fix the error:
ERROR: modpost: "ufshcd_send_uic_cmd" [drivers/ufs/host/ufs-rockchip.ko] undefined!

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: Ifda88359f03c3aa70564c093dc734f9a1aff4ae7
2024-03-15 14:06:53 +08:00
Weixin Zhou
3ec876a7d5 arm64: dts: rockchip: rk3576-ebook-v10: adjust ebc configs
Signed-off-by: Weixin Zhou <zwx@rock-chips.com>
Change-Id: Idfd05922c3ea1c8b32d9d596bd2dbef9ac0f83eb
2024-03-14 19:53:26 +08:00
Shawn Lin
08d7544548 scsi: ufs: rockchip: Fix ufs_rockchip_remove
Modular test showed a bug in ufs_rockchip_remove which looks like:
[   23.132276][  T844] ufshcd-rockchip 2a2d0000.ufs: Unbalanced pm_runtime_enable!
[   23.133411][  T217] ueventd: restorecon_recursive: /sys/devices/platform/2a2d0000.ufs
[   23.141741][   T80] platform 2a2d0000.ufs: uic cmd 0x16 with arg3 0x0 completion timeout
[   23.141749][   T10] platform 2a2d0000.ufs: uic cmd 0x14 with arg3 0x0 completion timeout
[   23.141772][   T10] platform 2a2d0000.ufs: dme-reset: error code -110
[   23.141775][   T10] platform 2a2d0000.ufs: DME_RESET failed
[   23.141779][   T10] platform 2a2d0000.ufs: link startup failed -110
[   23.141782][   T10] platform 2a2d0000.ufs: UFS Host state=0
[   23.141785][   T10] platform 2a2d0000.ufs: outstanding reqs=0x0 tasks=0x0
[   23.141789][   T10] platform 2a2d0000.ufs: saved_err=0x0, saved_uic_err=0x0
[   23.141800][   T10] platform 2a2d0000.ufs: Device power mode=1, UIC link state=0
[   23.141801][   T80] Unable to handle kernel paging request at virtual address ffffffc00f170034
[   23.141804][   T80] Mem abort info:
[   23.147077][   T10] platform 2a2d0000.ufs: PM in progress=0, sys. suspended=0
[   23.147829][   T80]   ESR = 0x0000000096000007
[   23.148134][   T10] platform 2a2d0000.ufs: Auto BKOPS=0, Host self-block=0
[   23.148752][   T80]   EC = 0x25: DABT (current EL), IL = 32 bits

This can be triggered by:
while true
do
  echo "2a2d0000.ufs" > /sys/bus/platform/drivers/ufshcd-rockchip/unbind;
  sleep 2;
  echo "2a2d0000.ufs" > /sys/bus/platform/drivers/ufshcd-rockchip/bind;
  sleep 2;
done

Also we leave reference clk ungate if ufs is removed. Fix them all together.

Change-Id: I785a7c196ddacf2fb51eba441bcdb288441f9c30
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
2024-03-14 19:42:25 +08:00
William Wu
a6a4762e0c usb: typec: tcpci_husb311: Refactor irq wakeup
Currently, the husb311 driver enable irq wakeup by default,
it can wakeup system if the vbus or the CC state changes.
However, if the Type-C port data role is DFP and the vbus
is power on, after enter deep sleep, the vbus maybe power
off for low power management, this cause system resume
immediately by husb311 irq.

Actually, the husb311 vbus irq wakeup is no need if the vbus
state changes for DFP mode. This patch only enable irq wakeup
if the vbus is power off, it can support husb311 irq wakeup
system if the Type-C connect with Type-C charger or Type-C DFP.
And disable husb311 irq if the vbus is power on, it can avoid
the tcpm_state_machine_work run before the husb311_pm_resume
during system resume.

Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: I62d35b10b6b2375125b32101426ea141f709ed91
2024-03-14 19:41:50 +08:00
Ding Wei
ec8394fb33 video: rockchip: mpp: rk3576: Add compatible check when hack run
dec->fix is used in rk3568 and rk3576, while CONFIG_CPU_RK3568 and
CONFIG_CPU_RK3576 are all defined, it will hack error.
Thus, the compatible need matching, then hack.

Change-Id: Icd1368c9f414422c0403d425ba732f20579b550d
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
2024-03-14 19:41:35 +08:00
Guochun Huang
deee50bc92 arm64: dts: rockchip: rk3576-tablet: bind dclk_vp1 to vpll
Change-Id: I052decdc2ebe83d388997cdb8c13a3e3996d41e3
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
2024-03-14 16:45:10 +08:00
Frank Wang
4075caf8b5 usb: typec: tcpm: husb311: fix resume reset condition
Since the BMCIO_OSC_EN bit is enabled automatically when the interrupt
occur whether the power is off or on, replace to TCPC_FILTER reg that
amended by software in husb311_init.

Fixes: f414167ae0 ("usb: typec: husb311: pm process support")

Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
Change-Id: I5bd0ffa395aae1e007705a791ff03a77ec85034a
2024-03-14 15:53:56 +08:00
Sandy Huang
29eeb19604 drm/rockchip: vop2: fix iommu pagefault when commit close to fs
At vop2_wait_for_irq_handler() we need to synchronize frame start irq,
This is to avoid the ongoing commit very close to fs, and might be racing with a
requested vblank interrupt, which would increment the software vblank counter
before the changes being committed actually happen.

besides, from rk3576 vop can support independent irq for each vp, we
confirm vop2->merge_irq state at vop2_bind, and simplification other
function logic.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: If93d8de7840590645c53bd3720eaca2f818a3cbe
2024-03-14 15:29:44 +08:00
Sandy Huang
0b1e7915da drm/rockchip: vop2: add support yuv444 rfbc format for rk3576
Include yuv444 8bit rfbc and yuv444 10bit rfbc format.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I10ce3f6b0f3e654155ea61690bf1d988b10ff655
2024-03-14 15:28:02 +08:00
Sandy Huang
003a780b6f drm/rockchip: vop2: remove NV20 and NV30 depend on CONFIG_NO_GKI
NV20 and NV30 is supported by drm core, so no need to depend on
CONFIG_NO_GKI.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I74dbd8e69367dd1d705624e07e6a6ea2bb9a21f8
2024-03-14 15:28:02 +08:00
Jonas Karlman
3ba70aecc4 UPSTREAM: drm/fourcc: Add NV20 and NV30 YUV formats
DRM_FORMAT_NV20 and DRM_FORMAT_NV30 formats is the 2x1 and non-subsampled
variant of NV15, a 10-bit 2-plane YUV format that has no padding between
components. Instead, luminance and chrominance samples are grouped into 4s
so that each group is packed into an integer number of bytes:

YYYY = UVUV = 4 * 10 bits = 40 bits = 5 bytes

The '20' and '30' suffix refers to the optimum effective bits per pixel
which is achieved when the total number of luminance samples is a multiple
of 4.

V2: Added NV30 format

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Sandy Huang <hjc@rock-chips.com>
Reviewed-by: Christopher Obbard <chris.obbard@collabora.com>
Tested-by: Christopher Obbard <chris.obbard@collabora.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20231023173718.188102-2-jonas@kwiboo.se

Bug: 300024866
(cherry picked from commit 728c15b4b5f3369cbde73d5e0f14701ab370f985)
Change-Id: Ia8fbb5b785c6fc2b4d188bbcef62e232c2ba8ce8
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2024-03-14 15:28:02 +08:00
Sandy Huang
c4aa722883 Revert "drm: drm_fourcc: add NV20 and NV30 format"
This reverts commit 9fad8c5fa8.

Change-Id: I3f197cff020a62da7b4f52d84bd0458ef9664ddf
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2024-03-14 15:28:02 +08:00
Tao Huang
c510543f6c cpufreq: dt-platdev: Add rk3576 project into blacklist
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: If9310efdde60bbc54e65acfa3e4b23d1e3e25ba8
2024-03-14 14:07:31 +08:00
Alex Zhao
877b786363 arm64: dts: rockchip: add sdio node for rk3576 boards
Change-Id: I5009993be91644fb51df816ee7ca371d0194ba54
Signed-off-by: Alex Zhao <zzc@rock-chips.com>
2024-03-13 17:47:57 +08:00
Shunhua Lan
cd5a5d0352 ASoC: rockchip: i2s: add i2s wait time init
Signed-off-by: Shunhua Lan <lsh@rock-chips.com>
Change-Id: I9d376ee2d6a3c353e1557006d988da7522599a2c
2024-03-13 17:35:01 +08:00
Shunhua Lan
4839aa8e7a ASoC: rockchip: i2s-tdm: add i2s wait time init
Signed-off-by: Shunhua Lan <lsh@rock-chips.com>
Change-Id: I6c63349aec6d8f69a2b9981dd79f62dca64f27df
2024-03-13 17:35:01 +08:00
William Wu
f679523421 USB: quirks: Add USB_QUIRK_RESET for Alcor Micro Flash Drive
This patch adds USB_QUIRK_RESET for Alcor Micro
Flash Drive (idVendor=058f, idProduct=6387) to
fix read/write issue after system resume from
deep sleep.

Change-Id: I35e0d511a80255a18eb842412ff9905c039df9bf
Signed-off-by: William Wu <william.wu@rock-chips.com>
2024-03-13 14:33:51 +08:00
Zhen Chen
eadb666be2 MALI: bifrost: quick_reset: Operate quick_reset_lock with spin_lock_irqsave/spin_unlock_irqrestore
To avoid potential deadlock.

Signed-off-by: Zhen Chen <chenzhen@rock-chips.com>
Change-Id: I5a9844f7702fbc063f1b090219f0e86f9431170d
2024-03-13 10:19:08 +08:00
Cai YiWei
cc191263a7 media: rockchip: isp: fix isp39
1.fix lsc error of first frame
2.fix scl update hold when isp working
3.fix resolution config for unite mode
4.resume to restore dhaz iir data

Change-Id: I070b0dbef0eef404d040dedf4555cc7fe335de6f
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2024-03-12 20:23:17 +08:00
Wang Panzhenzhuan
01c843bf96 media: i2c: s5k3l8xx: set mirror & flip for rk3576 tablet
Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
Change-Id: I0a57c1b7fc1ee4784991ec47e644a636d5930b80
2024-03-12 20:22:04 +08:00
Cai YiWei
d72990c233 media: rockchip: isp: fix waiting for isp end
Change-Id: I1efae3f1a14db9cc5e92d1f2019c119d46b85d4a
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2024-03-12 20:21:03 +08:00
Finley Xiao
2a2e40904c net: rfkill: rfkill-wlan: Fix compilation error when enable early suspend
net/rfkill/rfkill-wlan.c:697:22: error: redefinition of 'wlan_early_suspend' as different kind of symbol

Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: Id439523b64fa9fc99b5208c0c2a811e157fd5a9c
2024-03-12 19:48:51 +08:00
Finley Xiao
a213618173 input: sensors: accel: mc3230: Fix compilation error when enable early suspend
drivers/input/sensors/accel/mc3230.c:150:29: error: unused variable 'mc3230_early_suspend' [-Werror,-Wunused-variable]

Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I01c26adcd5750343f938918113cb2bab70319555
2024-03-12 19:31:17 +08:00
Hongjin Li
23277d7fd2 video: rockchip: mpp: rkvdec2: Set ip func to def val
Vdpu383 doesn't reset the register when it is enabled.
In order to avoid exceptions, it is necessary to
configure the initial value when it is enabled.

In addition, ip_en involves cru mode, which is related
to the IP work frequency. It is necessary to ensure
that it is configured correctly.

Signed-off-by: Hongjin Li <vic.hong@rock-chips.com>
Change-Id: I7047faababe1747547d18cb51e1e3b527e2c8d35
2024-03-12 18:40:09 +08:00
Tao Huang
05887d05c8 media: rockchip: ispp: Fix depends on CPU config
Before:
	default y if CPU_XXXX
After:
	depends on CPU_XXX
	default y

When a CPU_XXXX config is not selected, the config will be
automatically deselected.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I95bbc481b6747d82637167b0f2b057732eb7112e
2024-03-12 18:26:09 +08:00