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)
commite9c11c6e3a0e93903f5a13f8d2f97ae1bba512e1
tree0ee4d597d74d0e39b83c7354cd67b1307ff8b7ae
parent9a2139c2912ea64e288749c21452930dc752d4fd
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]