Root/target/linux/ar71xx/patches-3.2/024-MIPS-ath79-Register-the-wireless-MAC-device-on-the-A.patch

1From 7091af5ca0aad47826a4e3f699a7985e2d8aa886 Mon Sep 17 00:00:00 2001
2From: Gabor Juhos <juhosg@openwrt.org>
3Date: Fri, 18 Nov 2011 00:17:54 +0000
4Subject: [PATCH 24/27] MIPS: ath79: Register the wireless MAC device on the AP121 board
5
6Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
7Cc: Imre Kaloz <kaloz@openwrt.org>
8Cc: linux-mips@linux-mips.org
9Patchwork: https://patchwork.linux-mips.org/patch/3032/
10Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
11---
12 arch/mips/ath79/mach-ap121.c | 4 ++++
13 1 files changed, 4 insertions(+), 0 deletions(-)
14
15--- a/arch/mips/ath79/mach-ap121.c
16+++ b/arch/mips/ath79/mach-ap121.c
17@@ -13,6 +13,7 @@
18 #include "dev-leds-gpio.h"
19 #include "dev-spi.h"
20 #include "dev-usb.h"
21+#include "dev-ar913x-wmac.h"
22 
23 #define AP121_GPIO_LED_WLAN 0
24 #define AP121_GPIO_LED_USB 1
25@@ -73,6 +74,8 @@ static struct ath79_spi_platform_data ap
26 
27 static void __init ap121_setup(void)
28 {
29+ u8 *cal_data = (u8 *) KSEG1ADDR(AP121_CAL_DATA_ADDR);
30+
31     ath79_register_leds_gpio(-1, ARRAY_SIZE(ap121_leds_gpio),
32                  ap121_leds_gpio);
33     ath79_register_gpio_keys_polled(-1, AP121_KEYS_POLL_INTERVAL,
34@@ -82,6 +85,7 @@ static void __init ap121_setup(void)
35     ath79_register_spi(&ap121_spi_data, ap121_spi_info,
36                ARRAY_SIZE(ap121_spi_info));
37     ath79_register_usb();
38+ ath79_register_wmac(cal_data);
39 }
40 
41 MIPS_MACHINE(ATH79_MACH_AP121, "AP121", "Atheros AP121 reference board",
42

Archive Download this file



interactive