]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
bootstage: Make use of BOOTSTAGE_ID_RUN_OS in show_boot_progress()
authorSimon Glass <sjg@chromium.org>
Sat, 10 Dec 2011 11:07:54 +0000 (11:07 +0000)
committerWolfgang Denk <wd@denx.de>
Sun, 18 Mar 2012 19:45:57 +0000 (20:45 +0100)
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>
16 files changed:
arch/arm/lib/bootm.c
arch/avr32/lib/bootm.c
arch/m68k/lib/bootm.c
arch/microblaze/lib/bootm.c
arch/mips/lib/bootm.c
arch/mips/lib/bootm_qemu_mips.c
arch/nds32/lib/bootm.c
arch/powerpc/lib/bootm.c
board/Seagate/dockstar/dockstar.c
board/a4m072/a4m072.c
board/bf533-stamp/bf533-stamp.c
board/matrix_vision/mvbc_p/mvbc_p.c
board/pcs440ep/pcs440ep.c
board/sixnet/sixnet.c
board/ti/beagle/beagle.c
common/cmd_bootm.c

index afa0093df7620606ee12b4dc1dd2ee37adee347c..249ac1b312f893bbd9259e909df99399ac95cdd3 100644 (file)
@@ -113,7 +113,7 @@ int do_bootm_linux(int flag, int argc, char *argv[], bootm_headers_t *images)
                printf ("Using machid 0x%x from environment\n", machid);
        }
 
-       show_boot_progress (15);
+       show_boot_progress(BOOTSTAGE_ID_RUN_OS);
 
 #ifdef CONFIG_OF_LIBFDT
        if (images->ft_len)
index c9a55ffb2cff9bcda16e73d451a316ba1bcbd1df..f18073796c2b88fc1c787d6a67a347e8fbc0384a 100644 (file)
@@ -192,7 +192,7 @@ int do_bootm_linux(int flag, int argc, char * const argv[], bootm_headers_t *ima
 
        theKernel = (void *)images->ep;
 
-       show_boot_progress (15);
+       show_boot_progress(BOOTSTAGE_ID_RUN_OS);
 
        params = params_start = (struct tag *)gd->bd->bi_boot_params;
        params = setup_start_tag(params);
index 1229ac7f255ba2b6067811368fcc47582ebe85de..233782b8e6ae658c4a310f0179317c20c909ca02 100644 (file)
@@ -104,7 +104,7 @@ int do_bootm_linux(int flag, int argc, char * const argv[], bootm_headers_t *ima
        debug("## Transferring control to Linux (at address %08lx) ...\n",
              (ulong) kernel);
 
-       show_boot_progress (15);
+       show_boot_progress(BOOTSTAGE_ID_RUN_OS);
 
        /*
         * Linux Kernel Parameters (passing board info data):
index 9f6d6d660f29493ded1da130469d093e21288430..24b9e09ac4b5750867a36ff991ea0166a1540421 100644 (file)
@@ -59,7 +59,7 @@ int do_bootm_linux(int flag, int argc, char * const argv[], bootm_headers_t *ima
        if (ret)
                return 1;
 
-       show_boot_progress (15);
+       show_boot_progress(BOOTSTAGE_ID_RUN_OS);
 
        if (!of_flat_tree && argc > 3)
                of_flat_tree = (char *)simple_strtoul(argv[3], NULL, 16);
index 40a564718fe225460aa04addf4b2c0e05a2eacee..5b7e74ff19c95dcd73209777266f8cf858cb2bee 100644 (file)
@@ -56,7 +56,7 @@ int do_bootm_linux(int flag, int argc, char * const argv[], bootm_headers_t *ima
        /* find kernel entry point */
        theKernel = (void (*)(int, char **, char **, int *))images->ep;
 
-       show_boot_progress (15);
+       show_boot_progress(BOOTSTAGE_ID_RUN_OS);
 
 #ifdef DEBUG
        printf ("## Transferring control to Linux (at address %08lx) ...\n",
index f1906c6775bcb9455a73abd374f047b101307dc1..47f5310d41b1950568ddbe1c845672d7c64e213c 100644 (file)
@@ -39,7 +39,7 @@ int do_bootm_linux(int flag, int argc, char * const argv[], bootm_headers_t *ima
        /* find kernel entry point */
        theKernel = (void (*)(int, char **, char **, int *))images->ep;
 
-       show_boot_progress (15);
+       show_boot_progress(BOOTSTAGE_ID_RUN_OS);
 
        debug ("## Transferring control to Linux (at address %08lx) ...\n",
                (ulong) theKernel);
index b0a5a0dff81da791c368199d6179df193d2c412b..5ae90fb7199ccb41f076775e53d3fc3b0152a200 100644 (file)
@@ -69,7 +69,7 @@ int do_bootm_linux(int flag, int argc, char *argv[], bootm_headers_t *images)
                printf("Using machid 0x%x from environment\n", machid);
        }
 
-       show_boot_progress(15);
+       show_boot_progress(BOOTSTAGE_ID_RUN_OS);
 
        debug("## Transferring control to Linux (at address %08lx) ...\n",
               (ulong)theKernel);
index efcfe84ad91729b5d850751eea7b6d4eb0575657..37f162a11eb2b5d5d4a9b466aebda6307ed42fad 100644 (file)
@@ -69,7 +69,7 @@ static void boot_jump_linux(bootm_headers_t *images)
        debug ("## Transferring control to Linux (at address %08lx) ...\n",
                (ulong)kernel);
 
-       show_boot_progress (15);
+       show_boot_progress(BOOTSTAGE_ID_RUN_OS);
 
 #if defined(CONFIG_SYS_INIT_RAM_LOCK) && !defined(CONFIG_E500)
        unlock_ram_in_cache();
index a1de0dc4dfb3bb0d9567482f47267b1379dd3d0e..8cbfb02b1560b766047f4cc071827bdbed1e8461 100644 (file)
@@ -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 */
index 09a5a5183bf9e4e6fa91ab5c79a230f0638be338..9485cfb0f70728fbc33af154597f6a17f0ab0039 100644 (file)
@@ -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
index 935aad240b9e2f0c8a335dd802209d840589a403..b1134e937d18051b4f6f33527048483ab9c9bda9 100644 (file)
@@ -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:
index 439217653e8a44278e5caa5fe27d7cecf4e01f3d..9dffedc9bd106071d4e05cf966c235ff1e75b828 100644 (file)
@@ -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:
index 5a3ec584451bbd502cdce86a69f50a3bf95e8f58..36994b531cdcdeaf1923753c0b4002b9033ac432 100644 (file)
@@ -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);
index edb5d133b727b44a343fc303aa626f1eaaaef5e8..a13c72dcd763305bf83add350e75711ce4ef104f 100644 (file)
@@ -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);
        }
