spl: Split out bootstage ID into a function
authorSimon Glass <sjg@chromium.org>
Mon, 15 Mar 2021 05:11:15 +0000 (18:11 +1300)
committerSimon Glass <sjg@chromium.org>
Sat, 27 Mar 2021 02:04:31 +0000 (15:04 +1300)
commit05e3a0d64833763990303eaab117d8902c38470f
tree9828b55307dd8a9c33f306a97d5780cd92ea0099
parentdc2886b039af3add52edf370d12d05366fe59eb6
spl: Split out bootstage ID into a function

We have two separate places that need to figure out the bootstage ID to
use. Put this code in a function so that the logic is in one place.

Signed-off-by: Simon Glass <sjg@chromium.org>
common/spl/spl.c