board: ti: am335x: Fix DM_TPS65910 condition
authorMaarten Brock <Maarten.Brock@sttls.nl>
Tue, 25 Nov 2025 13:55:24 +0000 (13:55 +0000)
committerTom Rini <trini@konsulko.com>
Thu, 27 Nov 2025 15:27:03 +0000 (09:27 -0600)
scale_vcores_generic() calls functions implemented in
tps65910.c, not tps65910_dm.c. Change guard from CONFIG_DM_PMIC_TPS65910 to
CONFIG_SPL_POWER_TPS65910.

Fixes: 0b9ff0851592 ("board: ti: am335x: Do not call disabled PMIC functions")
Signed-off-by: Markus Schneider-Pargmann (TI.com) <msp@baylibre.com>
Signed-off-by: Maarten Brock <maarten.brock@sttls.nl>
Reviewed-by: Kory Maincent <kory.maincent@bootlin.com>
Acked-by: Maarten Brock <maarten.brock@sttls.nl>
board/ti/am335x/board.c

index 712818e..90e37a8 100644 (file)
@@ -429,7 +429,7 @@ void scale_vcores_generic(int freq)
 {
        int sil_rev, mpu_vdd;
 
-       if (!IS_ENABLED(CONFIG_DM_PMIC_TPS65910))
+       if (!IS_ENABLED(CONFIG_SPL_POWER_TPS65910))
                return;
 
        /*