Add support for CES 2017 demo hardware 97/7197/4
authorScott Murray <scott.murray@konsulko.com>
Tue, 15 Nov 2016 17:27:02 +0000 (12:27 -0500)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Wed, 16 Nov 2016 19:11:34 +0000 (19:11 +0000)
Add kernel config fragments to enable support for the TP-Link TL-W722N
USB Wifi adapter on both Turbot and Porter, and RTL2832U DVB USB adapter
on Porter.

v2 (jsmoeller): Adapt linux-yocto bits and add rpi3 + vayu
    - moving linux-yocto appends catches all the linux-yocto boards
    - adding the fragments to the other boards likewise
    - yet todo: sabre, wandboard
v3 (jsmoeller): remove leftover file://

Change-Id: Ic2c3255d9383ccfe8b24d034ef43779d120c5ee1
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
16 files changed:
meta-agl-bsp/meta-qcom/recipes-kernel/linux/files/ath9k_htc.cfg [new file with mode: 0644]
meta-agl-bsp/meta-qcom/recipes-kernel/linux/files/fanotify.cfg [new file with mode: 0644]
meta-agl-bsp/meta-qcom/recipes-kernel/linux/files/hid.cfg [new file with mode: 0644]
meta-agl-bsp/meta-qcom/recipes-kernel/linux/files/rtl_sdr.cfg [new file with mode: 0644]
meta-agl-bsp/meta-qcom/recipes-kernel/linux/files/uinput.cfg [new file with mode: 0644]
meta-agl-bsp/meta-qcom/recipes-kernel/linux/linux-linaro-qcomlt%.bb [new file with mode: 0644]
meta-agl-bsp/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_4.4.bbappend
meta-agl-bsp/meta-renesas/recipes-kernel/linux/linux-renesas_%.bbappend [new file with mode: 0644]
meta-agl-bsp/meta-renesas/recipes-kernel/linux/linux/ath9k_htc.cfg [new file with mode: 0644]
meta-agl-bsp/meta-renesas/recipes-kernel/linux/linux/rtl_sdr.cfg [new file with mode: 0644]
meta-agl-bsp/meta-ti/recipes-kernel/linux/files/ath9k_htc.cfg [new file with mode: 0644]
meta-agl-bsp/meta-ti/recipes-kernel/linux/files/rtl_sdr.cfg [new file with mode: 0644]
meta-agl-bsp/meta-ti/recipes-kernel/linux/linux-ti-staging_4.4.bbappend
meta-agl-bsp/recipes-kernel/linux/linux-yocto/ath9k_htc.cfg [new file with mode: 0644]
meta-agl-bsp/recipes-kernel/linux/linux-yocto/rtl_sdr.cfg [new file with mode: 0644]
meta-agl-bsp/recipes-kernel/linux/linux-yocto_%.bbappend

