|
@@ -185,3 +185,73 @@ static struct resource flash_resource = {
|
|
|
.flags = IORESOURCE_MEM,
|
|
|
};
|
|
|
|
|
|
+static struct platform_device flash_device = {
|
|
|
+ .name = "physmap-flash",
|
|
|
+ .id = 0,
|
|
|
+ .dev = {
|
|
|
+ .platform_data = trizeps4_flash_data,
|
|
|
+ },
|
|
|
+ .resource = &flash_resource,
|
|
|
+ .num_resources = 1,
|
|
|
+};
|
|
|
+
|
|
|
+/****************************************************************************
|
|
|
+ * DAVICOM DM9000 Ethernet
|
|
|
+ ****************************************************************************/
|
|
|
+static struct resource dm9000_resources[] = {
|
|
|
+ [0] = {
|
|
|
+ .start = TRIZEPS4_ETH_PHYS+0x300,
|
|
|
+ .end = TRIZEPS4_ETH_PHYS+0x400-1,
|
|
|
+ .flags = IORESOURCE_MEM,
|
|
|
+ },
|
|
|
+ [1] = {
|
|
|
+ .start = TRIZEPS4_ETH_PHYS+0x8300,
|
|
|
+ .end = TRIZEPS4_ETH_PHYS+0x8400-1,
|
|
|
+ .flags = IORESOURCE_MEM,
|
|
|
+ },
|
|
|
+ [2] = {
|
|
|
+ .start = TRIZEPS4_ETH_IRQ,
|
|
|
+ .end = TRIZEPS4_ETH_IRQ,
|
|
|
+ .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHEDGE,
|
|
|
+ },
|
|
|
+};
|
|
|
+
|
|
|
+static struct dm9000_plat_data tri_dm9000_platdata = {
|
|
|
+ .flags = DM9000_PLATF_32BITONLY,
|
|
|
+};
|
|
|
+
|
|
|
+static struct platform_device dm9000_device = {
|
|
|
+ .name = "dm9000",
|
|
|
+ .id = -1,
|
|
|
+ .num_resources = ARRAY_SIZE(dm9000_resources),
|
|
|
+ .resource = dm9000_resources,
|
|
|
+ .dev = {
|
|
|
+ .platform_data = &tri_dm9000_platdata,
|
|
|
+ }
|
|
|
+};
|
|
|
+
|
|
|
+/****************************************************************************
|
|
|
+ * LED's on GPIO pins of PXA
|
|
|
+ ****************************************************************************/
|
|
|
+static struct gpio_led trizeps4_led[] = {
|
|
|
+#ifdef STATUS_LEDS_ON_STUART_PINS
|
|
|
+ {
|
|
|
+ .name = "led0:orange:heartbeat", /* */
|
|
|
+ .default_trigger = "heartbeat",
|
|
|
+ .gpio = GPIO_HEARTBEAT_LED,
|
|
|
+ .active_low = 1,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ .name = "led1:yellow:cpubusy", /* */
|
|
|
+ .default_trigger = "cpu-busy",
|
|
|
+ .gpio = GPIO_SYS_BUSY_LED,
|
|
|
+ .active_low = 1,
|
|
|
+ },
|
|
|
+#endif
|
|
|
+};
|
|
|
+
|
|
|
+static struct gpio_led_platform_data trizeps4_led_data = {
|
|
|
+ .leds = trizeps4_led,
|
|
|
+ .num_leds = ARRAY_SIZE(trizeps4_led),
|
|
|
+};
|
|
|
+
|