summaryrefslogtreecommitdiffstats
path: root/board
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2011-12-10 11:07:54 +0000
committerWolfgang Denk <wd@denx.de>2012-03-18 20:45:57 +0100
commit578ac1e9ba4c79175e69becb28e7157a84eff241 (patch)
tree4a1803ab18b81bdd019852e45205f34f717617c3 /board
parent097e17836d9e8d3f5abb5987f8ac706168d1c2ec (diff)
downloadtalos-obmc-uboot-578ac1e9ba4c79175e69becb28e7157a84eff241.tar.gz
talos-obmc-uboot-578ac1e9ba4c79175e69becb28e7157a84eff241.zip
bootstage: Make use of BOOTSTAGE_ID_RUN_OS in show_boot_progress()
This changes the number 15 as used in boot_stage_progress() to use the new name provided for it. This is a separate patch because it touches so many files. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'board')
-rw-r--r--board/Seagate/dockstar/dockstar.c2
-rw-r--r--board/a4m072/a4m072.c2
-rw-r--r--board/bf533-stamp/bf533-stamp.c2
-rw-r--r--board/matrix_vision/mvbc_p/mvbc_p.c2
-rw-r--r--board/pcs440ep/pcs440ep.c3
-rw-r--r--board/sixnet/sixnet.c2
-rw-r--r--board/ti/beagle/beagle.c2
7 files changed, 7 insertions, 8 deletions
diff --git a/board/Seagate/dockstar/dockstar.c b/board/Seagate/dockstar/dockstar.c
index a1de0dc4df..8cbfb02b15 100644
--- a/board/Seagate/dockstar/dockstar.c
+++ b/board/Seagate/dockstar/dockstar.c
@@ -169,7 +169,7 @@ static void set_leds(u32 leds, u32 blinking)
void show_boot_progress(int val)
{
switch (val) {
- case 15: /* booting Linux */
+ case BOOTSTAGE_ID_RUN_OS: /* booting Linux */
set_leds(BOTH_LEDS, NEITHER_LED);
break;
case 64: /* Ethernet initialization */
diff --git a/board/a4m072/a4m072.c b/board/a4m072/a4m072.c
index 09a5a5183b..9485cfb0f7 100644
--- a/board/a4m072/a4m072.c
+++ b/board/a4m072/a4m072.c
@@ -484,7 +484,7 @@ void show_boot_progress(int status)
display_out_pos = 0; /* reset output position */
/* we want to flush status 15 now */
- if (status == 15)
+ if (status == BOOTSTAGE_ID_RUN_OS)
display_flush();
}
#endif
diff --git a/board/bf533-stamp/bf533-stamp.c b/board/bf533-stamp/bf533-stamp.c
index 935aad240b..b1134e937d 100644
--- a/board/bf533-stamp/bf533-stamp.c
+++ b/board/bf533-stamp/bf533-stamp.c
@@ -117,7 +117,7 @@ void show_boot_progress(int status)
case 12:
case 13:
case 14:
- case 15:
+ case BOOTSTAGE_ID_RUN_OS:
stamp_led_set(STATUS_LED_OFF, STATUS_LED_OFF, STATUS_LED_OFF);
break;
default:
diff --git a/board/matrix_vision/mvbc_p/mvbc_p.c b/board/matrix_vision/mvbc_p/mvbc_p.c
index 439217653e..9dffedc9bd 100644
--- a/board/matrix_vision/mvbc_p/mvbc_p.c
+++ b/board/matrix_vision/mvbc_p/mvbc_p.c
@@ -250,7 +250,7 @@ void show_boot_progress(int val)
case 12:
setbits_be32(&gpio->simple_dvo, LED_Y);
break;
- case 15:
+ case BOOTSTAGE_ID_RUN_OS:
setbits_be32(&gpio->simple_dvo, LED_R);
break;
default:
diff --git a/board/pcs440ep/pcs440ep.c b/board/pcs440ep/pcs440ep.c
index 5a3ec58445..36994b531c 100644
--- a/board/pcs440ep/pcs440ep.c
+++ b/board/pcs440ep/pcs440ep.c
@@ -110,8 +110,7 @@ void show_boot_progress (int val)
status_led_set (1, STATUS_LED_ON);
status_led_set (2, STATUS_LED_ON);
break;
- case 15:
- /* booting */
+ case BOOTSTAGE_ID_RUN_OS:
status_led_set (0, STATUS_LED_ON);
status_led_set (1, STATUS_LED_ON);
status_led_set (2, STATUS_LED_ON);
diff --git a/board/sixnet/sixnet.c b/board/sixnet/sixnet.c
index edb5d133b7..a13c72dcd7 100644
--- a/board/sixnet/sixnet.c
+++ b/board/sixnet/sixnet.c
@@ -46,7 +46,7 @@ void show_boot_progress (int status)
{
#if defined(CONFIG_STATUS_LED)
# if defined(STATUS_LED_BOOT)
- if (status == 15) {
+ if (status == BOOTSTAGE_ID_RUN_OS) {
/* ready to transfer to kernel, make sure LED is proper state */
status_led_set(STATUS_LED_BOOT, CONFIG_BOOT_LED_STATE);
}
diff --git a/board/ti/beagle/beagle.c b/board/ti/beagle/beagle.c
index c09c833980..114ab7e450 100644
--- a/board/ti/beagle/beagle.c
+++ b/board/ti/beagle/beagle.c
@@ -485,7 +485,7 @@ int board_mmc_init(bd_t *bis)
/* Call usb_stop() before starting the kernel */
void show_boot_progress(int val)
{
- if(val == 15)
+ if (val == BOOTSTAGE_ID_RUN_OS)
usb_stop();
}
OpenPOWER on IntegriCloud