Skip to content

Commit d6e766e

Browse files
committed
Merge branch '20260125-iris-ubwc-v4-1-1ff30644ac81@oss.qualcomm.com' into drivers-for-7.1
Merge the new helpers in UBWC driver through a topic branch, to allow them to be shared with display and video branches as well.
2 parents 07b9712 + b2571ef commit d6e766e

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

include/linux/soc/qcom/ubwc.h

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff 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__ */

0 commit comments

Comments
 (0)