]> git.baikalelectronics.ru Git - kernel.git/commit
mfd: qcom-spmi-pmic: expose the PMIC revid information to clients
authorCaleb Connolly <caleb.connolly@linaro.org>
Fri, 29 Apr 2022 22:08:57 +0000 (23:08 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 18 Jun 2022 13:01:16 +0000 (14:01 +0100)
commit16f318a92e4ca91d14dc4b7b6adfc949f67466c3
tree0ee4d597d74d0e39b83c7354cd67b1307ff8b7ae
parent1318145ca40a9c7109208b59e5cad19b59b43384
mfd: qcom-spmi-pmic: expose the PMIC revid information to clients

Some PMIC functions such as the RRADC need to be aware of the PMIC
chip revision information to implement errata or otherwise adjust
behaviour, export the PMIC information to enable this.

This is specifically required to enable the RRADC to adjust
coefficients based on which chip fab the PMIC was produced in,
this can vary per unique device and therefore has to be read at
runtime.

Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Tested-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Acked-by: Lee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/20220429220904.137297-3-caleb.connolly@linaro.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/mfd/qcom-spmi-pmic.c
include/soc/qcom/qcom-spmi-pmic.h [new file with mode: 0644]