]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commitfc51572c274b57a54d2d92e89f18f44675bb7ec7
tree49b14531d74141ec4fd4ea3e43ab4cc1eb1e8867
parenta43d03145f1be1d765ad7d0eef2ec930055b6cd0
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