-#define WP543_BUTTONS_POLL_INTERVAL 20
-
-#ifdef CONFIG_MTD_PARTITIONS
-static struct mtd_partition wp543_partitions[] = {
- {
- .name = "myloader",
- .offset = 0,
- .size = 0x20000,
- .mask_flags = MTD_WRITEABLE,
- } , {
- .name = "kernel",
- .offset = 0x30000,
- .size = 0xd0000,
- } , {
- .name = "rootfs",
- .offset = 0x100000,
- .size = 0x100000,
- }
-};
-#endif /* CONFIG_MTD_PARTITIONS */
-
-static struct flash_platform_data wp543_flash_data = {
-#ifdef CONFIG_MTD_PARTITIONS
- .parts = wp543_partitions,
- .nr_parts = ARRAY_SIZE(wp543_partitions),
-#endif
-};
-
-static struct spi_board_info wp543_spi_info[] = {
- {
- .bus_num = 0,
- .chip_select = 0,
- .max_speed_hz = 25000000,
- .modalias = "m25p80",
- .platform_data = &wp543_flash_data,
- }
-};
-
-static struct ar71xx_pci_irq wp543_pci_irqs[] __initdata = {
- {
- .slot = 1,
- .pin = 1,
- .irq = AR71XX_PCI_IRQ_DEV0,
- }, {
- .slot = 1,
- .pin = 2,
- .irq = AR71XX_PCI_IRQ_DEV1,
- }
-};
+#define WP543_KEYS_POLL_INTERVAL 20 /* msecs */
+#define WP543_KEYS_DEBOUNCE_INTERVAL (3 * WP543_KEYS_POLL_INTERVAL)