mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-24 22:36:05 +00:00
xpl: Add a function to indicate when in xPL
Add the opposite function to not_xpl() for completeness. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
f86580fc70
commit
44a4c8e93f
1 changed files with 10 additions and 0 deletions
|
@ -144,6 +144,16 @@ static inline bool not_xpl(void)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* returns true if in xPL, false if in U-Boot proper */
|
||||||
|
static inline bool is_xpl(void)
|
||||||
|
{
|
||||||
|
#ifdef CONFIG_XPL_BUILD
|
||||||
|
return true;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* spl_prev_phase() - Figure out the previous U-Boot phase
|
* spl_prev_phase() - Figure out the previous U-Boot phase
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Reference in a new issue