plat: marvell: armada: a7k: add support to SVC validation mode

Add support for “AVS reduction” feature at this mode for
7040 Dual Cluster operation mode at CPU=1600MHz

Change-Id: Ia72b10e0ccfad07568bf4c089ea3990173ae24b2
Signed-off-by: Alex Evraev <alexev@marvell.com>
This commit is contained in:
Alex Evraev 2019-08-11 13:38:15 +03:00 committed by Marcin Wojtas
parent 4827068989
commit ebf307bfef
1 changed files with 11 additions and 1 deletions

View File

@ -554,8 +554,18 @@ static void ble_plat_svc_config(void)
if (perr[0])
goto perror;
avs_workpoint = svc[0];
} else
} else {
#if MARVELL_SVC_TEST
reg_val = mmio_read_32(AVS_EN_CTRL_REG);
avs_workpoint = (reg_val &
AVS_VDD_LOW_LIMIT_MASK) >>
AVS_LOW_VDD_LIMIT_OFFSET;
NOTICE("7040 1600Mhz, avs = 0x%x\n",
avs_workpoint);
#else
avs_workpoint = 0;
#endif
}
break;
}
} else if (device_id == MVEBU_3900_DEV_ID) {