summaryrefslogtreecommitdiff
path: root/cpu
diff options
context:
space:
mode:
authorTerry Lv <r65388@freescale.com>2011-05-12 19:29:06 +0800
committerTerry Lv <r65388@freescale.com>2011-05-20 13:29:51 +0800
commitb495365cdba6f1ddf762e67f2bb4b6693c1f24d2 (patch)
treecacd7c8395ea754cba2cc17dfbacead85826fe59 /cpu
parentecea7efd8a1683f68ad56ac420987a44dbae5c4d (diff)
downloadu-boot-imx-b495365cdba6f1ddf762e67f2bb4b6693c1f24d2.zip
u-boot-imx-b495365cdba6f1ddf762e67f2bb4b6693c1f24d2.tar.gz
u-boot-imx-b495365cdba6f1ddf762e67f2bb4b6693c1f24d2.tar.bz2
ENGR00143298: Reinit uart after using clk command
For clk command always make console output mess characters, here we reinitilize it after clock is changed. Signed-off-by: Terry Lv <r65388@freescale.com>
Diffstat (limited to 'cpu')
-rw-r--r--cpu/arm_cortexa8/mx51/generic.c3
-rw-r--r--cpu/arm_cortexa8/mx53/generic.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/cpu/arm_cortexa8/mx51/generic.c b/cpu/arm_cortexa8/mx51/generic.c
index 2a1c430..b116922 100644
--- a/cpu/arm_cortexa8/mx51/generic.c
+++ b/cpu/arm_cortexa8/mx51/generic.c
@@ -956,6 +956,9 @@ int clk_config(u32 ref, u32 freq, u32 clk_type)
printf("Unsupported or invalid clock type! :(\n");
}
+ serial_init();
+ printf("Serial reinitilized!\n");
+
return 0;
}
#endif
diff --git a/cpu/arm_cortexa8/mx53/generic.c b/cpu/arm_cortexa8/mx53/generic.c
index 23a2640..1357462 100644
--- a/cpu/arm_cortexa8/mx53/generic.c
+++ b/cpu/arm_cortexa8/mx53/generic.c
@@ -987,6 +987,9 @@ int clk_config(u32 ref, u32 freq, u32 clk_type)
printf("Unsupported or invalid clock type! :(\n");
}
+ serial_init();
+ printf("Serial reinitilized!\n");
+
return 0;
}
#endif