diff options
author | Masahiro Yamada <yamada.m@jp.panasonic.com> | 2014-04-04 20:09:58 +0900 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-05-12 15:19:45 -0400 |
commit | 8e2615752ee6d5daf8ce2e1e599a0512750f24b9 (patch) | |
tree | 41ee1ead95b1cafc60195a05e916c9398743d72e /drivers/serial/serial.c | |
parent | 3e41c54ad8099951d57c3c5a0f5ebc6e8becf70c (diff) | |
download | u-boot-imx-8e2615752ee6d5daf8ce2e1e599a0512750f24b9.zip u-boot-imx-8e2615752ee6d5daf8ce2e1e599a0512750f24b9.tar.gz u-boot-imx-8e2615752ee6d5daf8ce2e1e599a0512750f24b9.tar.bz2 |
bd_info: remove bi_barudrate member from struct bd_info
gd->bd->bi_baudrate is a copy of gd->baudrate.
Since baudrate is a common feature for all architectures,
keep gd->baudrate only.
It is true that bi_baudrate was passed to the kernel in that structure
but it was a long time ago.
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Cc: Tom Rini <trini@ti.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Heiko Schocher <hs@denx.de>
Acked-by: Michal Simek <monstr@monstr.eu> (For microblaze)
Diffstat (limited to 'drivers/serial/serial.c')
-rw-r--r-- | drivers/serial/serial.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/serial/serial.c b/drivers/serial/serial.c index c4fb59c..fd61a5e 100644 --- a/drivers/serial/serial.c +++ b/drivers/serial/serial.c @@ -74,9 +74,6 @@ static int on_baudrate(const char *name, const char *value, enum env_op op, } gd->baudrate = baudrate; -#if defined(CONFIG_PPC) || defined(CONFIG_MCF52x2) - gd->bd->bi_baudrate = baudrate; -#endif serial_setbrg(); @@ -502,12 +499,11 @@ int uart_post_test(int flags) unsigned char c; int ret, saved_baud, b; struct serial_device *saved_dev, *s; - bd_t *bd = gd->bd; /* Save current serial state */ ret = 0; saved_dev = serial_current; - saved_baud = bd->bi_baudrate; + saved_baud = gd->baudrate; for (s = serial_devices; s; s = s->next) { /* If this driver doesn't support loop back, skip it */ @@ -530,7 +526,7 @@ int uart_post_test(int flags) /* Test every available baud rate */ for (b = 0; b < ARRAY_SIZE(bauds); ++b) { - bd->bi_baudrate = bauds[b]; + gd->baudrate = bauds[b]; serial_setbrg(); /* @@ -572,7 +568,7 @@ int uart_post_test(int flags) done: /* Restore previous serial state */ serial_current = saved_dev; - bd->bi_baudrate = saved_baud; + gd->baudrate = saved_baud; serial_reinit_all(); serial_setbrg(); |