arm: mvebu: Add support for specifying VHV_Enable GPIO
authorPali Rohár <pali@kernel.org>
Thu, 22 Sep 2022 11:43:45 +0000 (13:43 +0200)
committerStefan Roese <sr@denx.de>
Thu, 6 Oct 2022 08:15:35 +0000 (10:15 +0200)
commit8092d1dd417a30e93e706bd58e6f7eae8a948609
treea016dabc0934b4c6e237ba7d5227793383eeac52
parent3b44b3fdf2b01f1d50a4325460a36550821ff920
arm: mvebu: Add support for specifying VHV_Enable GPIO

VHV_Enable GPIO is required to enable during eFuse programming on Armada
SoCs not from 3700 family. Add support for enabling and disabling VHV pin
via GPIO during eFuse programming, when specified.

All details are in Marvell AN-389: ARMADA VHV Power document
(Doc. No. MV-S302545-00 Rev. C, August 2, 2016).

Note that due to HW Errata 3.6 eFuse erroneous burning (Ref #: HWE-3718342)
VHV power must be disabled while core voltage is off to prevent erroneous
eFuse programming.

This is specified in Marvell ARMADA 380/385/388 Functional Errata,
Guidelines, and Restrictions document
(Doc. No. MV-S501377-00 Rev. D, December 1, 2016).

Signed-off-by: Pali Rohár <pali@kernel.org>
arch/arm/mach-mvebu/Kconfig
arch/arm/mach-mvebu/efuse.c