diff --git a/msm/Kbuild b/msm/Kbuild index 2c227ae640..f9395fecdb 100644 --- a/msm/Kbuild +++ b/msm/Kbuild @@ -93,7 +93,10 @@ endif ######### CONFIG_DRM_MSM ######## obj-m += msm_drm.o -msm_drm-$(CONFIG_HDCP_QSEECOM) := ../hdcp/msm_hdcp.o +msm_drm-$(CONFIG_HDCP_QSEECOM) := ../hdcp/msm_hdcp.o \ + dp/dp_hdcp2p2.o \ + sde_hdcp_1x.o \ + sde_hdcp_2x.o msm_drm-$(CONFIG_MSM_SDE_ROTATOR) += ../rotator/sde_rotator_dev.o \ ../rotator/sde_rotator_dev.o \ @@ -143,9 +146,6 @@ msm_drm-$(CONFIG_DRM_MSM_DP) += dp/dp_altmode.o \ dp/dp_lphw_hpd.o \ dp/dp_display.o \ dp/dp_drm.o \ - dp/dp_hdcp2p2.o \ - sde_hdcp_1x.o \ - sde_hdcp_2x.o \ dp/dp_pll.o \ dp/dp_pll_5nm.o \ dp/dp_pll_4nm.o diff --git a/msm/sde_hdcp.h b/msm/sde_hdcp.h index 8064b64e4b..ea8d4f9aab 100644 --- a/msm/sde_hdcp.h +++ b/msm/sde_hdcp.h @@ -1,6 +1,7 @@ /* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (c) 2012, 2014-2020, The Linux Foundation. All rights reserved. + * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. */ #ifndef __SDE_HDCP_H__ @@ -14,7 +15,9 @@ #include #include #include +#if IS_ENABLED(CONFIG_HDCP_QSEECOM) #include +#endif #include "sde_kms.h" #define MAX_STREAM_COUNT 2 @@ -111,10 +114,40 @@ static inline const char *sde_hdcp_version(enum sde_hdcp_version hdcp_version) } } +#if IS_ENABLED(CONFIG_HDCP_QSEECOM) void *sde_hdcp_1x_init(struct sde_hdcp_init_data *init_data); void sde_hdcp_1x_deinit(void *input); struct sde_hdcp_ops *sde_hdcp_1x_get(void *input); void *sde_dp_hdcp2p2_init(struct sde_hdcp_init_data *init_data); void sde_dp_hdcp2p2_deinit(void *input); struct sde_hdcp_ops *sde_dp_hdcp2p2_get(void *input); +#else +void *sde_hdcp_1x_init(struct sde_hdcp_init_data *init_data) +{ + return NULL; +} + +void sde_hdcp_1x_deinit(void *input) +{ +} + +struct sde_hdcp_ops *sde_hdcp_1x_get(void *input) +{ + return NULL; +} + +void *sde_dp_hdcp2p2_init(struct sde_hdcp_init_data *init_data) +{ + return NULL; +} + +void sde_dp_hdcp2p2_deinit(void *input) +{ +} + +struct sde_hdcp_ops *sde_dp_hdcp2p2_get(void *input) +{ + return NULL; +} +#endif #endif /* __SDE_HDCP_H__ */