summaryrefslogtreecommitdiff
path: root/arch/mips/lib/bootm.c
diff options
context:
space:
mode:
authorTom Rini <trini@ti.com>2013-12-02 08:44:28 -0500
committerTom Rini <trini@ti.com>2013-12-02 08:44:28 -0500
commit19210ae9838a867ce0243c41eafe928317c15b10 (patch)
treeba804ff91483eb762f7138d163bef14385ae3b9e /arch/mips/lib/bootm.c
parente40acc0a59319f9f3f0aba6ef10abd2dbf096ae1 (diff)
parent67d4752d1dae768c7ff381272880d4aceeb62085 (diff)
downloadu-boot-imx-19210ae9838a867ce0243c41eafe928317c15b10.zip
u-boot-imx-19210ae9838a867ce0243c41eafe928317c15b10.tar.gz
u-boot-imx-19210ae9838a867ce0243c41eafe928317c15b10.tar.bz2
Merge branch 'master' of git://git.denx.de/u-boot-mips
Diffstat (limited to 'arch/mips/lib/bootm.c')
-rw-r--r--arch/mips/lib/bootm.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/mips/lib/bootm.c b/arch/mips/lib/bootm.c
index 1febf29..71bb0d2 100644
--- a/arch/mips/lib/bootm.c
+++ b/arch/mips/lib/bootm.c
@@ -196,8 +196,10 @@ static void boot_prep_linux(bootm_headers_t *images)
if (cp)
linux_env_set("eth1addr", cp);
- if (mips_boot_malta)
- linux_env_set("modetty0", "38400n8r");
+ if (mips_boot_malta) {
+ sprintf(env_buf, "%un8r", gd->baudrate);
+ linux_env_set("modetty0", env_buf);
+ }
}
static void boot_jump_linux(bootm_headers_t *images)