mirror of
https://review.coreboot.org/flashrom.git
synced 2025-04-28 07:23:43 +02:00
Initialize the internal delay function before running programmer init
The programmer init may need a good host delay function. Corresponding to flashrom svn r1006. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>
This commit is contained in:
parent
5824fbff01
commit
4988420f7d
@ -378,6 +378,9 @@ int cli_classic(int argc, char *argv[])
|
|||||||
flash = NULL;
|
flash = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* FIXME: Delay calibration should happen in programmer code. */
|
||||||
|
myusec_calibrate_delay();
|
||||||
|
|
||||||
msg_pdbg("Initializing %s programmer\n",
|
msg_pdbg("Initializing %s programmer\n",
|
||||||
programmer_table[programmer].name);
|
programmer_table[programmer].name);
|
||||||
if (programmer_init()) {
|
if (programmer_init()) {
|
||||||
@ -386,8 +389,6 @@ int cli_classic(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* FIXME: Delay calibration should happen in programmer code. */
|
/* FIXME: Delay calibration should happen in programmer code. */
|
||||||
myusec_calibrate_delay();
|
|
||||||
|
|
||||||
for (i = 0; i < ARRAY_SIZE(flashes); i++) {
|
for (i = 0; i < ARRAY_SIZE(flashes); i++) {
|
||||||
flashes[i] =
|
flashes[i] =
|
||||||
probe_flash(i ? flashes[i - 1] + 1 : flashchips, 0);
|
probe_flash(i ? flashes[i - 1] + 1 : flashchips, 0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user