171e00fc0SDmitry Baryshkov /* SPDX-License-Identifier: GPL-2.0-only */ 271e00fc0SDmitry Baryshkov /* 371e00fc0SDmitry Baryshkov * Copyright (c) 2018, The Linux Foundation 471e00fc0SDmitry Baryshkov */ 571e00fc0SDmitry Baryshkov 671e00fc0SDmitry Baryshkov #ifndef __MSM_MDSS_H__ 771e00fc0SDmitry Baryshkov #define __MSM_MDSS_H__ 871e00fc0SDmitry Baryshkov 971e00fc0SDmitry Baryshkov struct msm_mdss_data { 1071e00fc0SDmitry Baryshkov u32 ubwc_enc_version; 1171e00fc0SDmitry Baryshkov /* can be read from register 0x58 */ 1271e00fc0SDmitry Baryshkov u32 ubwc_dec_version; 1371e00fc0SDmitry Baryshkov u32 ubwc_swizzle; 1471e00fc0SDmitry Baryshkov u32 ubwc_static; 1571e00fc0SDmitry Baryshkov u32 highest_bank_bit; 1671e00fc0SDmitry Baryshkov u32 macrotile_mode; 17*aba75693SDmitry Baryshkov u32 reg_bus_bw; 1871e00fc0SDmitry Baryshkov }; 1971e00fc0SDmitry Baryshkov 2071e00fc0SDmitry Baryshkov #define UBWC_1_0 0x10000000 2171e00fc0SDmitry Baryshkov #define UBWC_2_0 0x20000000 2271e00fc0SDmitry Baryshkov #define UBWC_3_0 0x30000000 2371e00fc0SDmitry Baryshkov #define UBWC_4_0 0x40000000 2471e00fc0SDmitry Baryshkov #define UBWC_4_3 0x40030000 2571e00fc0SDmitry Baryshkov 2671e00fc0SDmitry Baryshkov const struct msm_mdss_data *msm_mdss_get_mdss_data(struct device *dev); 2771e00fc0SDmitry Baryshkov 2871e00fc0SDmitry Baryshkov #endif /* __MSM_MDSS_H__ */ 29