[PATCH v1 18/23] phy: marvell: cp110: mark u-boot power-off calls
Stefan Roese
sr at denx.de
Wed Mar 24 15:06:44 CET 2021
From: Igal Liberman <igall at marvell.com>
It helps ATF to determine who called power off
function (U-boot/Linux) and act accordingly
Signed-off-by: Igal Liberman <igall at marvell.com>
Reviewed-by: Grzegorz Jaszczyk <jaz at semihalf.com>
Signed-off-by: Stefan Roese <sr at denx.de>
---
drivers/phy/marvell/comphy_cp110.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/phy/marvell/comphy_cp110.c b/drivers/phy/marvell/comphy_cp110.c
index d9a94f9d0d09..489a17c76f42 100644
--- a/drivers/phy/marvell/comphy_cp110.c
+++ b/drivers/phy/marvell/comphy_cp110.c
@@ -553,10 +553,10 @@ int comphy_cp110_init(struct chip_serdes_phy_config *ptr_chip_cfg,
}
switch (ptr_comphy_map->type) {
case COMPHY_TYPE_UNCONNECTED:
+ mode = COMPHY_TYPE_UNCONNECTED | COMPHY_CALLER_UBOOT;
ret = comphy_smc(MV_SIP_COMPHY_POWER_OFF,
ptr_chip_cfg->comphy_base_addr,
- lane,
- ptr_comphy_map->type);
+ lane, mode);
case COMPHY_TYPE_IGNORE:
continue;
break;
--
2.31.0
More information about the U-Boot
mailing list