|
12 | 12 | #include "iris_vpu_buffer.h" |
13 | 13 | #include "iris_vpu_common.h" |
14 | 14 |
|
| 15 | +#include "iris_platform_sc7280.h" |
| 16 | + |
15 | 17 | #define BITRATE_MIN 32000 |
16 | 18 | #define BITRATE_MAX 160000000 |
17 | 19 | #define BITRATE_PEAK_DEFAULT (BITRATE_DEFAULT * 2) |
@@ -362,3 +364,54 @@ const struct iris_platform_data sm8250_data = { |
362 | 364 | .enc_ip_int_buf_tbl = sm8250_enc_ip_int_buf_tbl, |
363 | 365 | .enc_ip_int_buf_tbl_size = ARRAY_SIZE(sm8250_enc_ip_int_buf_tbl), |
364 | 366 | }; |
| 367 | + |
| 368 | +const struct iris_platform_data sc7280_data = { |
| 369 | + .get_instance = iris_hfi_gen1_get_instance, |
| 370 | + .init_hfi_command_ops = &iris_hfi_gen1_command_ops_init, |
| 371 | + .init_hfi_response_ops = iris_hfi_gen1_response_ops_init, |
| 372 | + .get_vpu_buffer_size = iris_vpu_buf_size, |
| 373 | + .vpu_ops = &iris_vpu2_ops, |
| 374 | + .set_preset_registers = iris_set_sm8250_preset_registers, |
| 375 | + .icc_tbl = sm8250_icc_table, |
| 376 | + .icc_tbl_size = ARRAY_SIZE(sm8250_icc_table), |
| 377 | + .bw_tbl_dec = sc7280_bw_table_dec, |
| 378 | + .bw_tbl_dec_size = ARRAY_SIZE(sc7280_bw_table_dec), |
| 379 | + .pmdomain_tbl = sm8250_pmdomain_table, |
| 380 | + .pmdomain_tbl_size = ARRAY_SIZE(sm8250_pmdomain_table), |
| 381 | + .opp_pd_tbl = sc7280_opp_pd_table, |
| 382 | + .opp_pd_tbl_size = ARRAY_SIZE(sc7280_opp_pd_table), |
| 383 | + .clk_tbl = sc7280_clk_table, |
| 384 | + .clk_tbl_size = ARRAY_SIZE(sc7280_clk_table), |
| 385 | + /* Upper bound of DMA address range */ |
| 386 | + .dma_mask = 0xe0000000 - 1, |
| 387 | + .fwname = "qcom/vpu/vpu20_p1.mbn", |
| 388 | + .pas_id = IRIS_PAS_ID, |
| 389 | + .inst_caps = &platform_inst_cap_sm8250, |
| 390 | + .inst_fw_caps_dec = inst_fw_cap_sm8250_dec, |
| 391 | + .inst_fw_caps_dec_size = ARRAY_SIZE(inst_fw_cap_sm8250_dec), |
| 392 | + .inst_fw_caps_enc = inst_fw_cap_sm8250_enc, |
| 393 | + .inst_fw_caps_enc_size = ARRAY_SIZE(inst_fw_cap_sm8250_enc), |
| 394 | + .tz_cp_config_data = &tz_cp_config_sm8250, |
| 395 | + .hw_response_timeout = HW_RESPONSE_TIMEOUT_VALUE, |
| 396 | + .num_vpp_pipe = 1, |
| 397 | + .no_aon = true, |
| 398 | + .max_session_count = 16, |
| 399 | + .max_core_mbpf = 4096 * 2176 / 256 * 2 + 1920 * 1088 / 256, |
| 400 | + /* max spec for SC7280 is 4096x2176@60fps */ |
| 401 | + .max_core_mbps = 4096 * 2176 / 256 * 60, |
| 402 | + .dec_input_config_params_default = |
| 403 | + sm8250_vdec_input_config_param_default, |
| 404 | + .dec_input_config_params_default_size = |
| 405 | + ARRAY_SIZE(sm8250_vdec_input_config_param_default), |
| 406 | + .enc_input_config_params = sm8250_venc_input_config_param, |
| 407 | + .enc_input_config_params_size = |
| 408 | + ARRAY_SIZE(sm8250_venc_input_config_param), |
| 409 | + |
| 410 | + .dec_ip_int_buf_tbl = sm8250_dec_ip_int_buf_tbl, |
| 411 | + .dec_ip_int_buf_tbl_size = ARRAY_SIZE(sm8250_dec_ip_int_buf_tbl), |
| 412 | + .dec_op_int_buf_tbl = sm8250_dec_op_int_buf_tbl, |
| 413 | + .dec_op_int_buf_tbl_size = ARRAY_SIZE(sm8250_dec_op_int_buf_tbl), |
| 414 | + |
| 415 | + .enc_ip_int_buf_tbl = sm8250_enc_ip_int_buf_tbl, |
| 416 | + .enc_ip_int_buf_tbl_size = ARRAY_SIZE(sm8250_enc_ip_int_buf_tbl), |
| 417 | +}; |
0 commit comments