summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClement Laigle <clement.laigle8@gmail.com>2018-06-21 09:45:53 -0700
committerManjukumar Matha <manjukumar.harthikote-matha@xilinx.com>2018-06-21 11:32:37 -0700
commita78050bebdcc08eb80c05661a6cacc634c7ced47 (patch)
tree340c1983e7fa939b3b5f3f7b18e06dd036f11dbd
parent48aa7b26a46dd4765231e18c320ad6f22c0e22b5 (diff)
downloadmeta-xilinx-a78050bebdcc08eb80c05661a6cacc634c7ced47.tar.gz
minized-zynq7: Add wireless support
The Minized has a wireless connectivity (WiFi / Bluetooth). This recipes add drivers to use the murata wireless module. Signed-off-by: Clement Laigle <clement.laigle8@gmail.com> Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
-rw-r--r--meta-xilinx-contrib/conf/machine/minized-zynq7.conf2
-rw-r--r--meta-xilinx-contrib/recipes-kernel/linux-firmware/linux-firmware_%.bbappend55
-rw-r--r--meta-xilinx-contrib/recipes-kernel/linux/linux-xlnx/v2018.1/0004-minized-wifi-bluetooth.cfg33
-rw-r--r--meta-xilinx-contrib/recipes-kernel/linux/linux-xlnx_2018.1.bbappend1
4 files changed, 91 insertions, 0 deletions
diff --git a/meta-xilinx-contrib/conf/machine/minized-zynq7.conf b/meta-xilinx-contrib/conf/machine/minized-zynq7.conf
index d386c06f..8ee1980b 100644
--- a/meta-xilinx-contrib/conf/machine/minized-zynq7.conf
+++ b/meta-xilinx-contrib/conf/machine/minized-zynq7.conf
@@ -23,6 +23,8 @@ SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"
23 23
24MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "device-tree" 24MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "device-tree"
25 25
26MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "linux-firmware-bcm43430"
27
26IMAGE_BOOT_FILES += " \ 28IMAGE_BOOT_FILES += " \
27 boot.bin \ 29 boot.bin \
28 ${MACHINE}.dtb \ 30 ${MACHINE}.dtb \
diff --git a/meta-xilinx-contrib/recipes-kernel/linux-firmware/linux-firmware_%.bbappend b/meta-xilinx-contrib/recipes-kernel/linux-firmware/linux-firmware_%.bbappend
new file mode 100644
index 00000000..7655cafc
--- /dev/null
+++ b/meta-xilinx-contrib/recipes-kernel/linux-firmware/linux-firmware_%.bbappend
@@ -0,0 +1,55 @@
1LICENSE_append_minized-zynq7 = "\
2 & Firmware-cypress \
3"
4
5LIC_FILES_CHKSUM_append_minized-zynq7 = "\
6 file://LICENCE.cypress;md5=cbc5f665d04f741f1e006d2096236ba7 \
7"
8NO_GENERIC_LICENSE[Firmware-cypress] = "LICENCE.cypress"
9
10SRC_URI_append_minized-zynq7 = " \
11 git://github.com/murata-wireless/cyw-fmac-nvram;protocol=git;branch=orga;destsuffix=cyw-fmac-nvram;name=cyw-fmac-nvram \
12 git://github.com/murata-wireless/cyw-bt-patch;protocol=git;branch=morty-orga;destsuffix=cyw-bt-patch;name=cyw-bt-patch \
13 git://github.com/murata-wireless/cyw-fmac-utils-imx32;protocol=git;branch=orga;destsuffix=cyw-fmac-utils-imx32;name=cyw-fmac-utils-imx32 \
14"
15
16SRCREV_cyw-fmac-nvram = "d12c2ac1b93941eaa03063bb7cb3c1ee1aa1b7d0"
17SRCREV_cyw-bt-patch = "9216e0d9f778009b5667d032886dfd49174c4b3a"
18SRCREV_cyw-fmac-utils-imx32 = "060688dfe76df98751207c8146268ce7fd80b6ab"
19SRCREV_FORMAT = "default+cyw-fmac-nvram+cyw-bt-patch+cyw-fmac-utils-imx32"
20
21do_install_append_minized-zynq7() {
22
23 install -d ${D}${bindir}
24
25 install -m 0644 ${WORKDIR}/cyw-fmac-nvram/brcmfmac43430-sdio.txt ${D}${nonarch_base_libdir}/firmware/brcm/
26 install -m 0644 ${WORKDIR}/cyw-bt-patch/CYW43430A1.1DX.hcd ${D}${nonarch_base_libdir}/firmware/brcm/
27 install -m 0644 ${WORKDIR}/cyw-fmac-utils-imx32/wl ${D}${bindir}
28}
29
30PACKAGES_prepend_minized-zynq7 = "\
31 ${PN}-cypress-license \
32 ${PN}-bcm43430a1-hcd \
33 ${PN}-mfgtest \
34"
35
36FILES_${PN}-mfgtest_minized-zynq7 = " \
37 ${bindir}/wl \
38"
39
40FILES_${PN}-bcm43430_append_minized-zynq7 = " \
41 ${nonarch_base_libdir}/firmware/brcm/ brcmfmac43430-sdio.txt \
42"
43
44# For additional Cypress
45FILES_${PN}-cypress-license = "\
46 ${nonarch_base_libdir}/firmware/LICENCE.cypress \
47"
48
49LICENSE_${PN}-bcm43430a1-hcd = "Firmware-cypress"
50
51FILES_${PN}-bcm43430a1-hcd = " \
52 ${nonarch_base_libdir}/firmware/brcm/BCM43430A1.1DX.hcd \
53"
54
55RDEPENDS_${PN}-bcm43430a1-hcd += "${PN}-cypress-license"
diff --git a/meta-xilinx-contrib/recipes-kernel/linux/linux-xlnx/v2018.1/0004-minized-wifi-bluetooth.cfg b/meta-xilinx-contrib/recipes-kernel/linux/linux-xlnx/v2018.1/0004-minized-wifi-bluetooth.cfg
new file mode 100644
index 00000000..f71e53ab
--- /dev/null
+++ b/meta-xilinx-contrib/recipes-kernel/linux/linux-xlnx/v2018.1/0004-minized-wifi-bluetooth.cfg
@@ -0,0 +1,33 @@
1#
2# Bluetooth config
3#
4CONFIG_BT=y
5CONFIG_BT_BREDR=y
6CONFIG_BT_HS=y
7CONFIG_BT_LE=y
8CONFIG_BT_BCM=y
9CONFIG_BT_HCIUART=y
10CONFIG_BT_HCIUART_H4=y
11CONFIG_BT_HCIUART_BCM=y
12CONFIG_BT_HIDP=y
13CONFIG_CFG80211=y
14CONFIG_CFG80211_DEFAULT_PS=y
15CONFIG_CFG80211_CRDA_SUPPORT=y
16CONFIG_BRCMUTIL=y
17CONFIG_BRCMFMAC=y
18CONFIG_BRCMFMAC_PROTO_BCDC=y
19CONFIG_BRCMFMAC_SDIO=y
20CONFIG_CRYPTO_BLKCIPHER=y
21CONFIG_CRYPTO_MANAGER=y
22CONFIG_CRYPTO_ECB=y
23CONFIG_CRYPTO_CMAC=y
24CONFIG_CRYPTO_SHA256=y
25
26#
27# Regulator config
28#
29CONFIG_REGMAP_IRQ=y
30CONFIG_I2C_XILINX=y
31CONFIG_MFD_DA9062=y
32CONFIG_REGULATOR_DA9062=y
33
diff --git a/meta-xilinx-contrib/recipes-kernel/linux/linux-xlnx_2018.1.bbappend b/meta-xilinx-contrib/recipes-kernel/linux/linux-xlnx_2018.1.bbappend
index 83b08f1b..535fbb26 100644
--- a/meta-xilinx-contrib/recipes-kernel/linux/linux-xlnx_2018.1.bbappend
+++ b/meta-xilinx-contrib/recipes-kernel/linux/linux-xlnx_2018.1.bbappend
@@ -6,3 +6,4 @@ SRC_URI_append_zybo-linux-bd-zynq7 = " \
6 file://0003-drm-xilinx-Fix-DPMS-transition-to-on.patch \ 6 file://0003-drm-xilinx-Fix-DPMS-transition-to-on.patch \
7 " 7 "
8 8
9SRC_URI_append_minized-zynq7 = " file://0004-minized-wifi-bluetooth.cfg"