projects
/
librecmc
/
librecmc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ar71xx: move gpio-buttons support into a spearate file
[librecmc/librecmc.git]
/
target
/
linux
/
ar71xx
/
files
/
arch
/
mips
/
ar71xx
/
mach-ap83.c
diff --git
a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-ap83.c
b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-ap83.c
index a9bb2bfe1d24e4843b767bb906cccfd3d2c58c2f..93072a36015c1fef51eb146ebefdfe86b84d8084 100644
(file)
--- a/
target/linux/ar71xx/files/arch/mips/ar71xx/mach-ap83.c
+++ b/
target/linux/ar71xx/files/arch/mips/ar71xx/mach-ap83.c
@@
-11,7
+11,6
@@
#include <linux/delay.h>
#include <linux/platform_device.h>
#include <linux/delay.h>
#include <linux/platform_device.h>
-#include <linux/input.h>
#include <linux/mtd/mtd.h>
#include <linux/mtd/partitions.h>
#include <linux/spi/spi.h>
#include <linux/mtd/mtd.h>
#include <linux/mtd/partitions.h>
#include <linux/spi/spi.h>
@@
-24,6
+23,7
@@
#include "devices.h"
#include "dev-ar913x-wmac.h"
#include "devices.h"
#include "dev-ar913x-wmac.h"
+#include "dev-gpio-buttons.h"
#include "dev-leds-gpio.h"
#define AP83_GPIO_LED_WLAN 6
#include "dev-leds-gpio.h"
#define AP83_GPIO_LED_WLAN 6
@@
-37,6
+37,8
@@
#define AP83_050_GPIO_VSC7385_MOSI 16
#define AP83_050_GPIO_VSC7385_SCK 17
#define AP83_050_GPIO_VSC7385_MOSI 16
#define AP83_050_GPIO_VSC7385_SCK 17
+#define AP83_BUTTONS_POLL_INTERVAL 20
+
#ifdef CONFIG_MTD_PARTITIONS
static struct mtd_partition ap83_flash_partitions[] = {
{
#ifdef CONFIG_MTD_PARTITIONS
static struct mtd_partition ap83_flash_partitions[] = {
{
@@
-214,7
+216,8
@@
static void __init ap83_generic_setup(void)
ar71xx_add_device_leds_gpio(-1, ARRAY_SIZE(ap83_leds_gpio),
ap83_leds_gpio);
ar71xx_add_device_leds_gpio(-1, ARRAY_SIZE(ap83_leds_gpio),
ap83_leds_gpio);
- ar71xx_add_device_gpio_buttons(-1, 20, ARRAY_SIZE(ap83_gpio_buttons),
+ ar71xx_add_device_gpio_buttons(-1, AP83_BUTTONS_POLL_INTERVAL,
+ ARRAY_SIZE(ap83_gpio_buttons),
ap83_gpio_buttons);
ar71xx_add_device_usb();
ap83_gpio_buttons);
ar71xx_add_device_usb();