|
@@ -189,6 +189,7 @@ void __init platform_calibrate_ccount(void)
|
|
|
#include <linux/serial_8250.h>
|
|
#include <linux/serial_8250.h>
|
|
|
#include <linux/if.h>
|
|
#include <linux/if.h>
|
|
|
#include <net/ethoc.h>
|
|
#include <net/ethoc.h>
|
|
|
|
|
+#include <linux/usb/c67x00.h>
|
|
|
|
|
|
|
|
/*----------------------------------------------------------------------------
|
|
/*----------------------------------------------------------------------------
|
|
|
* Ethernet -- OpenCores Ethernet MAC (ethoc driver)
|
|
* Ethernet -- OpenCores Ethernet MAC (ethoc driver)
|
|
@@ -232,6 +233,38 @@ static struct platform_device ethoc_device = {
|
|
|
},
|
|
},
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
+/*----------------------------------------------------------------------------
|
|
|
|
|
+ * USB Host/Device -- Cypress CY7C67300
|
|
|
|
|
+ */
|
|
|
|
|
+
|
|
|
|
|
+static struct resource c67x00_res[] = {
|
|
|
|
|
+ [0] = { /* register space */
|
|
|
|
|
+ .start = C67X00_PADDR,
|
|
|
|
|
+ .end = C67X00_PADDR + C67X00_SIZE - 1,
|
|
|
|
|
+ .flags = IORESOURCE_MEM,
|
|
|
|
|
+ },
|
|
|
|
|
+ [1] = { /* IRQ number */
|
|
|
|
|
+ .start = C67X00_IRQ,
|
|
|
|
|
+ .end = C67X00_IRQ,
|
|
|
|
|
+ .flags = IORESOURCE_IRQ,
|
|
|
|
|
+ },
|
|
|
|
|
+};
|
|
|
|
|
+
|
|
|
|
|
+static struct c67x00_platform_data c67x00_pdata = {
|
|
|
|
|
+ .sie_config = C67X00_SIE1_HOST | C67X00_SIE2_UNUSED,
|
|
|
|
|
+ .hpi_regstep = 4,
|
|
|
|
|
+};
|
|
|
|
|
+
|
|
|
|
|
+static struct platform_device c67x00_device = {
|
|
|
|
|
+ .name = "c67x00",
|
|
|
|
|
+ .id = -1,
|
|
|
|
|
+ .num_resources = ARRAY_SIZE(c67x00_res),
|
|
|
|
|
+ .resource = c67x00_res,
|
|
|
|
|
+ .dev = {
|
|
|
|
|
+ .platform_data = &c67x00_pdata,
|
|
|
|
|
+ },
|
|
|
|
|
+};
|
|
|
|
|
+
|
|
|
/*----------------------------------------------------------------------------
|
|
/*----------------------------------------------------------------------------
|
|
|
* UART
|
|
* UART
|
|
|
*/
|
|
*/
|
|
@@ -268,6 +301,7 @@ static struct platform_device xtavnet_uart = {
|
|
|
/* platform devices */
|
|
/* platform devices */
|
|
|
static struct platform_device *platform_devices[] __initdata = {
|
|
static struct platform_device *platform_devices[] __initdata = {
|
|
|
ðoc_device,
|
|
ðoc_device,
|
|
|
|
|
+ &c67x00_device,
|
|
|
&xtavnet_uart,
|
|
&xtavnet_uart,
|
|
|
};
|
|
};
|
|
|
|
|
|