disp: add changes to generate display dlkm in android

Add Android make files and Kbuild files to support dlkm
for display driver. Also resolve header and config issues
to allow successful compilation of display driver.

Change-Id: I04d6233864ea54c0a808b295fbdccb83058f1fd2
Signed-off-by: Samantha Tran <samtran@codeaurora.org>
Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
Signed-off-by: Prabhanjan Kandula <pkandula@codeaurora.org>
Šī revīzija ir iekļauta:
Samantha Tran
2020-04-08 10:56:58 -07:00
revīziju iesūtīja Prabhanjan Kandula
vecāks 8bb1e0a34d
revīzija 13bb35435c
14 mainīti faili ar 335 papildinājumiem un 207 dzēšanām

Parādīt failu

@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright (c) 2015-2020, The Linux Foundation. All rights reserved.
* Copyright (c) 2015-2021, The Linux Foundation. All rights reserved.
*/
#ifndef __SDE_ROTATOR_BASE_H__
@@ -310,7 +310,14 @@ int sde_rotator_base_init(struct sde_rot_data_type **pmdata,
void sde_rotator_base_destroy(struct sde_rot_data_type *data);
#ifdef CONFIG_MSM_SDE_ROTATOR
struct sde_rot_data_type *sde_rot_get_mdata(void);
#else
static inline struct sde_rot_data_type *sde_rot_get_mdata(void)
{
return NULL;
}
#endif
struct reg_bus_client *sde_reg_bus_vote_client_create(char *client_name);

Parādīt failu

@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (c) 2015-2020, The Linux Foundation. All rights reserved.
* Copyright (c) 2015-2021, The Linux Foundation. All rights reserved.
*/
#define pr_fmt(fmt) "%s: " fmt, __func__
@@ -619,6 +619,7 @@ static void sde_rot_evtlog_debug_work(struct work_struct *work)
sde_rot_dbg_evtlog.work_rot_dbgbus);
}
#if defined(CONFIG_MSM_SDE_ROTATOR_EVTLOG_DEBUG) && defined(CONFIG_DEBUG_FS)
/*
* sde_rot_evtlog_tout_handler - log dump timeout handler
* @queue: boolean indicate putting log dump into queue
@@ -716,6 +717,7 @@ void sde_rot_evtlog(const char *name, int line, int flag, ...)
spin_unlock_irqrestore(&sde_rot_xlock, flags);
}
#endif
/*
* sde_rotator_stat_show - Show statistics on read to this debugfs file

Parādīt failu

@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright (c) 2015-2019, The Linux Foundation. All rights reserved.
* Copyright (c) 2015-2021, The Linux Foundation. All rights reserved.
*/
#ifndef SDE_ROTATOR_SMMU_H
@@ -25,7 +25,14 @@ static inline int sde_smmu_dma_data_direction(int dir)
return dir;
}
#ifdef CONFIG_MSM_SDE_ROTATOR
int sde_smmu_ctrl(int enable);
#else
static inline int sde_smmu_ctrl(int enable)
{
return 0;
}
#endif
struct dma_buf_attachment *sde_smmu_dma_buf_attach(
struct dma_buf *dma_buf, struct device *dev, int domain);