soc: rockchip: pvtm: Fix npu gpu id for rk3588

Fixes: aec8ff24ff ("soc: rockchip: pvtm: Add support for RK3568 SoCs")
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I482d994981346642958c87bdfe814b575ed9d514
This commit is contained in:
Finley Xiao
2021-11-12 19:28:04 +08:00
committed by Tao Huang
parent 8bc63bf4e5
commit 3a86be0a31

View File

@@ -646,23 +646,8 @@ static const struct rockchip_pvtm_data rk3588_litcore_pvtm = {
},
};
static const struct rockchip_pvtm_info rk3588_gpu_pvtm_infos[] = {
PVTM(3, "gpu", 2, 0, 1, 0x4, 0, 0x4),
};
static const struct rockchip_pvtm_data rk3588_gpu_pvtm = {
.con = 0x4,
.sta = 0x80,
.num_pvtms = ARRAY_SIZE(rk3588_gpu_pvtm_infos),
.infos = rk3588_gpu_pvtm_infos,
.ops = {
.get_value = rv1126_pvtm_get_value,
.set_ring_sel = rv1126_pvtm_set_ring_sel,
},
};
static const struct rockchip_pvtm_info rk3588_npu_pvtm_infos[] = {
PVTM(4, "npu", 2, 0, 1, 0x4, 0, 0x4),
PVTM(3, "npu", 2, 0, 1, 0x4, 0, 0x4),
};
static const struct rockchip_pvtm_data rk3588_npu_pvtm = {
@@ -676,6 +661,21 @@ static const struct rockchip_pvtm_data rk3588_npu_pvtm = {
},
};
static const struct rockchip_pvtm_info rk3588_gpu_pvtm_infos[] = {
PVTM(4, "gpu", 2, 0, 1, 0x4, 0, 0x4),
};
static const struct rockchip_pvtm_data rk3588_gpu_pvtm = {
.con = 0x4,
.sta = 0x80,
.num_pvtms = ARRAY_SIZE(rk3588_gpu_pvtm_infos),
.infos = rk3588_gpu_pvtm_infos,
.ops = {
.get_value = rv1126_pvtm_get_value,
.set_ring_sel = rv1126_pvtm_set_ring_sel,
},
};
static const struct rockchip_pvtm_info rk3588_pmu_pvtm_infos[] = {
PVTM(5, "pmu", 1, 0, 1, 0x4, 0, 0x4),
};