Commit 275ad3b3 authored by Dikshita Agarwal's avatar Dikshita Agarwal Committed by Mauro Carvalho Chehab

media: venus: core: Add sc7280 DT compatible and resource data

Adds a sm7280 compatible binding to the venus core.
Co-developed-by: default avatarMansur Alisha Shaik <mansur@codeaurora.org>
Signed-off-by: default avatarMansur Alisha Shaik <mansur@codeaurora.org>
Signed-off-by: default avatarDikshita Agarwal <dikshita@codeaurora.org>
Signed-off-by: default avatarStanimir Varbanov <stanimir.varbanov@linaro.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent afeae6ef
......@@ -734,12 +734,64 @@ static const struct venus_resources sm8250_res = {
.fwname = "qcom/vpu-1.0/venus.mdt",
};
static const struct freq_tbl sc7280_freq_table[] = {
{ 0, 460000000 },
{ 0, 424000000 },
{ 0, 335000000 },
{ 0, 240000000 },
{ 0, 133333333 },
};
static const struct bw_tbl sc7280_bw_table_enc[] = {
{ 1944000, 1896000, 0, 3657000, 0 }, /* 3840x2160@60 */
{ 972000, 968000, 0, 1848000, 0 }, /* 3840x2160@30 */
{ 489600, 618000, 0, 941000, 0 }, /* 1920x1080@60 */
{ 244800, 318000, 0, 480000, 0 }, /* 1920x1080@30 */
};
static const struct bw_tbl sc7280_bw_table_dec[] = {
{ 2073600, 2128000, 0, 3831000, 0 }, /* 4096x2160@60 */
{ 1036800, 1085000, 0, 1937000, 0 }, /* 4096x2160@30 */
{ 489600, 779000, 0, 998000, 0 }, /* 1920x1080@60 */
{ 244800, 400000, 0, 509000, 0 }, /* 1920x1080@30 */
};
static const struct reg_val sm7280_reg_preset[] = {
{ 0xb0088, 0 },
};
static const struct venus_resources sc7280_res = {
.freq_tbl = sc7280_freq_table,
.freq_tbl_size = ARRAY_SIZE(sc7280_freq_table),
.reg_tbl = sm7280_reg_preset,
.reg_tbl_size = ARRAY_SIZE(sm7280_reg_preset),
.bw_tbl_enc = sc7280_bw_table_enc,
.bw_tbl_enc_size = ARRAY_SIZE(sc7280_bw_table_enc),
.bw_tbl_dec = sc7280_bw_table_dec,
.bw_tbl_dec_size = ARRAY_SIZE(sc7280_bw_table_dec),
.clks = {"core", "bus", "iface"},
.clks_num = 3,
.vcodec0_clks = {"vcodec_core", "vcodec_bus"},
.vcodec_clks_num = 2,
.vcodec_pmdomains = { "venus", "vcodec0" },
.vcodec_pmdomains_num = 2,
.opp_pmdomain = (const char *[]) { "cx", NULL },
.vcodec_num = 1,
.hfi_version = HFI_VERSION_6XX,
.vmem_id = VIDC_RESOURCE_NONE,
.vmem_size = 0,
.vmem_addr = 0,
.dma_mask = 0xe0000000 - 1,
.fwname = "qcom/vpu-2.0/venus.mbn",
};
static const struct of_device_id venus_dt_match[] = {
{ .compatible = "qcom,msm8916-venus", .data = &msm8916_res, },
{ .compatible = "qcom,msm8996-venus", .data = &msm8996_res, },
{ .compatible = "qcom,sdm845-venus", .data = &sdm845_res, },
{ .compatible = "qcom,sdm845-venus-v2", .data = &sdm845_res_v2, },
{ .compatible = "qcom,sc7180-venus", .data = &sc7180_res, },
{ .compatible = "qcom,sc7280-venus", .data = &sc7280_res, },
{ .compatible = "qcom,sm8250-venus", .data = &sm8250_res, },
{ }
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment