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

Configure Feed

Select the types of activity you want to include in your feed.

phy: qualcomm: phy-qcom-qmp-ufs: add definitions for sa8775p

Add QMP PHY config for sa8775p and add support for the new compatible.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Link: https://lore.kernel.org/r/20230411130446.401440-4-brgl@bgdev.pl
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Bartosz Golaszewski and committed by
Vinod Koul
607c101f e5796a9c

+37
+37
drivers/phy/qualcomm/phy-qcom-qmp-ufs.c
··· 853 853 .no_pcs_sw_reset = true, 854 854 }; 855 855 856 + static const struct qmp_phy_cfg sa8775p_ufsphy_cfg = { 857 + .lanes = 2, 858 + 859 + .offsets = &qmp_ufs_offsets, 860 + 861 + .tbls = { 862 + .serdes = sm8350_ufsphy_serdes, 863 + .serdes_num = ARRAY_SIZE(sm8350_ufsphy_serdes), 864 + .tx = sm8350_ufsphy_tx, 865 + .tx_num = ARRAY_SIZE(sm8350_ufsphy_tx), 866 + .rx = sm8350_ufsphy_rx, 867 + .rx_num = ARRAY_SIZE(sm8350_ufsphy_rx), 868 + .pcs = sm8350_ufsphy_pcs, 869 + .pcs_num = ARRAY_SIZE(sm8350_ufsphy_pcs), 870 + }, 871 + .tbls_hs_b = { 872 + .serdes = sm8350_ufsphy_hs_b_serdes, 873 + .serdes_num = ARRAY_SIZE(sm8350_ufsphy_hs_b_serdes), 874 + }, 875 + .tbls_hs_g4 = { 876 + .tx = sm8350_ufsphy_g4_tx, 877 + .tx_num = ARRAY_SIZE(sm8350_ufsphy_g4_tx), 878 + .rx = sm8350_ufsphy_g4_rx, 879 + .rx_num = ARRAY_SIZE(sm8350_ufsphy_g4_rx), 880 + .pcs = sm8350_ufsphy_g4_pcs, 881 + .pcs_num = ARRAY_SIZE(sm8350_ufsphy_g4_pcs), 882 + }, 883 + .clk_list = sm8450_ufs_phy_clk_l, 884 + .num_clks = ARRAY_SIZE(sm8450_ufs_phy_clk_l), 885 + .vreg_list = qmp_phy_vreg_l, 886 + .num_vregs = ARRAY_SIZE(qmp_phy_vreg_l), 887 + .regs = ufsphy_v5_regs_layout, 888 + }; 889 + 856 890 static const struct qmp_phy_cfg sc8280xp_ufsphy_cfg = { 857 891 .lanes = 2, 858 892 ··· 1634 1600 }, { 1635 1601 .compatible = "qcom,msm8998-qmp-ufs-phy", 1636 1602 .data = &sdm845_ufsphy_cfg, 1603 + }, { 1604 + .compatible = "qcom,sa8775p-qmp-ufs-phy", 1605 + .data = &sa8775p_ufsphy_cfg, 1637 1606 }, { 1638 1607 .compatible = "qcom,sc8180x-qmp-ufs-phy", 1639 1608 .data = &sm8150_ufsphy_cfg,