Some chips do not require enter/exit sequences. This causes them to be
detected and printed multiple times in probe_idregs_* functions where a simple series of enter --> probe/print --> exit calls are made. This patch adds a simple check after each set of those calls to make the functions quit after a chip is found. Signed-off-by: David Hendricks <dhendrix@google.com> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5689 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
committed by
Uwe Hermann
parent
9bf7810dac
commit
2ad6d55e38
@@ -614,18 +614,22 @@ void probe_idregs_winbond(uint16_t port)
|
||||
enter_conf_mode_winbond_88(port);
|
||||
probe_idregs_winbond_helper("(init=0x88) ", port);
|
||||
exit_conf_mode_winbond_fintek_ite_8787(port);
|
||||
if (chip_found) return;
|
||||
|
||||
enter_conf_mode_winbond_89(port);
|
||||
probe_idregs_winbond_helper("(init=0x89) ", port);
|
||||
exit_conf_mode_winbond_fintek_ite_8787(port);
|
||||
if (chip_found) return;
|
||||
|
||||
enter_conf_mode_winbond_86(port);
|
||||
probe_idregs_winbond_helper("(init=0x86,0x86) ", port);
|
||||
exit_conf_mode_winbond_fintek_ite_8787(port);
|
||||
if (chip_found) return;
|
||||
|
||||
enter_conf_mode_winbond_fintek_ite_8787(port);
|
||||
probe_idregs_winbond_helper("(init=0x87,0x87) ", port);
|
||||
exit_conf_mode_winbond_fintek_ite_8787(port);
|
||||
if (chip_found) return;
|
||||
}
|
||||
|
||||
void print_winbond_chips(void)
|
||||
|
Reference in New Issue
Block a user