From: Bartlomiej Sieka <tur@semihalf.com>
Date: Tue, 19 Dec 2006 23:29:43 +0000 (+0100)
Subject: Fix to make the baudrate changes immediate for the MCF52x2 family.
X-Git-Tag: v2025.01-rc5-pxa1908~22892
X-Git-Url: http://git.dujemihanovic.xyz/html/index.html?a=commitdiff_plain;h=c84bad0ef60e7055ab0bd49b93069509cecc382a;p=u-boot.git

Fix to make the baudrate changes immediate for the MCF52x2 family.
---

diff --git a/common/cmd_nvedit.c b/common/cmd_nvedit.c
index d3f50f87f3..9834ba65b7 100644
--- a/common/cmd_nvedit.c
+++ b/common/cmd_nvedit.c
@@ -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