public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Heiko Schocher <hs@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3 07/12] bootstage: call show_boot_progress also in SPL
Date: Tue,  7 Jun 2016 08:31:20 +0200	[thread overview]
Message-ID: <1465281085-10481-8-git-send-email-hs@denx.de> (raw)
In-Reply-To: <1465281085-10481-1-git-send-email-hs@denx.de>

show_boot_progress() is now called from SPL also.

Signed-off-by: Heiko Schocher <hs@denx.de>
---

Changes in v3: None
Changes in v2: None

 common/init/board_init.c | 5 +++++
 common/spl/spl.c         | 5 +++++
 include/bootstage.h      | 6 +++---
 3 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/common/init/board_init.c b/common/init/board_init.c
index d17bb29..ef01a9a 100644
--- a/common/init/board_init.c
+++ b/common/init/board_init.c
@@ -146,3 +146,8 @@ void board_init_f_init_reserve(ulong base)
 	base += CONFIG_SYS_MALLOC_F_LEN;
 #endif
 }
+
+/*
+ * Board-specific Platform code can reimplement show_boot_progress () if needed
+ */
+__weak void show_boot_progress(int val) {}
diff --git a/common/spl/spl.c b/common/spl/spl.c
index c8dfc14..840910a 100644
--- a/common/spl/spl.c
+++ b/common/spl/spl.c
@@ -36,6 +36,11 @@ struct spl_image_info spl_image;
 static bd_t bdata __attribute__ ((section(".data")));
 
 /*
+ * Board-specific Platform code can reimplement show_boot_progress () if needed
+ */
+__weak void show_boot_progress(int val) {}
+
+/*
  * Default function to determine if u-boot or the OS should
  * be started. This implementation always returns 1.
  *
diff --git a/include/bootstage.h b/include/bootstage.h
index 0880a68..a589be6 100644
--- a/include/bootstage.h
+++ b/include/bootstage.h
@@ -213,7 +213,9 @@ enum bootstage_id {
  */
 ulong timer_get_boot_us(void);
 
-#if !defined(CONFIG_SPL_BUILD) && !defined(USE_HOSTCC)
+#if defined(USE_HOSTCC)
+#define show_boot_progress(val) do {} while (0)
+#else
 /*
  * Board code can implement show_boot_progress() if needed.
  *
@@ -221,8 +223,6 @@ ulong timer_get_boot_us(void);
  *		has occurred.
  */
 void show_boot_progress(int val);
-#else
-#define show_boot_progress(val) do {} while (0)
 #endif
 
 #if defined(CONFIG_BOOTSTAGE) && !defined(CONFIG_SPL_BUILD) && \
-- 
2.5.5

  parent reply	other threads:[~2016-06-07  6:31 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-07  6:31 [U-Boot] [PATCH v3 00/12] am335x: add support for the am335x based bosch shc board Heiko Schocher
2016-06-07  6:31 ` [U-Boot] [PATCH v3 01/12] common: bootdelay: move CONFIG_BOOTDELAY into a Kconfig option Heiko Schocher
2016-06-08  2:54   ` Viresh Kumar
2016-06-08  8:52   ` Igor Grinberg
2016-06-09 18:02   ` [U-Boot] [U-Boot, v3, " Tom Rini
2016-06-07  6:31 ` [U-Boot] [PATCH v3 02/12] tests: py: disable main_signon check for printenv cmd Heiko Schocher
2016-06-09 18:02   ` [U-Boot] [U-Boot, v3, " Tom Rini
2016-06-07  6:31 ` [U-Boot] [PATCH v3 03/12] power, tps65217: add some defines Heiko Schocher
2016-06-09 18:02   ` [U-Boot] [U-Boot,v3,03/12] " Tom Rini
2016-06-07  6:31 ` [U-Boot] [PATCH v3 04/12] arm, am335x: add some missing GPIO register definitions Heiko Schocher
2016-06-09 18:02   ` [U-Boot] [U-Boot, v3, " Tom Rini
2016-06-07  6:31 ` [U-Boot] [PATCH v3 05/12] am335x: add some missing CM_CLKMODE_DPLL_SSC macros Heiko Schocher
2016-06-09 18:02   ` [U-Boot] [U-Boot, v3, " Tom Rini
2016-06-07  6:31 ` [U-Boot] [PATCH v3 06/12] arm, am335x: Enable Spread Spectrum for the MPU Heiko Schocher
2016-06-09 18:03   ` [U-Boot] [U-Boot, v3, " Tom Rini
2016-06-07  6:31 ` Heiko Schocher [this message]
2016-06-09 18:03   ` [U-Boot] [U-Boot, v3, 07/12] bootstage: call show_boot_progress also in SPL Tom Rini
2016-06-07  6:31 ` [U-Boot] [PATCH v3 08/12] mmc: revert mmc: Handle switch error status bit in MMC card status Heiko Schocher
2016-06-09 18:03   ` [U-Boot] [U-Boot, v3, " Tom Rini
2016-06-07  6:31 ` [U-Boot] [PATCH v3 09/12] mmc: omap_hsmmc: enable 8bit interface for eMMC for AM33xx Heiko Schocher
2016-06-08  8:53   ` Igor Grinberg
2016-06-09 18:03   ` [U-Boot] [U-Boot, v3, " Tom Rini
2016-06-07  6:31 ` [U-Boot] [PATCH v3 10/12] armv7: omap-common: make SPL board_mmc_init() weak Heiko Schocher
2016-06-09 18:03   ` [U-Boot] [U-Boot, v3, " Tom Rini
2016-06-07  6:31 ` [U-Boot] [PATCH v3 11/12] doc, spl, am335x: update am335x-network Heiko Schocher
2016-06-09 18:03   ` [U-Boot] [U-Boot, v3, " Tom Rini
2016-06-07  6:31 ` [U-Boot] [PATCH v3 12/12] am335x, shc: add support for the am335x based bosch shc board Heiko Schocher
2016-06-09 18:03   ` [U-Boot] [U-Boot, v3, " Tom Rini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1465281085-10481-8-git-send-email-hs@denx.de \
    --to=hs@denx.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox