summaryrefslogtreecommitdiff
path: root/hw/omap1.c
diff options
context:
space:
mode:
authoraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2008-05-04 21:42:11 +0000
committeraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2008-05-04 21:42:11 +0000
commitb6cd0ea1205dd4623ccfe796ee6c1a4da3141d99 (patch)
tree605d7f0c534aeeeb2d8f077593638db7dc34c149 /hw/omap1.c
parent6936bfe514bbac7af4b24fad9ed9688b78b5be69 (diff)
downloadqemu-b6cd0ea1205dd4623ccfe796ee6c1a4da3141d99.tar.gz
qemu-b6cd0ea1205dd4623ccfe796ee6c1a4da3141d99.tar.bz2
qemu-b6cd0ea1205dd4623ccfe796ee6c1a4da3141d99.zip
8250: Customized base baudrate
(Jan Kiszka) git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4336 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/omap1.c')
-rw-r--r--hw/omap1.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/omap1.c b/hw/omap1.c
index b9176b3a45..f7f2b485c5 100644
--- a/hw/omap1.c
+++ b/hw/omap1.c
@@ -2006,7 +2006,8 @@ struct omap_uart_s *omap_uart_init(target_phys_addr_t base,
struct omap_uart_s *s = (struct omap_uart_s *)
qemu_mallocz(sizeof(struct omap_uart_s));
- s->serial = serial_mm_init(base, 2, irq, chr ?: qemu_chr_open("null"), 1);
+ s->serial = serial_mm_init(base, 2, irq, omap_clk_getrate(fclk)/16,
+ chr ?: qemu_chr_open("null"), 1);
return s;
}