* [PATCH] of_serial : set custom divisor computed from device tree values
@ 2007-01-26 17:22 Jens Osterkamp
0 siblings, 0 replies; only message in thread
From: Jens Osterkamp @ 2007-01-26 17:22 UTC (permalink / raw)
To: Arnd Bergmann; +Cc: linuxppc-dev, cbe-oss-dev
Small fix to Arnds of_serial driver which computes the custom divisor
from the device tree values.
Signed-off-by: Jens Osterkamp <jens@de.ibm.com>
Index: linux-2.6.20-rc5/drivers/serial/of_serial.c
===================================================================
--- linux-2.6.20-rc5.orig/drivers/serial/of_serial.c
+++ linux-2.6.20-rc5/drivers/serial/of_serial.c
@@ -50,9 +50,8 @@ static int __devinit of_platform_serial_
port->uartclk = *clk;
port->flags = UPF_SHARE_IRQ | UPF_BOOT_AUTOCONF | UPF_IOREMAP;
port->dev = &ofdev->dev;
-/* if (spd) // FIXME: how to set?
- port->speed = spd;
-*/
+ port->custom_divisor = *clk / (16 * (*spd));
+
return 0;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-01-26 17:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-26 17:22 [PATCH] of_serial : set custom divisor computed from device tree values Jens Osterkamp
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.