Merge "disp: msm: add display config support for neo"

This commit is contained in:
qctecmdr
2021-10-29 08:35:13 -07:00
committed by Gerrit - the friendly Code Review server
4 changed files with 34 additions and 0 deletions

11
config/gki_neodisp.conf Normal file
View File

@@ -0,0 +1,11 @@
# SPDX-License-Identifier: GPL-2.0-only
# Copyright (c) 2021, The Linux Foundation. All rights reserved.
export CONFIG_DRM_MSM=y
export CONFIG_DRM_MSM_SDE=y
export CONFIG_SYNC_FILE=y
export CONFIG_DRM_MSM_DSI=y
export CONFIG_DSI_PARSER=y
export CONFIG_QCOM_MDSS_PLL=y
export CONFIG_DRM_MSM_REGISTER_LOGGING=y
export CONFIG_DISPLAY_BUILD=m

14
config/gki_neodispconf.h Normal file
View File

@@ -0,0 +1,14 @@
/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright (c) 2021, The Linux Foundation. All rights reserved.
*/
#define CONFIG_DRM_MSM 1
#define CONFIG_DRM_MSM_SDE 1
#define CONFIG_SYNC_FILE 1
#define CONFIG_DRM_MSM_DSI 1
#define CONFIG_DSI_PARSER 1
#define CONFIG_DRM_MSM_REGISTER_LOGGING 1
#define CONFIG_DRM_SDE_EVTLOG_DEBUG 1
#define CONFIG_QCOM_MDSS_PLL 1
#define CONFIG_GKI_DISPLAY 1

View File

@@ -12,6 +12,11 @@ else
endif endif
endif endif
ifeq ($(CONFIG_ARCH_NEO), y)
include $(DISPLAY_ROOT)/config/gki_neodisp.conf
LINUX_INC += -include $(DISPLAY_ROOT)/config/gki_neodispconf.h
endif
LINUX_INC += -Iinclude/linux \ LINUX_INC += -Iinclude/linux \
-Iinclude/linux/drm -Iinclude/linux/drm

View File

@@ -58,7 +58,9 @@
#include <linux/qcom-iommu-util.h> #include <linux/qcom-iommu-util.h>
#include "soc/qcom/secure_buffer.h" #include "soc/qcom/secure_buffer.h"
#include <linux/qtee_shmbridge.h> #include <linux/qtee_shmbridge.h>
#ifdef CONFIG_DRM_SDE_VM
#include <linux/gunyah/gh_irq_lend.h> #include <linux/gunyah/gh_irq_lend.h>
#endif
#define CREATE_TRACE_POINTS #define CREATE_TRACE_POINTS
#include "sde_trace.h" #include "sde_trace.h"
@@ -4823,6 +4825,7 @@ parse_fail:
return rc; return rc;
} }
#ifdef CONFIG_DRM_SDE_VM
int sde_kms_get_io_resources(struct sde_kms *sde_kms, struct msm_io_res *io_res) int sde_kms_get_io_resources(struct sde_kms *sde_kms, struct msm_io_res *io_res)
{ {
struct platform_device *pdev = to_platform_device(sde_kms->dev->dev); struct platform_device *pdev = to_platform_device(sde_kms->dev->dev);
@@ -4854,6 +4857,7 @@ int sde_kms_get_io_resources(struct sde_kms *sde_kms, struct msm_io_res *io_res)
return rc; return rc;
} }
#endif
static int sde_kms_hw_init(struct msm_kms *kms) static int sde_kms_hw_init(struct msm_kms *kms)
{ {