disp: msm: sde: parse MDSS HW from device tree

Get the MDSS HW version from the device tree instead
of reading directly from the hardware register.

Change-Id: Icfb7a80c8f19312001b070a454741421fd67aae5
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
This commit is contained in:
Veera Sundaram Sankaran
2020-02-06 11:24:55 -08:00
committed by Gerrit - the friendly Code Review server
szülő d38d91b9f3
commit 7245366343
4 fájl változott, egészen pontosan 76 új sor hozzáadva és 17 régi sor törölve

Fájl megtekintése

@@ -323,6 +323,23 @@ struct vsync_info {
*/
bool sde_is_custom_client(void);
/**
* sde_kms_get_hw_version - get the hw revision - client is expected to
* enable the power resources before making this call
* @dev: Pointer to drm device
*/
static inline u32 sde_kms_get_hw_version(struct drm_device *dev)
{
struct sde_kms *sde_kms;
if (!ddev_to_msm_kms(dev))
return 0;
sde_kms = to_sde_kms(ddev_to_msm_kms(dev));
return readl_relaxed(sde_kms->mmio + 0x0);
}
/**
* sde_kms_power_resource_is_enabled - whether or not power resource is enabled
* @dev: Pointer to drm device