2 * Virtex-II Pro & Virtex-4 FX common infrastructure
4 * Maintainer: Grant Likely <grant.likely@secretlab.ca>
6 * Copyright 2005 Secret Lab Technologies Ltd.
7 * Copyright 2005 General Dynamics Canada Ltd.
8 * Copyright 2005 Freescale Semiconductor Inc.
10 * This program is free software; you can redistribute it and/or modify it
11 * under the terms of the GNU General Public License as published by the
12 * Free Software Foundation; either version 2 of the License, or (at your
13 * option) any later version.
16 #include <linux/init.h>
17 #include <linux/module.h>
18 #include <linux/device.h>
19 #include <linux/serial_8250.h>
20 #include <asm/ppc_sys.h>
21 #include <platforms/4xx/virtex.h>
22 #include <platforms/4xx/xparameters/xparameters.h>
24 #define XPAR_UART(num) { \
25 .mapbase = XPAR_UARTNS550_##num##_BASEADDR + 3, \
26 .irq = XPAR_INTC_0_UARTNS550_##num##_VEC_ID, \
28 .uartclk = XPAR_UARTNS550_##num##_CLOCK_FREQ_HZ, \
29 .flags = UPF_BOOT_AUTOCONF, \
33 struct plat_serial8250_port serial_platform_data[] = {
34 #ifdef XPAR_UARTNS550_0_BASEADDR
37 #ifdef XPAR_UARTNS550_1_BASEADDR
40 #ifdef XPAR_UARTNS550_2_BASEADDR
43 #ifdef XPAR_UARTNS550_3_BASEADDR
46 { }, /* terminated by empty record */
49 struct platform_device ppc_sys_platform_devices[] = {
53 .dev.platform_data = serial_platform_data,