diff options
author | Clement Laigle <clement.laigle8@gmail.com> | 2018-06-21 09:45:53 -0700 |
---|---|---|
committer | Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com> | 2018-06-21 11:32:37 -0700 |
commit | a78050bebdcc08eb80c05661a6cacc634c7ced47 (patch) | |
tree | 340c1983e7fa939b3b5f3f7b18e06dd036f11dbd | |
parent | 48aa7b26a46dd4765231e18c320ad6f22c0e22b5 (diff) | |
download | meta-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>
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 | ||
24 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "device-tree" | 24 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "device-tree" |
25 | 25 | ||
26 | MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "linux-firmware-bcm43430" | ||
27 | |||
26 | IMAGE_BOOT_FILES += " \ | 28 | IMAGE_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 @@ | |||
1 | LICENSE_append_minized-zynq7 = "\ | ||
2 | & Firmware-cypress \ | ||
3 | " | ||
4 | |||
5 | LIC_FILES_CHKSUM_append_minized-zynq7 = "\ | ||
6 | file://LICENCE.cypress;md5=cbc5f665d04f741f1e006d2096236ba7 \ | ||
7 | " | ||
8 | NO_GENERIC_LICENSE[Firmware-cypress] = "LICENCE.cypress" | ||
9 | |||
10 | SRC_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 | |||
16 | SRCREV_cyw-fmac-nvram = "d12c2ac1b93941eaa03063bb7cb3c1ee1aa1b7d0" | ||
17 | SRCREV_cyw-bt-patch = "9216e0d9f778009b5667d032886dfd49174c4b3a" | ||
18 | SRCREV_cyw-fmac-utils-imx32 = "060688dfe76df98751207c8146268ce7fd80b6ab" | ||
19 | SRCREV_FORMAT = "default+cyw-fmac-nvram+cyw-bt-patch+cyw-fmac-utils-imx32" | ||
20 | |||
21 | do_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 | |||
30 | PACKAGES_prepend_minized-zynq7 = "\ | ||
31 | ${PN}-cypress-license \ | ||
32 | ${PN}-bcm43430a1-hcd \ | ||
33 | ${PN}-mfgtest \ | ||
34 | " | ||
35 | |||
36 | FILES_${PN}-mfgtest_minized-zynq7 = " \ | ||
37 | ${bindir}/wl \ | ||
38 | " | ||
39 | |||
40 | FILES_${PN}-bcm43430_append_minized-zynq7 = " \ | ||
41 | ${nonarch_base_libdir}/firmware/brcm/ brcmfmac43430-sdio.txt \ | ||
42 | " | ||
43 | |||
44 | # For additional Cypress | ||
45 | FILES_${PN}-cypress-license = "\ | ||
46 | ${nonarch_base_libdir}/firmware/LICENCE.cypress \ | ||
47 | " | ||
48 | |||
49 | LICENSE_${PN}-bcm43430a1-hcd = "Firmware-cypress" | ||
50 | |||
51 | FILES_${PN}-bcm43430a1-hcd = " \ | ||
52 | ${nonarch_base_libdir}/firmware/brcm/BCM43430A1.1DX.hcd \ | ||
53 | " | ||
54 | |||
55 | RDEPENDS_${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 | # | ||
4 | CONFIG_BT=y | ||
5 | CONFIG_BT_BREDR=y | ||
6 | CONFIG_BT_HS=y | ||
7 | CONFIG_BT_LE=y | ||
8 | CONFIG_BT_BCM=y | ||
9 | CONFIG_BT_HCIUART=y | ||
10 | CONFIG_BT_HCIUART_H4=y | ||
11 | CONFIG_BT_HCIUART_BCM=y | ||
12 | CONFIG_BT_HIDP=y | ||
13 | CONFIG_CFG80211=y | ||
14 | CONFIG_CFG80211_DEFAULT_PS=y | ||
15 | CONFIG_CFG80211_CRDA_SUPPORT=y | ||
16 | CONFIG_BRCMUTIL=y | ||
17 | CONFIG_BRCMFMAC=y | ||
18 | CONFIG_BRCMFMAC_PROTO_BCDC=y | ||
19 | CONFIG_BRCMFMAC_SDIO=y | ||
20 | CONFIG_CRYPTO_BLKCIPHER=y | ||
21 | CONFIG_CRYPTO_MANAGER=y | ||
22 | CONFIG_CRYPTO_ECB=y | ||
23 | CONFIG_CRYPTO_CMAC=y | ||
24 | CONFIG_CRYPTO_SHA256=y | ||
25 | |||
26 | # | ||
27 | # Regulator config | ||
28 | # | ||
29 | CONFIG_REGMAP_IRQ=y | ||
30 | CONFIG_I2C_XILINX=y | ||
31 | CONFIG_MFD_DA9062=y | ||
32 | CONFIG_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 | ||
9 | SRC_URI_append_minized-zynq7 = " file://0004-minized-wifi-bluetooth.cfg" | ||