video: driver: Remove ddr_type call
Use default LPDDR5 ubwc config. Change-Id: I658117c7daefd3d5900db790b2092db0f75dd01a
Цей коміт міститься в:

зафіксовано
Gerrit - the friendly Code Review server

джерело
622febc90c
коміт
a92ec61904
@@ -13,10 +13,6 @@
|
||||
#include "msm_vidc_control.h"
|
||||
#include "hfi_property.h"
|
||||
|
||||
#define DDR_TYPE_LPDDR4 0x6
|
||||
#define DDR_TYPE_LPDDR4X 0x7
|
||||
#define DDR_TYPE_LPDDR5 0x8
|
||||
#define DDR_TYPE_LPDDR5X 0x9
|
||||
#define DEFAULT_VIDEO_CONCEAL_COLOR_BLACK 0x8020010
|
||||
#define MAX_LTR_FRAME_COUNT 2
|
||||
#define MAX_BASE_LAYER_PRIORITY_ID 63
|
||||
@@ -1181,8 +1177,6 @@ static struct msm_vidc_platform_data waipio_data = {
|
||||
static int msm_vidc_init_data(struct msm_vidc_core *core)
|
||||
{
|
||||
int rc = 0;
|
||||
struct msm_vidc_ubwc_config_data *ubwc_config;
|
||||
u32 ddr_type;
|
||||
|
||||
if (!core || !core->platform) {
|
||||
d_vpr_e("%s: invalid params\n", __func__);
|
||||
@@ -1190,16 +1184,6 @@ static int msm_vidc_init_data(struct msm_vidc_core *core)
|
||||
}
|
||||
d_vpr_h("%s: initialize waipio data\n", __func__);
|
||||
|
||||
ubwc_config = waipio_data.ubwc_config;
|
||||
ddr_type = of_fdt_get_ddrtype();
|
||||
if (ddr_type == -ENOENT)
|
||||
d_vpr_e("Failed to get ddr type, use LPDDR5\n");
|
||||
|
||||
if (ddr_type == DDR_TYPE_LPDDR4 || ddr_type == DDR_TYPE_LPDDR4X)
|
||||
ubwc_config->highest_bank_bit = 0xf;
|
||||
d_vpr_h("%s: DDR Type 0x%x hbb 0x%x\n", __func__,
|
||||
ddr_type, ubwc_config->highest_bank_bit);
|
||||
|
||||
core->platform->data = waipio_data;
|
||||
|
||||
return rc;
|
||||
|
Посилання в новій задачі
Заблокувати користувача