|
@@ -3,8 +3,6 @@
|
|
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
|
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
|
*/
|
|
*/
|
|
|
|
|
|
-#include <soc/qcom/of_common.h>
|
|
|
|
-
|
|
|
|
#include "msm_vidc_control.h"
|
|
#include "msm_vidc_control.h"
|
|
#include "msm_vidc_kalama.h"
|
|
#include "msm_vidc_kalama.h"
|
|
#include "msm_vidc_platform.h"
|
|
#include "msm_vidc_platform.h"
|
|
@@ -1762,21 +1760,6 @@ static const struct msm_vidc_platform_data kalama_data = {
|
|
.format_data = &format_data_kalama,
|
|
.format_data = &format_data_kalama,
|
|
};
|
|
};
|
|
|
|
|
|
-int msm_vidc_kalama_check_ddr_type(void)
|
|
|
|
-{
|
|
|
|
- u32 ddr_type;
|
|
|
|
-
|
|
|
|
- ddr_type = of_fdt_get_ddrtype();
|
|
|
|
- if (ddr_type != DDR_TYPE_LPDDR5 &&
|
|
|
|
- ddr_type != DDR_TYPE_LPDDR5X) {
|
|
|
|
- d_vpr_e("%s: wrong ddr type %d\n", __func__, ddr_type);
|
|
|
|
- return -EINVAL;
|
|
|
|
- } else {
|
|
|
|
- d_vpr_h("%s: ddr type %d\n", __func__, ddr_type);
|
|
|
|
- }
|
|
|
|
- return 0;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
static int msm_vidc_init_data(struct msm_vidc_core *core)
|
|
static int msm_vidc_init_data(struct msm_vidc_core *core)
|
|
{
|
|
{
|
|
int rc = 0;
|
|
int rc = 0;
|
|
@@ -1788,9 +1771,6 @@ static int msm_vidc_init_data(struct msm_vidc_core *core)
|
|
d_vpr_h("%s: initialize kalama data\n", __func__);
|
|
d_vpr_h("%s: initialize kalama data\n", __func__);
|
|
|
|
|
|
core->platform->data = kalama_data;
|
|
core->platform->data = kalama_data;
|
|
- rc = msm_vidc_kalama_check_ddr_type();
|
|
|
|
- if (rc)
|
|
|
|
- return rc;
|
|
|
|
|
|
|
|
return rc;
|
|
return rc;
|
|
}
|
|
}
|