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>
12 #include <ifxmips_prom.h>
16 extern unsigned char ifxmips_ethaddr
[6];
18 #ifdef CONFIG_MTD_PARTITIONS
19 static struct mtd_partition easy4010_partitions
[] =
44 static struct physmap_flash_data easy4010_flash_data
= {
45 #ifdef CONFIG_MTD_PARTITIONS
46 .nr_parts
= ARRAY_SIZE(easy4010_partitions
),
47 .parts
= easy4010_partitions
,
51 static struct gpio_led easy4010_leds
[] = {
52 { .name
= "ifx:green:test0", .gpio
= 0,},
53 { .name
= "ifx:green:test1", .gpio
= 1,},
54 { .name
= "ifx:green:test2", .gpio
= 2,},
55 { .name
= "ifx:green:test3", .gpio
= 3,},
61 ifxmips_register_gpio();
63 ifxmips_register_gpio_dev();
65 ifxmips_register_mtd(&easy4010_flash_data
);
67 ifxmips_register_leds(easy4010_leds
, ARRAY_SIZE(easy4010_leds
));
69 ifxmips_register_wdt();
71 danube_register_ethernet(ifxmips_ethaddr
);
73 danube_register_usb();
76 MIPS_MACHINE(IFXMIPS_MACH_EASY4010
,
78 "Lantiq Twinpass Eval Board",