1 #include <linux/init.h>
2 #include <linux/platform_device.h>
3 #include <linux/leds.h>
4 #include <linux/gpio.h>
5 #include <linux/gpio_buttons.h>
6 #include <linux/mtd/mtd.h>
7 #include <linux/mtd/partitions.h>
8 #include <linux/mtd/physmap.h>
9 #include <linux/input.h>
13 #include <ifxmips_prom.h>
17 extern unsigned char ifxmips_ethaddr
[6];
19 #ifdef CONFIG_MTD_PARTITIONS
20 static struct mtd_partition easy50712_partitions
[] =
45 static struct physmap_flash_data easy50712_flash_data
= {
46 #ifdef CONFIG_MTD_PARTITIONS
47 .nr_parts
= ARRAY_SIZE(easy50712_partitions
),
48 .parts
= easy50712_partitions
,
52 static struct gpio_led easy50712_leds
[] = {
53 { .name
= "ifx:green:test0", .gpio
= 0,},
54 { .name
= "ifx:green:test1", .gpio
= 1,},
55 { .name
= "ifx:green:test2", .gpio
= 2,},
56 { .name
= "ifx:green:test3", .gpio
= 3,},
62 ifxmips_register_gpio();
63 ifxmips_register_mtd(&easy50712_flash_data
);
64 ifxmips_register_leds(easy50712_leds
, ARRAY_SIZE(easy50712_leds
));
65 ifxmips_register_wdt();
66 danube_register_ethernet(ifxmips_ethaddr
, REV_MII_MODE
);
69 MIPS_MACHINE(IFXMIPS_MACH_EASY50712
,