X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=arch%2Farm%2Fmach-epxa10db%2Farch.c;h=1b40340e8a21db7bffa878d1c5ebf35fa665c56f;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=ae9f7c864b45aad3259bee8da594a9d5d77e1f28;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/arch/arm/mach-epxa10db/arch.c b/arch/arm/mach-epxa10db/arch.c index ae9f7c864..1b40340e8 100644 --- a/arch/arm/mach-epxa10db/arch.c +++ b/arch/arm/mach-epxa10db/arch.c @@ -20,6 +20,7 @@ */ #include #include +#include #include #include @@ -27,15 +28,45 @@ #include +static struct plat_serial8250_port serial_platform_data[] = { + { + .iobase = 0x3f8, + .irq = IRQ_UARTINT0, +#error FIXME + .uartclk = 0, + .regshift = 0, + .iotype = UPIO_PORT, + .flags = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST, + }, + { + .iobase = 0x2f8, + .irq = IRQ_UARTINT1, +#error FIXME + .uartclk = 0, + .regshift = 0, + .iotype = UPIO_PORT, + .flags = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST, + }, + { }, +}; + +static struct platform_device serial_device = { + .name = "serial8250", + .id = 0, + .dev = { + .platform_data = serial_platform_data, + }, +}; + extern void epxa10db_map_io(void); extern void epxa10db_init_irq(void); -extern void epxa10db_init_time(void); +extern struct sys_timer epxa10db_timer; MACHINE_START(CAMELOT, "Altera Epxa10db") MAINTAINER("Altera Corporation") BOOT_MEM(0x00000000, 0x7fffc000, 0xffffc000) MAPIO(epxa10db_map_io) INITIRQ(epxa10db_init_irq) - INITTIME(epxa10db_init_time) + .timer = &epxa10db_timer, MACHINE_END