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 easy4010_partitions
[] =
45 static struct physmap_flash_data easy4010_flash_data
= {
46 #ifdef CONFIG_MTD_PARTITIONS
47 .nr_parts
= ARRAY_SIZE(easy4010_partitions
),
48 .parts
= easy4010_partitions
,
52 static struct gpio_led easy4010_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();
64 ifxmips_register_mtd(&easy4010_flash_data
);
66 ifxmips_register_leds(easy4010_leds
, ARRAY_SIZE(easy4010_leds
));
68 ifxmips_register_wdt();
70 danube_register_ethernet(ifxmips_ethaddr
, REV_MII_MODE
);
72 danube_register_usb();
75 MIPS_MACHINE(IFXMIPS_MACH_EASY4010
,
77 "Lantiq Twinpass Eval Board",