[MIPS] Fix archhelp.
[firewire-audio.git] / arch / mips / gt64120 / momenco_ocelot / ocelot-platform.c
blob81d9031a5a2ae942fbc5d477cbfd80de4997a3f3
1 /*
2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
4 * for more details.
6 * Copyright (C) 2007 Ralf Baechle (ralf@linux-mips.org)
8 * A NS16552 DUART with a 20MHz crystal.
11 #include <linux/module.h>
12 #include <linux/init.h>
13 #include <linux/serial_8250.h>
15 #define OCELOT_UART_FLAGS (UPF_BOOT_AUTOCONF | UPF_SKIP_TEST | UPF_IOREMAP)
17 static struct plat_serial8250_port uart8250_data[] = {
19 .mapbase = 0xe0001020,
20 .irq = 4,
21 .uartclk = 20000000,
22 .iotype = UPIO_MEM,
23 .flags = OCELOT_UART_FLAGS,
24 .regshift = 2,
26 { },
29 static struct platform_device uart8250_device = {
30 .name = "serial8250",
31 .id = PLAT8250_DEV_PLATFORM,
32 .dev = {
33 .platform_data = uart8250_data,
37 static int __init uart8250_init(void)
39 return platform_device_register(&uart8250_device);
42 module_init(uart8250_init);
44 MODULE_AUTHOR("Ralf Baechle <ralf@linux-mips.org>");
45 MODULE_LICENSE("GPL");
46 MODULE_DESCRIPTION("8250 UART probe driver for the Momenco Ocelot");