]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commite71b79962f6f8d257d9bae7ab3e8d7a57f74450d
tree12904b64d213e6a83588e9acdafa180b598a6b36
parent7311a69074f30f6a1b589c53983986df0729c989
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