diff --git a/meta-agl-bsp/meta-qcom/recipes-kernel/linux/files/ath9k_htc.cfg b/meta-agl-bsp/meta-qcom/recipes-kernel/linux/files/ath9k_htc.cfg
new file mode 100644 (file)
index 0000000..6f7d498
--- /dev/null
@@ -0,0 +1,4 @@
+CONFIG_CFG80211=m
+CONFIG_MAC80211=m
+CONFIG_ATH_CARDS=m
+CONFIG_ATH9K_HTC=m
diff --git a/meta-agl-bsp/meta-qcom/recipes-kernel/linux/files/fanotify.cfg b/meta-agl-bsp/meta-qcom/recipes-kernel/linux/files/fanotify.cfg
new file mode 100644 (file)
index 0000000..de5dd8d
--- /dev/null
@@ -0,0 +1,3 @@
+# Enable the fanotify API (notification/interception of FS events)
+CONFIG_FANOTIFY=y
+CONFIG_FANOTIFY_ACCESS_PERMISSIONS=y
diff --git a/meta-agl-bsp/meta-qcom/recipes-kernel/linux/files/hid.cfg b/meta-agl-bsp/meta-qcom/recipes-kernel/linux/files/hid.cfg
new file mode 100644 (file)
index 0000000..327c753
--- /dev/null
@@ -0,0 +1 @@
+CONFIG_HID_MULTITOUCH=y
diff --git a/meta-agl-bsp/meta-qcom/recipes-kernel/linux/files/rtl_sdr.cfg b/meta-agl-bsp/meta-qcom/recipes-kernel/linux/files/rtl_sdr.cfg
new file mode 100644 (file)
index 0000000..d457470
--- /dev/null
@@ -0,0 +1,4 @@
+CONFIG_MEDIA_USB_SUPPORT=y
+CONFIG_MEDIA_DIGITAL_TV_SUPPORT=y
+CONFIG_DVB_USB_V2=m
+CONFIG_DVB_USB_RTL28XXU=m
diff --git a/meta-agl-bsp/meta-qcom/recipes-kernel/linux/files/uinput.cfg b/meta-agl-bsp/meta-qcom/recipes-kernel/linux/files/uinput.cfg
new file mode 100644 (file)
index 0000000..7996ef1
--- /dev/null
@@ -0,0 +1,3 @@
+# Enable the User-level Input driver (required by "wayland-fits")
+CONFIG_INPUT_MISC=y
+CONFIG_INPUT_UINPUT=m
diff --git a/meta-agl-bsp/meta-qcom/recipes-kernel/linux/linux-linaro-qcomlt%.bb b/meta-agl-bsp/meta-qcom/recipes-kernel/linux/linux-linaro-qcomlt%.bb
new file mode 100644 (file)
index 0000000..c6aee58
--- /dev/null
@@ -0,0 +1,15 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
+
+# Extra configuration options
+SRC_URI += "file://fanotify.cfg \
+            file://uinput.cfg \
+            file://hid.cfg "
+KERNEL_CONFIG_FRAGMENTS_append = " ${WORKDIR}/fanotify.cfg ${WORKDIR}/uinput.cfg ${WORKDIR}/hid.cfg"
+
+# Enable support for TP-Link TL-W722N USB Wifi adapter
+SRC_URI += " file://ath9k_htc.cfg "
+KERNEL_CONFIG_FRAGMENTS_append = " ${WORKDIR}/ath9k_htc.cfg"
+
+# Enable support for RTLSDR
+SRC_URI += " file://rtl_sdr.cfg "
+KERNEL_CONFIG_FRAGMENTS_append = " ${WORKDIR}/rtl_sdr.cfg"
index f7b12e0..9372f0a 100644 (file)
@@ -44,6 +44,16 @@ do_configure_append() {
     kernel_configure_variable DRM_VC4 y
     kernel_configure_variable FB_BCM2708 n
 
+    # Enable support for TP-Link TL-W722N USB Wifi adapter
+    kernel_configure_variable CONFIG_ATH_CARDS m
+    kernel_configure_variable CONFIG_ATH9K_HTC m
+
+    # Enable support for RTLSDR
+    kernel_configure_variable CONFIG_MEDIA_USB_SUPPORT y
+    kernel_configure_variable CONFIG_MEDIA_DIGITAL_TV_SUPPORT y
+    kernel_configure_variable CONFIG_DVB_USB_V2 m
+    kernel_configure_variable CONFIG_DVB_USB_RTL28XXU m
+
     # KEEP until fixed upstream:
       # Keep this the last line
       # Remove all modified configs and add the rest to .config
diff --git a/meta-agl-bsp/meta-renesas/recipes-kernel/linux/linux-renesas_%.bbappend b/meta-agl-bsp/meta-renesas/recipes-kernel/linux/linux-renesas_%.bbappend
new file mode 100644 (file)
index 0000000..6974507
--- /dev/null
@@ -0,0 +1,7 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/linux:"
+
+# Enable support for TP-Link TL-W722N USB Wifi adapter and RTL2832U DVB USB
+# adapter.
+SRC_URI += "file://ath9k_htc.cfg \
+            file://rtl_sdr.cfg "
+KERNEL_CONFIG_FRAGMENTS_append = " ${WORKDIR}/ath9k_htc.cfg ${WORKDIR}/rtl_sdr.cfg"
diff --git a/meta-agl-bsp/meta-renesas/recipes-kernel/linux/linux/ath9k_htc.cfg b/meta-agl-bsp/meta-renesas/recipes-kernel/linux/linux/ath9k_htc.cfg
new file mode 100644 (file)
index 0000000..6f7d498
--- /dev/null
@@ -0,0 +1,4 @@
+CONFIG_CFG80211=m
+CONFIG_MAC80211=m
+CONFIG_ATH_CARDS=m
+CONFIG_ATH9K_HTC=m
diff --git a/meta-agl-bsp/meta-renesas/recipes-kernel/linux/linux/rtl_sdr.cfg b/meta-agl-bsp/meta-renesas/recipes-kernel/linux/linux/rtl_sdr.cfg
new file mode 100644 (file)
index 0000000..d457470
--- /dev/null
@@ -0,0 +1,4 @@
+CONFIG_MEDIA_USB_SUPPORT=y
+CONFIG_MEDIA_DIGITAL_TV_SUPPORT=y
+CONFIG_DVB_USB_V2=m
+CONFIG_DVB_USB_RTL28XXU=m
diff --git a/meta-agl-bsp/meta-ti/recipes-kernel/linux/files/ath9k_htc.cfg b/meta-agl-bsp/meta-ti/recipes-kernel/linux/files/ath9k_htc.cfg
new file mode 100644 (file)
index 0000000..6f7d498
--- /dev/null
@@ -0,0 +1,4 @@
+CONFIG_CFG80211=m
+CONFIG_MAC80211=m
+CONFIG_ATH_CARDS=m
+CONFIG_ATH9K_HTC=m
diff --git a/meta-agl-bsp/meta-ti/recipes-kernel/linux/files/rtl_sdr.cfg b/meta-agl-bsp/meta-ti/recipes-kernel/linux/files/rtl_sdr.cfg
new file mode 100644 (file)
index 0000000..d457470
--- /dev/null
@@ -0,0 +1,4 @@
+CONFIG_MEDIA_USB_SUPPORT=y
+CONFIG_MEDIA_DIGITAL_TV_SUPPORT=y
+CONFIG_DVB_USB_V2=m
+CONFIG_DVB_USB_RTL28XXU=m
index d94c76e..6116755 100644 (file)
@@ -1,10 +1,19 @@
 FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
 
 SRC_URI_append = " file://ramblock_nbd.cfg"
+KERNEL_CONFIG_FRAGMENTS_append = " ${WORKDIR}/ramblock_nbd.cfg"
+
 SRC_URI_append = " file://smack.cfg"
 SRC_URI_append = " file://smack-default-lsm.cfg"
+KERNEL_CONFIG_FRAGMENTS_append = " ${WORKDIR}/smack.cfg ${WORKDIR}/smack-default-lsm.cfg "
+
+# Enable support for TP-Link TL-W722N USB Wifi adapter
+SRC_URI_append = " file://ath9k_htc.cfg "
+KERNEL_CONFIG_FRAGMENTS_append = " ${WORKDIR}/ath9k_htc.cfg"
 
-KERNEL_CONFIG_FRAGMENTS_append = " ${WORKDIR}/ramblock_nbd.cfg ${WORKDIR}/smack.cfg ${WORKDIR}/smack-default-lsm.cfg"
+# Enable support for RTLSDR
+SRC_URI_append = " file://rtl_sdr.cfg "
+KERNEL_CONFIG_FRAGMENTS_append = " ${WORKDIR}/rtl_sdr.cfg"
 
 SRCREV = "${AUTOREV}"
 
diff --git a/meta-agl-bsp/recipes-kernel/linux/linux-yocto/ath9k_htc.cfg b/meta-agl-bsp/recipes-kernel/linux/linux-yocto/ath9k_htc.cfg
new file mode 100644 (file)
index 0000000..6f7d498
--- /dev/null
@@ -0,0 +1,4 @@
+CONFIG_CFG80211=m
+CONFIG_MAC80211=m
+CONFIG_ATH_CARDS=m
+CONFIG_ATH9K_HTC=m
diff --git a/meta-agl-bsp/recipes-kernel/linux/linux-yocto/rtl_sdr.cfg b/meta-agl-bsp/recipes-kernel/linux/linux-yocto/rtl_sdr.cfg
new file mode 100644 (file)
index 0000000..d457470
--- /dev/null
@@ -0,0 +1,4 @@
+CONFIG_MEDIA_USB_SUPPORT=y
+CONFIG_MEDIA_DIGITAL_TV_SUPPORT=y
+CONFIG_DVB_USB_V2=m
+CONFIG_DVB_USB_RTL28XXU=m
index 8b29aac..49899a4 100644 (file)
@@ -7,6 +7,14 @@ SRC_URI += "file://fanotify.cfg \
             file://drm.cfg \
             "
 
+# Enable support for TP-Link TL-W722N USB Wifi adapter
+SRC_URI += " file://ath9k_htc.cfg \
+           "
+
+# Enable support for RTLSDR
+SRC_URI += " file://rtl_sdr.cfg \
+           "
+
 # disk drivers for vmdk
 SRC_URI_append_qemux86 = " file://vbox-vmware-sata.cfg "
 SRC_URI_append_qemux86_64 = " file://vbox-vmware-sata.cfg "