Skip to content

Commit e5f4f7a

Browse files
authored
Merge pull request #127 from gouravk-qualcomm/purva-bu
Purwa enablement on video overlay
2 parents db80a86 + 2e353c0 commit e5f4f7a

8 files changed

Lines changed: 2181 additions & 1 deletion

File tree

driver/platform/common/inc/msm_vidc_platform.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,8 @@ struct msm_vidc_platform_data {
299299
struct dev_pm_domain_list *opp_pmdomain_tbl;
300300
const struct clk_table *clk_tbl;
301301
unsigned int clk_tbl_size;
302+
const char * const *opp_clk_tbl;
303+
unsigned int opp_clk_tbl_size;
302304
const int *clk_corner_idx_tbl;
303305
const struct clk_rst_table *clk_rst_tbl;
304306
unsigned int clk_rst_tbl_size;

driver/platform/common/src/msm_vidc_platform.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@
7171
#include "msm_vidc_lemans.h"
7272
#include "msm_vidc_monaco.h"
7373
#include "msm_vidc_kodiak.h"
74+
#include "msm_vidc_purwa.h"
7475
#include "msm_vidc_iris3.h"
7576
#include "msm_vidc_iris2.h"
7677
#endif
@@ -201,6 +202,12 @@ static const struct msm_vidc_compat_handle compat_handle[] = {
201202
.init_platform = msm_vidc_init_platform_kodiak,
202203
.init_iris = msm_vidc_init_iris2,
203204
},
205+
{
206+
.compat = "qcom,x1p42100-iris",
207+
.get_platform_data = msm_vidc_get_platform_data_purwa,
208+
.init_platform = msm_vidc_init_platform_purwa,
209+
.init_iris = msm_vidc_init_iris3,
210+
},
204211
#endif
205212
#if defined(CONFIG_MSM_VIDC_LEMANS)
206213
{
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/* SPDX-License-Identifier: GPL-2.0-only */
2+
/*
3+
* Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
4+
*/
5+
6+
#ifndef _MSM_VIDC_PURWA_H_
7+
#define _MSM_VIDC_PURWA_H_
8+
9+
#include "msm_vidc_core.h"
10+
11+
#if defined(CONFIG_MSM_VIDC_QLI)
12+
int msm_vidc_get_platform_data_purwa(struct msm_vidc_core *core);
13+
int msm_vidc_init_platform_purwa(struct msm_vidc_core *core);
14+
#else
15+
int msm_vidc_get_platform_data_purwa(struct msm_vidc_core *core)
16+
{
17+
return -EINVAL;
18+
}
19+
20+
int msm_vidc_init_platform_purwa(struct msm_vidc_core *core)
21+
{
22+
return -EINVAL;
23+
}
24+
#endif
25+
26+
#endif // _MSM_VIDC_PURWA_H_

0 commit comments

Comments
 (0)