summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorKonrad Dybcio <konrad.dybcio@oss.qualcomm.com>2025-06-26 12:02:30 +0300
committerRob Clark <robin.clark@oss.qualcomm.com>2025-07-05 03:48:39 +0300
commit45a2974157d2d8b6f26911582d64089cab992d8b (patch)
tree6b56e6208e89debb489d70656e10ce46995e6027 /include/linux
parent227d4ce0b09eba29aa69740e43643afb9b41b229 (diff)
downloadlinux-45a2974157d2d8b6f26911582d64089cab992d8b.tar.xz
drm/msm: Use the central UBWC config database
As discussed a lot in the past, the UBWC config must be coherent across a number of IP blocks (currently display and GPU, but it also may/will concern camera/video as the drivers evolve). So far, we've been trying to keep the values reasonable in each of the two drivers separately, but it really make sense to do so centrally, especially given certain fields (e.g. HBB) may need to be gathered dynamically. To reduce room for error, move to fetching the config from a central source, so that the data programmed into the hardware is consistent across all multimedia blocks that request it. Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> Signed-off-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> Patchwork: https://patchwork.freedesktop.org/patch/660963/ Signed-off-by: Rob Clark <robin.clark@oss.qualcomm.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/soc/qcom/ubwc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/soc/qcom/ubwc.h b/include/linux/soc/qcom/ubwc.h
index b92fc402638b..d65df559603d 100644
--- a/include/linux/soc/qcom/ubwc.h
+++ b/include/linux/soc/qcom/ubwc.h
@@ -53,7 +53,7 @@ struct qcom_ubwc_cfg_data {
#define UBWC_4_3 0x40030000
#define UBWC_5_0 0x50000000
-#ifdef CONFIG_QCOM_UBWC_CONFIG
+#if IS_ENABLED(CONFIG_QCOM_UBWC_CONFIG)
const struct qcom_ubwc_cfg_data *qcom_ubwc_config_get_data(void);
#else
static inline const struct qcom_ubwc_cfg_data *qcom_ubwc_config_get_data(void)