--- arch/ppc/syslib/virtex_devices.c.old 2008-04-24 11:37:03.000000000 -0400 +++ arch/ppc/syslib/virtex_devices.c 2008-04-24 11:10:09.000000000 -0400 @@ -18,6 +18,7 @@ #include #include #include +#include #include /* @@ -320,6 +321,31 @@ }, \ } +/* + * Cypress USB C67x00 shortcut macro for single instance + */ +#define XPAR_C67x00_USB(num) { \ + .name = "c67x00", \ + .id = num, \ + .num_resources = 2, \ + .resource = (struct resource[]) { \ + { \ + .start = XPAR_CYPRESS_USB_PRH0_BASEADDR, \ + .end = XPAR_CYPRESS_USB_PRH0_BASEADDR + 0xf, \ + .flags = IORESOURCE_MEM, \ + }, \ + { \ + .start = XPAR_XPS_INTC_0_SYSTEM_USB_INT_PIN_INTR, \ + .end = XPAR_XPS_INTC_0_SYSTEM_USB_INT_PIN_INTR, \ + .flags = IORESOURCE_IRQ, \ + }, \ + }, \ + .dev.platform_data = &(struct c67x00_platform_data) { \ + .sie_config = C67X00_SIE1_HOST | C67X00_SIE2_PERIPHERAL, \ + .hpi_regstep = 0x02, /* A0 not connected on 16bit bus */ \ + }, \ +} + /* UART 8250 driver platform data table */ struct plat_serial8250_port virtex_serial_platform_data[] = { #if defined(XPAR_UARTNS550_0_BASEADDR) @@ -511,6 +537,13 @@ #if defined(XPAR_OPB_AC97_CONTROLLER_REF_1_BASEADDR) XPAR_AC97_CONTROLLER_REFERENCE(1), #endif + +#if defined(XPAR_CYPRESS_USB_PRH0_BASEADDR) + XPAR_C67x00_USB(0), +#endif +#if defined(XPAR_CYPRESS_USB_PRH1_BASEADDR) + XPAR_C67x00_USB(1), +#endif }; /* Early serial support functions */