From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bin Meng Date: Thu, 3 Oct 2019 15:50:22 +0800 Subject: [U-Boot] [PATCH v2 11/38] spl: Add a function to determine the U-Boot phase In-Reply-To: References: <20190925141147.191166-1-sjg@chromium.org> <20190925141147.191166-12-sjg@chromium.org> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, Oct 2, 2019 at 9:58 PM Bin Meng wrote: > > On Wed, Sep 25, 2019 at 10:12 PM Simon Glass wrote: > > > > U-Boot is built in three phases: TPL, SPL and U-Boot proper. Sometimes > > it is necessary to use different init code depending on the phase. For > > example, TPL might do very basic CPU init, SPL might do a little more > > and U-Boot proper might bring the CPU up to full speed and enable all > > cores. > > > > Add a function which allows easy determination of the current phase being > > built. > > > > Signed-off-by: Simon Glass > > --- > > > > Changes in v2: None > > > > include/spl.h | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++ > > 1 file changed, 60 insertions(+) > > > > Reviewed-by: Bin Meng applied to u-boot-x86/next, thanks!