drivers/net/can/rockchip/rockchip_canfd:24:24: fatal error:
linux/can/led.h: No such file or directory
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: I275af809bc9287ba2b5855164166aebcb348e259
clk_extref_timeout_xxx is noc timeout function,
For debug the bus blocked, so use default status.
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: I01a79f5fe834141cc066934e628f4375505fc707
There is no PWM function in DSM. Rename it as DSM.
Change-Id: I8d37a3b559c017d2f6dd6bdae9e70a77f0ea8038
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
aclk_rkvdec_root_bak only used by av1 decoder, while other formats
use aclk_rkvdec_root.
Change-Id: I106b61ff6125ea220231ea264cee43201afbbeaf
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
aclk_rkvdec_root and aclk_rkvdec_root_bak are automatically switched by
hardware to achieve high-performance.
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: I49e20b86f93331b7c45054d0b42a71b897d391c4
In addition, fix the version check process to switch
for efficiency and readability.
Change-Id: I372e528f61403a72ea574de5aae28174ef3f95fa
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
pld_ptr_range need config fb size to prevent afbc payload out of range
access.
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I93392b065fd13bb3cd7e98c924317019b35a79ea
aclk_ufs_sys shows a significant IO improve by dd testing, nearly 10%, if
we improve it to 250MHz when scaling up in devfreq. And scaling it down to
50MHz when there is no transaction.
Change-Id: I02a07d6c429737fc6bdaf18572eee1b3095d4945
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Different platform register bit offset is different, so use VOP_MODULE_GET() to
get the wb_en and wb_wb_vp_id is more reasonable.
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: Ief2a9b93736589f41e5eb43c686114f4b13ace4a
This is a workaround for RK3528/RK3562/RK3576:
The aclk pre auto gating function may disable the aclk
in some unexpected cases, which detected by hardware
automatically.
For example, if the above function is enabled, the post
scale function will be affected, resulting in abnormal
display.
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: Ia646c77e8010d81d5da390264e61b50ae4898464
For some PHYs, it is necessary to reset the PHY after waking up from
sleep to ensure that it works properly.
Change-Id: I629c12096060c8b5ac1a33dfd5a90a85adddec44
Signed-off-by: David Wu <david.wu@rock-chips.com>
Disable vdd_npu when npu is suspended to save power.
Signed-off-by: Liang Chen <cl@rock-chips.com>
Change-Id: I6459790d55969f2cb5083c39eaa671b2a87d21f9
BL31 will check pd stats when suspend, if vdd_npu is disabled,
pd stats will be wrong and cause system reboot.
Signed-off-by: Liang Chen <cl@rock-chips.com>
Change-Id: I887da586b99ee1ee6b8e5b0c376e2aaf7a26093d
In GKI, the drm_debugfs_remove_files can't be find in the
exported symbols list. Avoid call this function when build
modules for GKI.
Change-Id: If0921670931511f8a34adb5affbc6f5b9245732c
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
The DPTX controller limit the hfp aligned 2 pixels. if it not
aligned with 2 pixel. It may be not display normally.
Change-Id: I3b64182d2fa67285ba8192b588eb06545a9f2244
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
DS35M4GB-IB, DS35Q4GB-IB, DS35Q12C-IB, DS35M12C-IB
Change-Id: I0c6f02b4391f058447d1ddaf4bce33b0e5442bf8
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
rockchip_drm_is_abfc() / rockchip_drm_is_rfbc() is used to determine
if the frame buffer is in afbc or rfbc format. The same code can be
shared between different rockchip vop architectures.
Signed-off-by: Chaoyi Chen <chaoyi.chen@rock-chips.com>
Change-Id: I7c409a09044aa54e0690eed29551a6b3416fb10c
For rk3576, the signoff clock of the hevc_ca is 1G.
Change-Id: Idba9fc08f6e24a26e20901c347fa3ac9f1054c4a
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
tips: If not init, it can be any value, when power on.
Change-Id: I64569e0e24c61f718ecec6b8da0e695a7ed25195
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
The issue occurs when the devfreq cooling device uses the EM power model
and the get_real_power() callback is provided by the driver.
The EM power table is sorted ascending,can't index the table by cooling
device state,so convert cooling state to performance state by
dfc->max_state - dfc->capped_state.
Fixes: 615510fe13 ("thermal: devfreq_cooling: remove old power model and use EM")
Cc: 5.11+ <stable@vger.kernel.org> # 5.11+
Signed-off-by: Ye Zhang <ye.zhang@rock-chips.com>
Reviewed-by: Dhruva Gole <d-gole@ti.com>
Reviewed-by: Lukasz Luba <lukasz.luba@arm.com>
Link: https://lore.kernel.org/all/20240321102100.2401340-1-ye.zhang@rock-chips.com/
Change-Id: Id798d67d913c95b59095bc1d06497fb23d644637