File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -74,4 +74,29 @@ static inline bool qcom_ubwc_get_ubwc_mode(const struct qcom_ubwc_cfg_data *cfg)
7474 return ret ;
7575}
7676
77+ /*
78+ * This is the best guess, based on the MDSS driver, which worked so far.
79+ */
80+ static inline bool qcom_ubwc_min_acc_length_64b (const struct qcom_ubwc_cfg_data * cfg )
81+ {
82+ return cfg -> ubwc_enc_version == UBWC_1_0 &&
83+ (cfg -> ubwc_dec_version == UBWC_2_0 ||
84+ cfg -> ubwc_dec_version == UBWC_3_0 );
85+ }
86+
87+ static inline bool qcom_ubwc_macrotile_mode (const struct qcom_ubwc_cfg_data * cfg )
88+ {
89+ return cfg -> macrotile_mode ;
90+ }
91+
92+ static inline bool qcom_ubwc_bank_spread (const struct qcom_ubwc_cfg_data * cfg )
93+ {
94+ return cfg -> ubwc_bank_spread ;
95+ }
96+
97+ static inline u32 qcom_ubwc_swizzle (const struct qcom_ubwc_cfg_data * cfg )
98+ {
99+ return cfg -> ubwc_swizzle ;
100+ }
101+
77102#endif /* __QCOM_UBWC_H__ */
You can’t perform that action at this time.
0 commit comments