mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
PM / devfreq: rockchip_dmcdbg: add px30 support
Change-Id: I9da8f3229b8a9c44ea1c1237bb36aa4b8762e545 Signed-off-by: Zhihuan He <huan.he@rock-chips.com>
This commit is contained in:
@@ -1077,7 +1077,27 @@ static __maybe_unused int rv1126_dmcdbg_init(struct platform_device *pdev,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static __maybe_unused int px30_dmcdbg_init(struct platform_device *pdev,
|
||||
struct rockchip_dmcdbg *dmcdbg)
|
||||
{
|
||||
u32 version = 0x101;
|
||||
int ret;
|
||||
|
||||
ret = rk_dmcdbg_sip_smc_match_ver(pdev, version);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
ret = proc_dmcdbg_init(pdev);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
proc_dmcinfo_init();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static const struct of_device_id rockchip_dmcdbg_of_match[] = {
|
||||
{ .compatible = "rockchip,px30-dmcdbg", .data = px30_dmcdbg_init },
|
||||
{ .compatible = "rockchip,rv1126-dmcdbg", .data = rv1126_dmcdbg_init },
|
||||
{ },
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user