baytrail: broadwell: correct refcode loading

I messed up the conditionals on loading the reference code.
The bug used || instead of && causing 2 reference codes to
be loaded.

Change-Id: I29a046bf0e8dc29a9efdb636ebfd04e11eb73f82
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: http://review.coreboot.org/10185
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Tested-by: build bot (Jenkins)
This commit is contained in:
Aaron Durbin 2015-05-12 16:45:56 -05:00
parent 09560facd4
commit 797ca1b712
2 changed files with 2 additions and 2 deletions

View File

@ -112,7 +112,7 @@ static efi_wrapper_entry_t load_reference_code(void)
return load_refcode_from_cache();
}
if (load_refcode_from_vboot(&refcode) ||
if (load_refcode_from_vboot(&refcode) &&
load_refcode_from_cbfs(&refcode))
return NULL;

View File

@ -108,7 +108,7 @@ static pei_wrapper_entry_t load_reference_code(void)
return load_refcode_from_cache();
}
if (load_refcode_from_vboot(&refcode) ||
if (load_refcode_from_vboot(&refcode) &&
load_refcode_from_cbfs(&refcode))
return NULL;