mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 12:25:00 -04:00
Merge "msm: cvp: adding new target and read fw name from dtsi"
This commit is contained in:
commit
15a4ecc85f
2 changed files with 17 additions and 4 deletions
|
|
@ -184,6 +184,10 @@ static struct msm_cvp_platform_data sm8350_data = {
|
|||
};
|
||||
|
||||
static const struct of_device_id msm_cvp_dt_match[] = {
|
||||
{
|
||||
.compatible = "qcom,shima-cvp",
|
||||
.data = &sm8350_data,
|
||||
},
|
||||
{
|
||||
.compatible = "qcom,lahaina-cvp",
|
||||
.data = &sm8350_data,
|
||||
|
|
|
|||
|
|
@ -237,6 +237,14 @@ err_qdss_addr_tbl:
|
|||
return rc;
|
||||
}
|
||||
|
||||
static int msm_cvp_load_fw_name(struct msm_cvp_platform_resources *res)
|
||||
{
|
||||
struct platform_device *pdev = res->pdev;
|
||||
|
||||
return of_property_read_string_index(pdev->dev.of_node,
|
||||
"cvp,firmware-name", 0, &res->fw_name);
|
||||
}
|
||||
|
||||
static int msm_cvp_load_subcache_info(struct msm_cvp_platform_resources *res)
|
||||
{
|
||||
int rc = 0, num_subcaches = 0, c;
|
||||
|
|
@ -720,10 +728,6 @@ int cvp_read_platform_resources_from_drv_data(
|
|||
|
||||
res->sku_version = platform_data->sku_version;
|
||||
|
||||
res->fw_name = "evass";
|
||||
|
||||
dprintk(CVP_CORE, "Firmware filename: %s\n", res->fw_name);
|
||||
|
||||
res->auto_pil = find_key_value(platform_data,
|
||||
"qcom,auto-pil");
|
||||
|
||||
|
|
@ -788,6 +792,11 @@ int cvp_read_platform_resources_from_dt(
|
|||
kres = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
|
||||
res->irq = kres ? kres->start : -1;
|
||||
|
||||
rc = msm_cvp_load_fw_name(res);
|
||||
dprintk(CVP_CORE, "EVA fw: %s found.\n", res->fw_name);
|
||||
if (rc)
|
||||
dprintk(CVP_WARN, "Failed to load fw name info: %d\n", rc);
|
||||
|
||||
rc = msm_cvp_load_subcache_info(res);
|
||||
if (rc)
|
||||
dprintk(CVP_WARN, "Failed to load subcache info: %d\n", rc);
|
||||
|
|
|
|||
Loading…
Reference in a new issue