else {
/* Create BIOS parser */
struct bp_init_data bp_init_data;
- struct firmware_info fw_info = { { 0 } };
bp_init_data.ctx = dc_ctx;
bp_init_data.bios = init_params->asic_id.atombios_base_address;
}
dc_ctx->created_bios = true;
-
- if (dc_ctx->dc_bios->funcs->get_firmware_info(
- dc_ctx->dc_bios, &fw_info) == BP_RESULT_OK) {
- dc->ctx->ref_clock_inKhz = fw_info.pll_info.crystal_frequency;
- } else
- ASSERT_CRITICAL(false);
}
/* Create I2C AUX */
#include "opp.h"
#include "timing_generator.h"
#include "transform.h"
+#include "core_types.h"
#include "set_mode_types.h"
#include "virtual/virtual_stream_encoder.h"
enum dce_version dc_version,
struct hw_asic_id asic_id)
{
+ struct resource_pool *res_pool = NULL;
switch (dc_version) {
case DCE_VERSION_8_0:
- return dce80_create_resource_pool(
+ res_pool = dce80_create_resource_pool(
num_virtual_links, dc);
+ break;
case DCE_VERSION_10_0:
- return dce100_create_resource_pool(
+ res_pool = dce100_create_resource_pool(
num_virtual_links, dc);
+ break;
case DCE_VERSION_11_0:
- return dce110_create_resource_pool(
+ res_pool = dce110_create_resource_pool(
num_virtual_links, dc, asic_id);
+ break;
case DCE_VERSION_11_2:
- return dce112_create_resource_pool(
+ res_pool = dce112_create_resource_pool(
num_virtual_links, dc);
+ break;
default:
break;
}
+ if (res_pool != NULL) {
+ struct firmware_info fw_info = { { 0 } };
+
+ if (dc->ctx->dc_bios->funcs->get_firmware_info(
+ dc->ctx->dc_bios, &fw_info) == BP_RESULT_OK) {
+ res_pool->ref_clock_inKhz = fw_info.pll_info.crystal_frequency;
+ } else
+ ASSERT_CRITICAL(false);
+ }
- return false;
+ return res_pool;
}
void dc_destroy_resource_pool(struct core_dc *dc)
struct input_pixel_processor *ipp = pipe_ctx->ipp;
struct dc_cursor_mi_param param = {
.pixel_clk_khz = dc_stream->timing.pix_clk_khz,
- .ref_clk_khz = core_dc->ctx->ref_clock_inKhz,
+ .ref_clk_khz = res_ctx->pool->ref_clock_inKhz,
.viewport_x_start = pipe_ctx->scl_data.viewport.x,
.viewport_width = pipe_ctx->scl_data.viewport.width,
.h_scale_ratio = pipe_ctx->scl_data.ratios.horz,