arm: fsl: common: Improve NXP VID driver PMBus support
authorStephen Carlson <stcarlso@linux.microsoft.com>
Mon, 8 Feb 2021 10:11:29 +0000 (11:11 +0100)
committerPriyanka Jain <priyanka.jain@nxp.com>
Fri, 5 Mar 2021 04:55:41 +0000 (10:25 +0530)
commitb5ee48c099e4036fc0336cf66a0d324b8225d53e
tree12904b64d213e6a83588e9acdafa180b598a6b36
parent6a026e5649f00c0b157a935279dfd625889db675
arm: fsl: common: Improve NXP VID driver PMBus support

This patch adds support for more PMBus compatible devices to the NXP
drivers for its QorIQ family devices. At runtime, the voltage regulator is
queried over I2C, and the required voltage multiplier determined. This
change supports the DIRECT and LINEAR PMBus voltage reporting modes.

Previously, the driver only supported a few specific devices such as the
IR36021 and LTC3882, so this change allows the QorIQ series to be used
with a much larger variety of core voltage regulator devices.

checkpatch warning "Use if (IS_DEFINED (...))" was ignored to maintain
consistency with the existing code.

Signed-off-by: Stephen Carlson <stcarlso@linux.microsoft.com>
Signed-off-by: Wasim Khan <wasim.khan@nxp.com>
Tested-by: Wasim Khan <wasim.khan@nxp.com>
[Rebased]
Signed-off-by: Priyanka Jain <priyanka.jain@nxp.com>
board/freescale/common/Kconfig
board/freescale/common/vid.c
board/freescale/common/vid.h
board/freescale/ls1088a/ls1088a.c
board/freescale/ls2080ardb/ls2080ardb.c
board/freescale/lx2160a/lx2160a.c
include/configs/ls1088aqds.h
include/configs/ls1088ardb.h