spl: Allow distinguishing between two phases in U-Boot
authorSimon Glass <sjg@chromium.org>
Wed, 25 Sep 2019 14:56:30 +0000 (08:56 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Tue, 8 Oct 2019 05:57:45 +0000 (13:57 +0800)
commit59c871bca799e1dae0144192d936ac0a3c172686
tree49b14531d74141ec4fd4ea3e43ab4cc1eb1e8867
parentb51882d0079d3275bdb83ce49fdc8a90133f7f07
spl: Allow distinguishing between two phases in U-Boot

U-Boot has two distinct phases: before and after relocation. These are
commonly referred to as F (running from Flash) and R (Relocated and
running from RAM). Some drivers want to do different things in these
phases so update the SPL phase function to return a different value for
each.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
include/spl.h