diff options
author | Sven Eckelmann <sven.eckelmann@open-mesh.com> | 2016-09-23 09:36:10 +0200 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2017-02-14 12:18:05 +0100 |
commit | 5e61a8331d53e7119ab1e616808476f585220a6d (patch) | |
tree | 35e8e0f16829dbbf3adcaa9225fa127290dafe4e /target/linux/ar71xx/files/arch/mips/ath79/mach-a60.c | |
parent | 5e50adeed3285a77022cde4daf335b39aa632782 (diff) | |
download | mtk-20170518-5e61a8331d53e7119ab1e616808476f585220a6d.zip mtk-20170518-5e61a8331d53e7119ab1e616808476f585220a6d.tar.gz mtk-20170518-5e61a8331d53e7119ab1e616808476f585220a6d.tar.bz2 |
ar71xx: add kernel support for the OpenMesh A40 board
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
Diffstat (limited to 'target/linux/ar71xx/files/arch/mips/ath79/mach-a60.c')
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/ath79/mach-a60.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-a60.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-a60.c index 73fba1e..2f0a75f 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/mach-a60.c +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-a60.c @@ -40,6 +40,19 @@ #define A60_WMAC_CALDATA_OFFSET 0x1000 +static struct gpio_led a40_leds_gpio[] __initdata = { + { + .name = "a40:red:status", + .gpio = A60_GPIO_LED_RED, + }, { + .name = "a40:green:status", + .gpio = A60_GPIO_LED_GREEN, + }, { + .name = "a40:blue:status", + .gpio = A60_GPIO_LED_BLUE, + } +}; + static struct gpio_led a60_leds_gpio[] __initdata = { { .name = "a60:red:status", @@ -151,6 +164,14 @@ static void __init a60_setup_common(void) ath79_register_pci(); } +static void __init a40_setup(void) +{ + ath79_register_leds_gpio(-1, ARRAY_SIZE(a40_leds_gpio), a40_leds_gpio); + a60_setup_common(); +} + +MIPS_MACHINE(ATH79_MACH_A40, "A40", "OpenMesh A40", a40_setup); + static void __init a60_setup(void) { ath79_register_leds_gpio(-1, ARRAY_SIZE(a60_leds_gpio), a60_leds_gpio); |