1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-04-27 23:22:37 +02:00

stlinkv3_spi.c: Improve printed messages

Add missing line ends, and add a note about the first version of the
updater which contains the necessary V3 bridge feature.

Change-Id: Ib45efa37b192489bdfe26f1f0fd1d81035a08c70
Signed-off-by: Miklós Márton <martonmiklosqdev@gmail.com>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/43900
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Miklós Márton 2020-07-26 10:40:46 +02:00 committed by Angel Pons
parent f4eeefd8ab
commit 47143bc9a5

View File

@ -253,21 +253,22 @@ static int stlinkv3_spi_open(uint16_t reqested_freq_in_kHz)
enum fw_version_check_result fw_check_result; enum fw_version_check_result fw_check_result;
if (stlinkv3_check_version(&fw_check_result)) { if (stlinkv3_check_version(&fw_check_result)) {
msg_perr("Failed to query FW version"); msg_perr("Failed to query FW version\n");
return -1; return -1;
} }
if (fw_check_result != FW_VERSION_OK) { if (fw_check_result != FW_VERSION_OK) {
msg_pinfo("Your STLink V3 has too old version of the bridge interface\n" msg_pinfo("Your STLink V3 has a too old version of the bridge interface\n"
"Please update the firmware with the STSW-LINK007 which can be downloaded from here:\n" "Please update the firmware to version 2.33.25 or newer of the STSW-LINK007\n"
"https://www.st.com/en/development-tools/stsw-link007.html"); "which can be downloaded from here:\n"
"https://www.st.com/en/development-tools/stsw-link007.html\n");
return -1; return -1;
} }
if (stlinkv3_spi_calc_prescaler(reqested_freq_in_kHz, if (stlinkv3_spi_calc_prescaler(reqested_freq_in_kHz,
&prescaler, &prescaler,
&SCK_freq_in_kHz)) { &SCK_freq_in_kHz)) {
msg_perr("Failed to calculate SPI clock prescaler"); msg_perr("Failed to calculate SPI clock prescaler\n");
return -1; return -1;
} }
msg_pinfo("SCK frequency set to %d kHz\n", SCK_freq_in_kHz); msg_pinfo("SCK frequency set to %d kHz\n", SCK_freq_in_kHz);