diff options
author | Nickolay Goppen <setotau@mainlining.org> | 2025-09-08 15:28:44 +0300 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2025-09-10 15:35:41 +0200 |
commit | 18d676ac0cce3e3aaa06f29553e53134e30c5f61 (patch) | |
tree | bde7707ed31b1c24c52cd809a3e7c48c7a8f31be /rust/helpers/pci.c | |
parent | 87ebcd8baebf93b9d763dba5ee31e8fda62daec6 (diff) |
pinctrl: qcom: lpass-lpi: Add ability to use custom pin offsets
By default pin_offset is calculated by formula: LPI_TLMM_REG_OFFSET * pin_id.
However not all platforms are using this pin_offset formula (e.g. SDM660 LPASS
LPI uses a predefined array of offsets [1]), so extend lpi_pingroup struct
with pin_offset field, introduce extended LPI_PINGROUP_OFFSET macro with
pin_offet field and introduce LPI_FLAG_USE_PREDEFINED_PIN_OFFSET flag.
This adds an ability to use predefined offset for pin if it exists.
[1] https://git.codelinaro.org/clo/la/kernel/msm-4.4/-/blob/LA.UM.7.2.c27-07400-sdm660.0/drivers/pinctrl/qcom/pinctrl-lpi.c#L107
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Signed-off-by: Nickolay Goppen <setotau@mainlining.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'rust/helpers/pci.c')
0 files changed, 0 insertions, 0 deletions