index c09c833980179d502c5182bce17b8f99d80c5bfe..114ab7e45048387cfd92c210f1c9ba468db0be4a 100644 (file)
@@ -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();
 }
 
index 93045841f9e73fed2a5c04b5ceba5e52ce70d697..c78728858799f05473652efd1bab8913ef2f15dc 100644 (file)
@@ -1334,7 +1334,7 @@ static int do_bootm_netbsd(int flag, int argc, char * const argv[],
                "(at address %08lx) ...\n",
                (ulong)loader);
 
-       show_boot_progress(15);
+       show_boot_progress(BOOTSTAGE_ID_RUN_OS);
 
        /*
         * NetBSD Stage-2 Loader Parameters:
@@ -1392,7 +1392,7 @@ static int do_bootm_rtems(int flag, int argc, char * const argv[],
        printf("## Transferring control to RTEMS (at address %08lx) ...\n",
                (ulong)entry_point);
 
-       show_boot_progress(15);
+       show_boot_progress(BOOTSTAGE_ID_RUN_OS);
 
        /*
         * RTEMS Parameters:
@@ -1425,7 +1425,7 @@ static int do_bootm_ose(int flag, int argc, char * const argv[],
        printf("## Transferring control to OSE (at address %08lx) ...\n",
                (ulong)entry_point);
 
-       show_boot_progress(15);
+       show_boot_progress(BOOTSTAGE_ID_RUN_OS);
 
        /*
         * OSE Parameters:
@@ -1506,7 +1506,7 @@ static int do_bootm_integrity(int flag, int argc, char * const argv[],
        printf("## Transferring control to INTEGRITY (at address %08lx) ...\n",
                (ulong)entry_point);
 
-       show_boot_progress(15);
+       show_boot_progress(BOOTSTAGE_ID_RUN_OS);
 
        /*
         * INTEGRITY Parameters: