diff options
author | Scott Murray <scott.murray@konsulko.com> | 2021-09-07 11:03:24 -0400 |
---|---|---|
committer | Scott Murray <scott.murray@konsulko.com> | 2021-09-09 16:44:21 -0400 |
commit | a0117f8c0d614a2d15111db312eebfe9378c868e (patch) | |
tree | 0bfe62babbd27521671bf72595ff751d5ca20075 /meta-agl-refhw-gen3/recipes-kernel/linux/files/0002-revert-e233201a.patch | |
parent | e98aa7a71c06400b50a5c5bdd7e3e576485122bd (diff) |
Add WLAN card support
This is loosely based on the contents of the tar file provided with
the WLAN cards (AGL_Refhw_sample_software_KK_20210225.tar.gz) with
updates for BSP v4.7.0 and other fixes.
Changes:
- Kernel patches and configuration update to enable the TI WL1837
module. As opposed to the original changes from Panasonic or the
Kingfisher support, the HCI LL driver is used instead of the older
ti-st + btwilink combination, since the the latter are deprecated
and are removed in kernel 5.5.
- As part of the above the sound configuration in the devicetree has
been reworked to support the WL1837 BT audio. This includes
dropping the HDMI1 audio configuration from the original Salvator-X
devicetree, as it conflicts with the SSI used for the ak4613 in the
reference hardware.
- Recipes added for wlconf (from meta-ti) and ti-bt-firmware (loosely
derived from the meta-rcar-gen3-adas version). The TI-TFL license
used by ti-bt-firmware has been added in a top-level "licenses"
directory and that added to LICENSE_PATH in layer.conf to satisfy
the license packaging QA checking.
Bug-AGL: SPEC-4071
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Change-Id: Ib17fc01331efe0f49a90f7a8b223ec88b33b44f7
Diffstat (limited to 'meta-agl-refhw-gen3/recipes-kernel/linux/files/0002-revert-e233201a.patch')
-rw-r--r-- | meta-agl-refhw-gen3/recipes-kernel/linux/files/0002-revert-e233201a.patch | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/meta-agl-refhw-gen3/recipes-kernel/linux/files/0002-revert-e233201a.patch b/meta-agl-refhw-gen3/recipes-kernel/linux/files/0002-revert-e233201a.patch new file mode 100644 index 0000000..76039be --- /dev/null +++ b/meta-agl-refhw-gen3/recipes-kernel/linux/files/0002-revert-e233201a.patch @@ -0,0 +1,47 @@ +Revert "wl18xx: do not invert IRQ on WLxxxx side" + +This reverts commit 2bcfc394307ae164cbbdff74b902af61dc0181b4. +The hard-coded assumption that the IRQ inversion logic is not +needed breaks non-Kingfisher users, specifically the WLAN card +for the AGL reference hardware board. + +Signed-off-by: Scott Murray <scott.murray@konsulko.com> + +--- + drivers/net/wireless/ti/wl18xx/main.c | 8 -------- + 1 file changed, 8 deletions(-) + +diff --git a/drivers/net/wireless/ti/wl18xx/main.c b/drivers/net/wireless/ti/wl18xx/main.c +index 764987101116..0b3cf8477c6c 100644 +--- a/drivers/net/wireless/ti/wl18xx/main.c ++++ b/drivers/net/wireless/ti/wl18xx/main.c +@@ -865,9 +865,7 @@ static int wl18xx_pre_upload(struct wl1271 *wl) + { + u32 tmp; + int ret; +-#if 0 + u16 irq_invert; +-#endif + + BUILD_BUG_ON(sizeof(struct wl18xx_mac_and_phy_params) > + WL18XX_PHY_INIT_MEM_SIZE); +@@ -920,11 +918,6 @@ static int wl18xx_pre_upload(struct wl1271 *wl) + if (ret < 0) + goto out; + +-#if 0 +- /* We have level translator with inversion on IRQ line so we +- * set IRQ_TYPE_EDGE_FALLING in DTS, but we do not need to +- * invert IRQ logic on WLxxxx side! +- */ + ret = irq_get_trigger_type(wl->irq); + if ((ret == IRQ_TYPE_LEVEL_LOW) || (ret == IRQ_TYPE_EDGE_FALLING)) { + wl1271_info("using inverted interrupt logic: %d", ret); +@@ -944,7 +937,6 @@ static int wl18xx_pre_upload(struct wl1271 *wl) + + ret = wlcore_set_partition(wl, &wl->ptable[PART_PHY_INIT]); + } +-#endif + + out: + return ret; |