ti-compat-wireless: Port ti-compat-wireless recipe.
PATCH 1/1 ti-compat-wireless: Port ti-compat-wireless recipe.
* Port ti-compat-wireless recipe from arago.
* This is a TI specific version of the compat-wireless recipe.
* Ti-compat-wireless provides the necessary wireless drivers for the TI wl12xx Wi-Fi + Bluetooth module.
Signed-off-by Franklin S. Cooper Jr <[email protected]>
--- ...01-compat-wireless-add-pm_runtime_enabled.patch | 36 +++++ .../0001-compat-wireless-exclude-BT-building.patch | 29 ++++ ...wl12xx-Decrease-number-of-RX-transactions.patch | 34 +++++ ...tional-two-members-for-wl12xx_platform_da.patch | 30 +++++ ...xx-detect-between-wl1271-PG-3.0-and-lower.patch | 65 ++++++++++ .../0002-compat-wireless-enable-test-mode.patch | 29 ++++ ...ompat-wireless-enable-uapsd-configuration.patch | 27 ++++ ...wl12xx-Decrease-number-of-TX-transactions.patch | 135 ++++++++++++++++++++ .../files/0004-added-driver-version.patch | 36 +++++ .../ti-compat-wireless-wl12xx_r5_18.bb | 52 ++++++++ 10 files changed, 473 insertions(+), 0 deletions(-) create mode 100644 recipes-bsp/ti-compat-wireless/files/0001-compat-wireless-add-pm_runtime_enabled.patch create mode 100644 recipes-bsp/ti-compat-wireless/files/0001-compat-wireless-exclude-BT-building.patch create mode 100755 recipes-bsp/ti-compat-wireless/files/0001-wl12xx-Decrease-number-of-RX-transactions.patch create mode 100644 recipes-bsp/ti-compat-wireless/files/0001-wl12xx-additional-two-members-for-wl12xx_platform_da.patch create mode 100644 recipes-bsp/ti-compat-wireless/files/0001-wl12xx-detect-between-wl1271-PG-3.0-and-lower.patch create mode 100644 recipes-bsp/ti-compat-wireless/files/0002-compat-wireless-enable-test-mode.patch create mode 100644 recipes-bsp/ti-compat-wireless/files/0002-ti-compat-wireless-enable-uapsd-configuration.patch create mode 100755 recipes-bsp/ti-compat-wireless/files/0002-wl12xx-Decrease-number-of-TX-transactions.patch create mode 100644 recipes-bsp/ti-compat-wireless/files/0004-added-driver-version.patch create mode 100644 recipes-bsp/ti-compat-wireless/ti-compat-wireless-wl12xx_r5_18.bb
recipes-bsp/ti-compat-wireless/files/0001-compat-wireless-add-pm_runtime_enabled.patch new file +36 -0
@@ -0,0 +1,36 @@ +From 0f11fd034274c795d9c506faa83a9fa947ba358a Mon Sep 17 00:00:00 2001 +From: Moosa <[email protected]> +Date: Thu, 3 May 2012 17:37:17 +0300 +Subject: [PATCH] compat-wireless: add pm_runtime_enabled + +* Add pm_runtime definition to header file + +Upstream-Status: Pending + +Signed-off-by: Moosa Baransi <[email protected]> +--- + include/linux/compat-2.6.38.h | 9 +++++++++ + 1 files changed, 9 insertions(+), 0 deletions(-) + +diff --git a/include/linux/compat-2.6.38.h b/include/linux/compat-2.6.38.h +index 63f9dd6..94ee602 100644 +--- a/include/linux/compat-2.6.38.h ++++ b/include/linux/compat-2.6.38.h +@@ -9,6 +9,15 @@ + #include <linux/skbuff.h> + #include <linux/etherdevice.h> + ++#ifdef CONFIG_PM_RUNTIME ++static inline bool pm_runtime_enabled(struct device *dev) ++{ ++ return !dev->power.disable_depth; ++} ++#else ++ static inline bool pm_runtime_enabled(struct device *dev) { return false; } ++#endif ++ + /* rename member in struct mmc_host in include/linux/mmc/host.h */ + #define max_segs max_hw_segs + +-- +1.7.1
recipes-bsp/ti-compat-wireless/files/0001-compat-wireless-exclude-BT-building.patch new file +29 -0
@@ -0,0 +1,29 @@ +From 491bf7e73abf395f2af4a914d972dc7b73af2533 Mon Sep 17 00:00:00 2001 +From: Moosa <[email protected]> +Date: Thu, 24 May 2012 11:53:07 +0300 +Subject: [PATCH 1/2] compat-wireless: exclude BT building + +* Exclude Bluetooth components building from compat-wireless + +Upstream-Status: Pending + +Signed-off-by: Moosa Baransi <[email protected]> +--- + Makefile | 2 -- + 1 files changed, 0 insertions(+), 2 deletions(-) + +diff --git a/Makefile b/Makefile +index a020661..ac75fb0 100644 +--- a/Makefile ++++ b/Makefile +@@ -37,8 +37,6 @@ endif + + endif + +-obj-$(CONFIG_COMPAT_BLUETOOTH) += net/bluetooth/ +-obj-$(CONFIG_COMPAT_BLUETOOTH_MODULES) += drivers/bluetooth/ + + else + +-- +1.7.1
recipes-bsp/ti-compat-wireless/files/0001-wl12xx-Decrease-number-of-RX-transactions.patch new file +34 -0
@@ -0,0 +1,34 @@ +From 5cd7de59a61168b784ea7f51c09e64f847e81c92 Mon Sep 17 00:00:00 2001 +From: Ido Yariv <[email protected]> +Date: Tue, 13 Dec 2011 23:16:01 +0200 +Subject: [PATCH 1/2] wl12xx: Decrease number of RX transactions + +On weak platforms, it is crucial to keep the number of SDIO transactions +to a bare minimum. It is probably more important to keep CPU utilization +low, than to handle FW events asap. + +In order to decrease the number of RX transactions, set the FW to only +wake up the host when it has at least 4 pending packets. In addition, +increase the relevant timeout, so the FW could actually reach this +threshold. +--- + drivers/net/wireless/wl12xx/main.c | 4 ++-- + 1 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/drivers/net/wireless/wl12xx/main.c b/drivers/net/wireless/wl12xx/main.c +index bdb7166..f90b96a 100644 +--- a/drivers/net/wireless/wl12xx/main.c ++++ b/drivers/net/wireless/wl12xx/main.c +@@ -130,8 +130,8 @@ static struct conf_drv_settings default_conf = { + .rts_threshold = IEEE80211_MAX_RTS_THRESHOLD, + .rx_cca_threshold = 0, + .irq_blk_threshold = 0xFFFF, +- .irq_pkt_threshold = 0, +- .irq_timeout = 600, ++ .irq_pkt_threshold = 4, ++ .irq_timeout = 1200, + .queue_type = CONF_RX_QUEUE_TYPE_LOW_PRIORITY, + }, + .tx = { +-- +1.7.7.6
recipes-bsp/ti-compat-wireless/files/0001-wl12xx-additional-two-members-for-wl12xx_platform_da.patch new file +30 -0
@@ -0,0 +1,30 @@ +From 351a513dabfb55c3aab448613c2b10b7b5788d93 Mon Sep 17 00:00:00 2001 +From: Vita Preskovsky <[email protected]> +Date: Sun, 1 Jul 2012 11:49:30 +0300 +Subject: [PATCH] wl12xx: additional two members for wl12xx_platform_data + + * Adding bt_enable_gpio and wlan_enable_gpio to wl12xx_platform_data. + This is needed in order to align this structure + with the one which is part of the linux kernel + + +Signed-off-by: Vita Preskovsky <[email protected]> +--- + include/linux/wl12xx.h | 2 ++ + 1 files changed, 2 insertions(+), 0 deletions(-) + +diff --git a/include/linux/wl12xx.h b/include/linux/wl12xx.h +index 0d63731..535058e 100644 +--- a/include/linux/wl12xx.h ++++ b/include/linux/wl12xx.h +@@ -54,6 +54,8 @@ struct wl12xx_platform_data { + int board_ref_clock; + int board_tcxo_clock; + unsigned long platform_quirks; ++ int bt_enable_gpio; ++ int wlan_enable_gpio; + bool pwr_in_suspend; + + struct wl1271_if_operations *ops; +-- +1.7.0.4
recipes-bsp/ti-compat-wireless/files/0001-wl12xx-detect-between-wl1271-PG-3.0-and-lower.patch new file +65 -0
65 lines not on this page · raw message
recipes-bsp/ti-compat-wireless/files/0002-compat-wireless-enable-test-mode.patch new file +29 -0
@@ -0,0 +1,29 @@ +From ca17ce77efde9a69ea4d82b86d4d51463d3e2b4a Mon Sep 17 00:00:00 2001 +From: Moosa <[email protected]> +Date: Thu, 24 May 2012 11:54:06 +0300 +Subject: [PATCH 2/2] compat-wireless: enable test mode + +* Enable test mode switch. Needed for the calibration process + +Upstream-Status: Pending + +Signed-off-by: Moosa Baransi <[email protected]> +--- + config.mk | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/config.mk b/config.mk +index f09d16d..65b485e 100644 +--- a/config.mk ++++ b/config.mk +@@ -198,7 +198,7 @@ CONFIG_MAC80211_MESH=y + CONFIG_CFG80211=m + CONFIG_CFG80211_DEFAULT_PS=y + # CONFIG_CFG80211_DEBUGFS=y +-# CONFIG_NL80211_TESTMODE=y ++CONFIG_NL80211_TESTMODE=y + # CONFIG_CFG80211_DEVELOPER_WARNINGS=y + # CONFIG_CFG80211_REG_DEBUG=y + # CONFIG_CFG80211_INTERNAL_REGDB=y +-- +1.7.1
recipes-bsp/ti-compat-wireless/files/0002-ti-compat-wireless-enable-uapsd-configuration.patch new file +27 -0
@@ -0,0 +1,27 @@ +From 74d34f0573183f3d4971fcae46ed9dadbf514626 Mon Sep 17 00:00:00 2001 +From: Eyal Reizer <[email protected]> +Date: Sun, 12 Jun 2011 17:33:09 +0300 +Subject: [PATCH] ti-compat-wireless:enable uapsd configuration + +this switch activates the wlan uapsd_queues settings + +Signed-off-by: Eyal Reizer <[email protected]> +--- + config.mk | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/config.mk b/config.mk +index f4cf832..a464b99 100644 +--- a/config.mk ++++ b/config.mk +@@ -110,7 +110,7 @@ endif #CONFIG_COMPAT_KERNEL_33 + # Wireless subsystem stuff + CONFIG_MAC80211=m + +-# CONFIG_MAC80211_DEBUGFS=y ++CONFIG_MAC80211_DEBUGFS=y + # CONFIG_MAC80211_NOINLINE=y + # CONFIG_MAC80211_VERBOSE_DEBUG=y + # CONFIG_MAC80211_HT_DEBUG=y +-- +1.7.0.4
recipes-bsp/ti-compat-wireless/files/0002-wl12xx-Decrease-number-of-TX-transactions.patch new file +135 -0
135 lines not on this page · raw message
recipes-bsp/ti-compat-wireless/files/0004-added-driver-version.patch new file +36 -0
@@ -0,0 +1,36 @@ +From 6147f6523fd3e82b1bed0ea5de1c23cff808a39f Mon Sep 17 00:00:00 2001 +From: Moosa <[email protected]> +Date: Thu, 29 Dec 2011 09:26:16 +0200 +Subject: [PATCH] added driver version + +* Add printing of driver version after printing FW version. + +Upstream-Status: Pending + +Signed-off-by: Moosa <[email protected]> +--- + drivers/net/wireless/wl12xx/main.c | 2 ++ + 1 files changed, 2 insertions(+), 0 deletions(-) + +diff --git a/drivers/net/wireless/wl12xx/main.c b/drivers/net/wireless/wl12xx/main.c +index aae6a74..fbf754b 100644 +--- a/drivers/net/wireless/wl12xx/main.c ++++ b/drivers/net/wireless/wl12xx/main.c +@@ -49,6 +49,7 @@ + #include "scan.h" + + #define WL1271_BOOT_RETRIES 3 ++#define WLAN_DRIVER_VERSION "R5_00_18" + + static struct conf_drv_settings default_conf = { + .sg = { +@@ -2227,6 +2228,7 @@ power_off: + wl->state = WL1271_STATE_ON; + set_bit(WL1271_FLAG_IF_INITIALIZED, &wl->flags); + wl1271_info("firmware booted (%s)", wl->chip.fw_ver_str); ++ wl1271_info("Driver version: %s", WLAN_DRIVER_VERSION); + + /* update hw/fw version info in wiphy struct */ + wiphy->hw_version = wl->chip.id; +-- +1.7.0.4
recipes-bsp/ti-compat-wireless/ti-compat-wireless-wl12xx_r5_18.bb new file +52 -0
52 lines not on this page · raw message
Signature · 1 line
1.7.0.4