]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - board/netphone/netphone.c
* Modify KUP4X board configuration to use SL811 driver for USB memory
[people/ms/u-boot.git] / board / netphone / netphone.c
index 91943c97deabee69a7ab23a8eef67678d14c5fc7..698115a319154296f5c7cdc968d88da44b3c230e 100644 (file)
@@ -30,6 +30,7 @@
 #include <common.h>
 #include <miiphy.h>
 #include <sed156x.h>
+#include <status_led.h>
 
 #include "mpc8xx.h"
 
@@ -659,6 +660,7 @@ int overwrite_console(void)
 
 extern int drv_phone_init(void);
 extern int drv_phone_use_me(void);
+extern int drv_phone_is_idle(void);
 
 int misc_init_r(void)
 {
@@ -691,6 +693,12 @@ int last_stage_init(void)
                do_poll();
 
                if (drv_phone_use_me()) {
+                       status_led_set(0, STATUS_LED_ON);
+                       while (!drv_phone_is_idle()) {
+                               do_poll();
+                               udelay(1000000 / CFG_HZ);
+                       }
+
                        console_assign(stdin, "phone");
                        console_assign(stdout, "phone");
                        console_assign(stderr, "phone");