Merge "video: driver: add power domain and opp table support for video"
This commit is contained in:

zatwierdzone przez
Gerrit - the friendly Code Review server

commit
54c8d7570d
@@ -48,6 +48,10 @@ struct bw_table {
|
||||
u32 max_kbps;
|
||||
};
|
||||
|
||||
struct pd_table {
|
||||
const char *name;
|
||||
};
|
||||
|
||||
struct regulator_table {
|
||||
const char *name;
|
||||
bool hw_trigger;
|
||||
@@ -195,6 +199,10 @@ struct msm_vidc_platform_data {
|
||||
unsigned int bw_tbl_size;
|
||||
const struct regulator_table *regulator_tbl;
|
||||
unsigned int regulator_tbl_size;
|
||||
const struct pd_table *pd_tbl;
|
||||
unsigned int pd_tbl_size;
|
||||
const char **opp_tbl;
|
||||
unsigned int opp_tbl_size;
|
||||
const struct clk_table *clk_tbl;
|
||||
unsigned int clk_tbl_size;
|
||||
const struct clk_rst_table *clk_rst_tbl;
|
||||
@@ -241,11 +249,6 @@ static inline bool is_mmrm_supported(struct msm_vidc_core *core)
|
||||
return !!core->platform->data.supports_mmrm;
|
||||
}
|
||||
|
||||
static inline bool is_regulator_supported(struct msm_vidc_core *core)
|
||||
{
|
||||
return !!core->platform->data.regulator_tbl_size;
|
||||
}
|
||||
|
||||
int msm_vidc_init_platform(struct platform_device *pdev);
|
||||
int msm_vidc_deinit_platform(struct platform_device *pdev);
|
||||
|
||||
|
@@ -214,6 +214,15 @@ static int msm_vidc_init_ops(struct msm_vidc_core *core)
|
||||
core->media_device_ops = &msm_v4l2_media_ops;
|
||||
core->v4l2_m2m_ops = &msm_v4l2_m2m_ops;
|
||||
core->mem_ops = get_mem_ops();
|
||||
if (!core->mem_ops) {
|
||||
d_vpr_e("%s: invalid memory ops\n", __func__);
|
||||
return -EINVAL;
|
||||
}
|
||||
core->res_ops = get_resources_ops();
|
||||
if (!core->res_ops) {
|
||||
d_vpr_e("%s: invalid resource ops\n", __func__);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user