Blackfin: dynamically update UART speed when initializing
authorMike Frysinger <vapier@gentoo.org>
Wed, 10 Dec 2008 17:33:54 +0000 (12:33 -0500)
committerMike Frysinger <vapier@gentoo.org>
Fri, 6 Feb 2009 02:25:35 +0000 (21:25 -0500)
commitf790ef6ff12381cb0e43de54fb2b0f1204ad8ed6
treed3ed348b909eb996a03f1d5d00c29aeb11f1f09d
parent97f265f14f23050f3cb997f617f3a6917b843ea2
Blackfin: dynamically update UART speed when initializing

Previously, booting over the UART required the baud rate to be known ahead
of time.  Using a bit of tricky simple math, we can calculate the new board
rate based on the old divisors.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Robin Getz <rgetz@blackfin.uclinux.org>
cpu/blackfin/initcode.c
cpu/blackfin/serial.h