Fix to make the baudrate changes immediate for the MCF52x2 family.
authorBartlomiej Sieka <tur@semihalf.com>
Tue, 19 Dec 2006 23:29:43 +0000 (00:29 +0100)
committerBartlomiej Sieka <tur@semihalf.com>
Tue, 19 Dec 2006 23:29:43 +0000 (00:29 +0100)
common/cmd_nvedit.c

index d3f50f8..9834ba6 100644 (file)
@@ -248,7 +248,7 @@ int _do_setenv (int flag, int argc, char *argv[])
                                baudrate);
                        udelay(50000);
                        gd->baudrate = baudrate;
-#ifdef CONFIG_PPC
+#if defined(CONFIG_PPC) || defined(CONFIG_MCF52x2)
                        gd->bd->bi_baudrate = baudrate;
 #endif