mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
UPSTREAM: soc/intel/apollolake: die() when FSP silicon init fails
The reset requests are handled in the FSP 2.0 wrapper, but the current code doesn't check any non-successful return values. Provide parity with the memory init path which die()s under those circumstances. BUG=None BRANCH=None TEST=None Change-Id: I9df61323f742b4e94294321e3ca3ab58a68ca4dd Original-Signed-off-by: Aaron Durbin <adurbin@chromium.org> Original-Reviewed-on: https://review.coreboot.org/15766 Original-Tested-by: build bot (Jenkins) Original-Reviewed-by: Andrey Petrov <andrey.petrov@intel.com> Original-Reviewed-by: Furquan Shaikh <furquan@google.com> Original-Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/362687 Reviewed-by: Furquan Shaikh <furquan@chromium.org>
This commit is contained in:
parent
994b402c0c
commit
3c0399f84a
1 changed files with 2 additions and 1 deletions
|
@ -201,7 +201,8 @@ static void soc_init(void *data)
|
|||
* default policy that doesn't honor boards' requirements. */
|
||||
itss_snapshot_irq_polarities(GPIO_IRQ_START, GPIO_IRQ_END);
|
||||
|
||||
fsp_silicon_init();
|
||||
if (fsp_silicon_init() != FSP_SUCCESS)
|
||||
die("FSP silicon init failed. Giving up.");
|
||||
|
||||
/* Restore GPIO IRQ polarities back to previous settings. */
|
||||
itss_restore_irq_polarities(GPIO_IRQ_START, GPIO_IRQ_END);
|
||||
|
|
Loading…
Add table
Reference in a new issue