pm_runtime_get_sync(core->dev);
- ret |= venus_boot(core->dev, &core->dev_fw);
+ ret |= venus_boot(core->dev, &core->dev_fw, core->res->fwname);
ret |= hfi_core_resume(core, true);
if (ret < 0)
goto err_runtime_disable;
- ret = venus_boot(dev, &core->dev_fw);
+ ret = venus_boot(dev, &core->dev_fw, core->res->fwname);
if (ret)
goto err_runtime_disable;
.vmem_size = 0,
.vmem_addr = 0,
.dma_mask = 0xddc00000 - 1,
+ .fwname = "qcom/venus-1.8/venus.mdt",
};
static const struct freq_tbl msm8996_freq_table[] = {
.vmem_size = 0,
.vmem_addr = 0,
.dma_mask = 0xddc00000 - 1,
+ .fwname = "qcom/venus-4.2/venus.mdt",
};
static const struct of_device_id venus_dt_match[] = {
unsigned int vmem_id;
u32 vmem_size;
u32 vmem_addr;
+ const char *fwname;
};
struct venus_format {
#include "firmware.h"
-#define VENUS_FIRMWARE_NAME "venus.mdt"
#define VENUS_PAS_ID 9
#define VENUS_FW_MEM_SIZE SZ_8M
of_reserved_mem_device_release(dev);
}
-int venus_boot(struct device *parent, struct device *fw_dev)
+int venus_boot(struct device *parent, struct device *fw_dev, const char *fwname)
{
const struct firmware *mdt;
phys_addr_t mem_phys;
goto err_unreg_device;
}
- ret = request_firmware(&mdt, VENUS_FIRMWARE_NAME, fw_dev);
+ ret = request_firmware(&mdt, fwname, fw_dev);
if (ret < 0)
goto err_unreg_device;
goto err_unreg_device;
}
- ret = qcom_mdt_load(fw_dev, mdt, VENUS_FIRMWARE_NAME, VENUS_PAS_ID,
- mem_va, mem_phys, mem_size);
+ ret = qcom_mdt_load(fw_dev, mdt, fwname, VENUS_PAS_ID, mem_va, mem_phys,
+ mem_size);
release_firmware(mdt);
struct device;
-int venus_boot(struct device *parent, struct device *fw_dev);
+int venus_boot(struct device *parent, struct device *fw_dev,
+ const char *fwname);
int venus_shutdown(struct device *fw_dev);
#endif