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 easy50812_partitions
[] =
44 static struct physmap_flash_data easy50812_flash_data
= {
45 #ifdef CONFIG_MTD_PARTITIONS
46 .nr_parts
= ARRAY_SIZE(easy50812_partitions
),
47 .parts
= easy50812_partitions
,
51 static struct gpio_led easy50812_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_mtd(&easy50812_flash_data
);
65 ifxmips_register_leds(easy50812_leds
, ARRAY_SIZE(easy50812_leds
));
67 ifxmips_register_wdt();
69 ar9_register_ethernet(ifxmips_ethaddr
);
74 MIPS_MACHINE(IFXMIPS_MACH_EASY50812
,
76 "Lantiq AR9 Eval Board",