disp: snapshot of offline rotator

This snapshot includes updates to offline rotator and supporting
files. Snapshot was taken from msm-4.14 as of commit 0f8fb25421ff
("cnss2: Add device version to SOC info structure").

Change-Id: I58674ba880de3d8722ed9119bfc2bee34b444917
Signed-off-by: Samantha Tran <samtran@codeaurora.org>
This commit is contained in:
Samantha Tran
2019-04-22 11:56:06 -07:00
parent eeaef40ed6
commit e2e554bc4d
6 changed files with 255 additions and 50 deletions

View File

@@ -10,6 +10,7 @@
#include "sde_vbif.h"
#include "sde_hw_vbif.h"
#include "sde_trace.h"
#include "sde_rotator_vbif.h"
#define MAX_XIN_CLIENT 16
@@ -286,6 +287,41 @@ exit:
mutex_unlock(&vbif->mutex);
}
void mdp_vbif_lock(struct platform_device *parent_pdev, bool enable)
{
struct drm_device *ddev;
struct sde_kms *sde_kms;
struct sde_hw_vbif *vbif = NULL;
int i;
ddev = platform_get_drvdata(parent_pdev);
if (!ddev || !ddev_to_msm_kms(ddev)) {
SDE_ERROR("invalid drm device\n");
return;
}
sde_kms = to_sde_kms(ddev_to_msm_kms(ddev));
for (i = 0; i < ARRAY_SIZE(sde_kms->hw_vbif); i++) {
if (sde_kms->hw_vbif[i] &&
sde_kms->hw_vbif[i]->idx == VBIF_RT) {
vbif = sde_kms->hw_vbif[i];
break;
}
}
if (!vbif) {
SDE_DEBUG("invalid vbif structure\n");
return;
}
if (enable)
mutex_lock(&vbif->mutex);
else
mutex_unlock(&vbif->mutex);
}
bool sde_vbif_set_xin_halt(struct sde_kms *sde_kms,
struct sde_vbif_set_xin_halt_params *params)
{