1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  * Copyright (c) 2018, The Linux Foundation
4  */
5 
6 #ifndef __MSM_MDSS_H__
7 #define __MSM_MDSS_H__
8 
9 struct msm_mdss_data {
10 	u32 ubwc_enc_version;
11 	/* can be read from register 0x58 */
12 	u32 ubwc_dec_version;
13 	u32 ubwc_swizzle;
14 	u32 ubwc_static;
15 	u32 highest_bank_bit;
16 	u32 macrotile_mode;
17 	u32 reg_bus_bw;
18 };
19 
20 #define UBWC_1_0 0x10000000
21 #define UBWC_2_0 0x20000000
22 #define UBWC_3_0 0x30000000
23 #define UBWC_4_0 0x40000000
24 #define UBWC_4_3 0x40030000
25 
26 const struct msm_mdss_data *msm_mdss_get_mdss_data(struct device *dev);
27 
28 #endif /* __MSM_MDSS_H__ */
29