video: driver: select target and vpu variant based on dtsi

- enable conditional compilation based on defconfig
- compile only needed files based target & vpu variant
- enabled stubs to avoid compilation issues, for all
  target variant and vpu types
- add support for qcv(same lunch combo) for different
  PT & VT chipsets.

Change-Id: Ic446349fd1532885d7a2e94895d807c62f1ab6e4
Signed-off-by: Govindaraj Rajagopal <grajagop@codeaurora.org>
This commit is contained in:
Govindaraj Rajagopal
2021-04-12 17:16:53 +05:30
parent 9635a177c9
commit b1fbc46396
7 changed files with 155 additions and 41 deletions

View File

@@ -3,14 +3,23 @@
* Copyright (c) 2020-2021,, The Linux Foundation. All rights reserved.
*/
#ifndef _MSM_VIDC_IRIS2_H_
#define _MSM_VIDC_IRIS2_H_
#include "msm_vidc_core.h"
//#if defined(CONFIG_MSM_VIDC_IRIS2)
#if defined(CONFIG_MSM_VIDC_IRIS2)
int msm_vidc_init_iris2(struct msm_vidc_core *core);
//#else
//static inline int msm_vidc_init_iris2(struct msm_vidc_core *core)
//{
// return -EINVAL;
//}
//#endif
int msm_vidc_deinit_iris2(struct msm_vidc_core *core);
#else
static inline int msm_vidc_init_iris2(struct msm_vidc_core *core)
{
return -EINVAL;
}
static inline int msm_vidc_deinit_iris2(struct msm_vidc_core *core)
{
return -EINVAL;
}
#endif
#endif // _MSM_VIDC_IRIS2_H_