|
@@ -197,3 +197,148 @@ static struct resource isp1362_hcd_resources[] = {
|
|
|
.flags = IORESOURCE_MEM,
|
|
|
}, {
|
|
|
.start = 0x20308004,
|
|
|
+ .end = 0x20308004,
|
|
|
+ .flags = IORESOURCE_MEM,
|
|
|
+ }, {
|
|
|
+ .start = IRQ_PG15,
|
|
|
+ .end = IRQ_PG15,
|
|
|
+ .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_LOWEDGE,
|
|
|
+ },
|
|
|
+};
|
|
|
+
|
|
|
+static struct isp1362_platform_data isp1362_priv = {
|
|
|
+ .sel15Kres = 1,
|
|
|
+ .clknotstop = 0,
|
|
|
+ .oc_enable = 0,
|
|
|
+ .int_act_high = 0,
|
|
|
+ .int_edge_triggered = 0,
|
|
|
+ .remote_wakeup_connected = 0,
|
|
|
+ .no_power_switching = 1,
|
|
|
+ .power_switching_mode = 0,
|
|
|
+};
|
|
|
+
|
|
|
+static struct platform_device isp1362_hcd_device = {
|
|
|
+ .name = "isp1362-hcd",
|
|
|
+ .id = 0,
|
|
|
+ .dev = {
|
|
|
+ .platform_data = &isp1362_priv,
|
|
|
+ },
|
|
|
+ .num_resources = ARRAY_SIZE(isp1362_hcd_resources),
|
|
|
+ .resource = isp1362_hcd_resources,
|
|
|
+};
|
|
|
+#endif
|
|
|
+
|
|
|
+#if defined(CONFIG_USB_NET2272) || defined(CONFIG_USB_NET2272_MODULE)
|
|
|
+static struct resource net2272_bfin_resources[] = {
|
|
|
+ {
|
|
|
+ .start = 0x20300000,
|
|
|
+ .end = 0x20300000 + 0x100,
|
|
|
+ .flags = IORESOURCE_MEM,
|
|
|
+ }, {
|
|
|
+ .start = IRQ_PG13,
|
|
|
+ .end = IRQ_PG13,
|
|
|
+ .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHLEVEL,
|
|
|
+ },
|
|
|
+};
|
|
|
+
|
|
|
+static struct platform_device net2272_bfin_device = {
|
|
|
+ .name = "net2272",
|
|
|
+ .id = -1,
|
|
|
+ .num_resources = ARRAY_SIZE(net2272_bfin_resources),
|
|
|
+ .resource = net2272_bfin_resources,
|
|
|
+};
|
|
|
+#endif
|
|
|
+
|
|
|
+#if defined(CONFIG_MTD_GPIO_ADDR) || defined(CONFIG_MTD_GPIO_ADDR_MODULE)
|
|
|
+static struct mtd_partition cm_partitions[] = {
|
|
|
+ {
|
|
|
+ .name = "bootloader(nor)",
|
|
|
+ .size = 0x40000,
|
|
|
+ .offset = 0,
|
|
|
+ }, {
|
|
|
+ .name = "linux kernel(nor)",
|
|
|
+ .size = 0x100000,
|
|
|
+ .offset = MTDPART_OFS_APPEND,
|
|
|
+ }, {
|
|
|
+ .name = "file system(nor)",
|
|
|
+ .size = MTDPART_SIZ_FULL,
|
|
|
+ .offset = MTDPART_OFS_APPEND,
|
|
|
+ }
|
|
|
+};
|
|
|
+
|
|
|
+static struct physmap_flash_data cm_flash_data = {
|
|
|
+ .width = 2,
|
|
|
+ .parts = cm_partitions,
|
|
|
+ .nr_parts = ARRAY_SIZE(cm_partitions),
|
|
|
+};
|
|
|
+
|
|
|
+static unsigned cm_flash_gpios[] = { GPIO_PF4, GPIO_PF5 };
|
|
|
+
|
|
|
+static struct resource cm_flash_resource[] = {
|
|
|
+ {
|
|
|
+ .name = "cfi_probe",
|
|
|
+ .start = 0x20000000,
|
|
|
+ .end = 0x201fffff,
|
|
|
+ .flags = IORESOURCE_MEM,
|
|
|
+ }, {
|
|
|
+ .start = (unsigned long)cm_flash_gpios,
|
|
|
+ .end = ARRAY_SIZE(cm_flash_gpios),
|
|
|
+ .flags = IORESOURCE_IRQ,
|
|
|
+ }
|
|
|
+};
|
|
|
+
|
|
|
+static struct platform_device cm_flash_device = {
|
|
|
+ .name = "gpio-addr-flash",
|
|
|
+ .id = 0,
|
|
|
+ .dev = {
|
|
|
+ .platform_data = &cm_flash_data,
|
|
|
+ },
|
|
|
+ .num_resources = ARRAY_SIZE(cm_flash_resource),
|
|
|
+ .resource = cm_flash_resource,
|
|
|
+};
|
|
|
+#endif
|
|
|
+
|
|
|
+#if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE)
|
|
|
+#ifdef CONFIG_SERIAL_BFIN_UART0
|
|
|
+static struct resource bfin_uart0_resources[] = {
|
|
|
+ {
|
|
|
+ .start = UART0_THR,
|
|
|
+ .end = UART0_GCTL+2,
|
|
|
+ .flags = IORESOURCE_MEM,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ .start = IRQ_UART0_TX,
|
|
|
+ .end = IRQ_UART0_TX,
|
|
|
+ .flags = IORESOURCE_IRQ,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ .start = IRQ_UART0_RX,
|
|
|
+ .end = IRQ_UART0_RX,
|
|
|
+ .flags = IORESOURCE_IRQ,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ .start = IRQ_UART0_ERROR,
|
|
|
+ .end = IRQ_UART0_ERROR,
|
|
|
+ .flags = IORESOURCE_IRQ,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ .start = CH_UART0_TX,
|
|
|
+ .end = CH_UART0_TX,
|
|
|
+ .flags = IORESOURCE_DMA,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ .start = CH_UART0_RX,
|
|
|
+ .end = CH_UART0_RX,
|
|
|
+ .flags = IORESOURCE_DMA,
|
|
|
+ },
|
|
|
+};
|
|
|
+
|
|
|
+static unsigned short bfin_uart0_peripherals[] = {
|
|
|
+ P_UART0_TX, P_UART0_RX, 0
|
|
|
+};
|
|
|
+
|
|
|
+static struct platform_device bfin_uart0_device = {
|
|
|
+ .name = "bfin-uart",
|
|
|
+ .id = 0,
|
|
|
+ .num_resources = ARRAY_SIZE(bfin_uart0_resources),
|
|
|
+ .resource = bfin_uart0_resources,
|