Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clk: qcom: dispcc-sc7280: Add dispcc resets

Like many other platforms the sc7280 display clock controller provides
a couple of resets for the display subsystem. In particular the
MDSS_CORE_BCR is useful to reset the display subsystem to a known state
during boot, so add these.

Signed-off-by: Bjorn Andersson <bjorn.andersson@oss.qualcomm.com>
Reviewed-by: Taniya Das <taniya.das@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20250811-sc7280-mdss-reset-v1-2-83ceff1d48de@oss.qualcomm.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>

authored by

Bjorn Andersson and committed by
Bjorn Andersson
5a5f478e ccdba33f

+8
+8
drivers/clk/qcom/dispcc-sc7280.c
··· 17 17 #include "clk-regmap-divider.h" 18 18 #include "common.h" 19 19 #include "gdsc.h" 20 + #include "reset.h" 20 21 21 22 enum { 22 23 P_BI_TCXO, ··· 848 847 [DISP_CC_MDSS_CORE_GDSC] = &disp_cc_mdss_core_gdsc, 849 848 }; 850 849 850 + static const struct qcom_reset_map disp_cc_sc7280_resets[] = { 851 + [DISP_CC_MDSS_CORE_BCR] = { 0x1000 }, 852 + [DISP_CC_MDSS_RSCC_BCR] = { 0x2000 }, 853 + }; 854 + 851 855 static const struct regmap_config disp_cc_sc7280_regmap_config = { 852 856 .reg_bits = 32, 853 857 .reg_stride = 4, ··· 867 861 .num_clks = ARRAY_SIZE(disp_cc_sc7280_clocks), 868 862 .gdscs = disp_cc_sc7280_gdscs, 869 863 .num_gdscs = ARRAY_SIZE(disp_cc_sc7280_gdscs), 864 + .resets = disp_cc_sc7280_resets, 865 + .num_resets = ARRAY_SIZE(disp_cc_sc7280_resets), 870 866 }; 871 867 872 868 static const struct of_device_id disp_cc_sc7280_match_table[] = {