summaryrefslogtreecommitdiffstats
path: root/meta-rcar-gen3-adas
diff options
context:
space:
mode:
Diffstat (limited to 'meta-rcar-gen3-adas')
-rw-r--r--meta-rcar-gen3-adas/conf/layer.conf15
-rw-r--r--meta-rcar-gen3-adas/recipes-bsp/linux-firmware/linux-firmware_git.bbappend15
-rw-r--r--meta-rcar-gen3-adas/recipes-bsp/si-tools/files/si-tools.tar.gzbin0 -> 22147 bytes
-rw-r--r--meta-rcar-gen3-adas/recipes-bsp/si-tools/files/si_firmware_update9
-rw-r--r--meta-rcar-gen3-adas/recipes-bsp/si-tools/files/si_init13
-rw-r--r--meta-rcar-gen3-adas/recipes-bsp/si-tools/si-tools.bb24
-rw-r--r--meta-rcar-gen3-adas/recipes-bsp/ti-bt-firmware/ti-bt-firmware_git.bb25
7 files changed, 100 insertions, 1 deletions
diff --git a/meta-rcar-gen3-adas/conf/layer.conf b/meta-rcar-gen3-adas/conf/layer.conf
index 78517de..dbee049 100644
--- a/meta-rcar-gen3-adas/conf/layer.conf
+++ b/meta-rcar-gen3-adas/conf/layer.conf
@@ -41,9 +41,22 @@ IMAGE_INSTALL_append_rcar-gen3 = " \
iio-utils \
"
+# Radio packages
+IMAGE_INSTALL_append_rcar-gen3 += " \
+ si-tools \
+ linux-firmware-wl18xx \
+ wireless-tools \
+ ti-bt-firmware \
+ bluez5 \
+ bluez5-testtools \
+ pulseaudio-module-bluez5-device \
+ pulseaudio-module-bluez5-discover \
+ pulseaudio-module-bluetooth-discover \
+ pulseaudio-module-bluetooth-policy \
+"
+
DISTRO_FEATURES_remove="x11"
DISTRO_FEATURES_append = " surroundview "
DISTRO_FEATURES_append = " opencv-sdk "
IMAGE_INSTALL_remove = "gtk+3-demo clutter-1.0-examples"
-
diff --git a/meta-rcar-gen3-adas/recipes-bsp/linux-firmware/linux-firmware_git.bbappend b/meta-rcar-gen3-adas/recipes-bsp/linux-firmware/linux-firmware_git.bbappend
new file mode 100644
index 0000000..fdee4b0
--- /dev/null
+++ b/meta-rcar-gen3-adas/recipes-bsp/linux-firmware/linux-firmware_git.bbappend
@@ -0,0 +1,15 @@
+LICENSE_${PN}-rtl8188eu = "Firmware-rtlwifi_firmware"
+
+FILES_${PN}-rtl8188eu = " \
+ /lib/firmware/rtlwifi/rtl8188eufw*.bin \
+"
+
+RDEPENDS_${PN}-rtl8188eu += "${PN}-rtl-license"
+
+PACKAGES =+ " ${PN}-rtl8188eu"
+
+FILES_${PN}-ath9k += " \
+ /lib/firmware/ath9k_htc/htc*.fw \
+"
+
+
diff --git a/meta-rcar-gen3-adas/recipes-bsp/si-tools/files/si-tools.tar.gz b/meta-rcar-gen3-adas/recipes-bsp/si-tools/files/si-tools.tar.gz
new file mode 100644
index 0000000..5a52c9b
--- /dev/null
+++ b/meta-rcar-gen3-adas/recipes-bsp/si-tools/files/si-tools.tar.gz
Binary files differ
diff --git a/meta-rcar-gen3-adas/recipes-bsp/si-tools/files/si_firmware_update b/meta-rcar-gen3-adas/recipes-bsp/si-tools/files/si_firmware_update
new file mode 100644
index 0000000..7e528ef
--- /dev/null
+++ b/meta-rcar-gen3-adas/recipes-bsp/si-tools/files/si_firmware_update
@@ -0,0 +1,9 @@
+#!/bin/sh
+SI_ARGS="/dev/i2c-11 0x65"
+
+#si_init
+si_flash ${SI_ARGS} -i -e
+si_flash ${SI_ARGS} -i -o 0x002000 -w /lib/firmware/si46xx/rom00_patch.016.bin
+si_flash ${SI_ARGS} -i -o 0x006000 -w /lib/firmware/si46xx/fmhd_radio_4_0_12.bif
+si_flash ${SI_ARGS} -i -o 0x086000 -w /lib/firmware/si46xx/dab_radio_4_0_5.bif
+si_flash ${SI_ARGS} -i -o 0x106000 -w /lib/firmware/si46xx/amhd_radio_2_0_11.bif
diff --git a/meta-rcar-gen3-adas/recipes-bsp/si-tools/files/si_init b/meta-rcar-gen3-adas/recipes-bsp/si-tools/files/si_init
new file mode 100644
index 0000000..523169e
--- /dev/null
+++ b/meta-rcar-gen3-adas/recipes-bsp/si-tools/files/si_init
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+#RST PCA@21 (base = 325) + 7
+echo 332 > /sys/class/gpio/export
+echo out > /sys/class/gpio/gpio332/direction
+
+#RST = 0
+echo 0 > /sys/class/gpio/gpio332/value
+#sleep 1
+#RST = 1
+echo 1 > /sys/class/gpio/gpio332/value
+
+echo 332 > /sys/class/gpio/unexport
diff --git a/meta-rcar-gen3-adas/recipes-bsp/si-tools/si-tools.bb b/meta-rcar-gen3-adas/recipes-bsp/si-tools/si-tools.bb
new file mode 100644
index 0000000..482c78f
--- /dev/null
+++ b/meta-rcar-gen3-adas/recipes-bsp/si-tools/si-tools.bb
@@ -0,0 +1,24 @@
+SUMMARY = "Tools for si46xx AM/FM/DAB radio chip"
+SECTION = "multimedia"
+
+LICENSE = "CLOSED"
+
+PE = "1"
+PV = "0.2"
+
+SRC_URI = " \
+ file://si-tools.tar.gz \
+ file://si_init \
+ file://si_firmware_update \
+"
+
+S = "${WORKDIR}/si-tools"
+
+do_install() {
+ install -d ${D}${bindir}
+
+ install -m 0755 si_ctl ${D}${bindir}
+ install -m 0755 si_flash ${D}${bindir}
+ install -m 0755 ${WORKDIR}/si_init ${D}${bindir}
+ install -m 0755 ${WORKDIR}/si_firmware_update ${D}${bindir}
+} \ No newline at end of file
diff --git a/meta-rcar-gen3-adas/recipes-bsp/ti-bt-firmware/ti-bt-firmware_git.bb b/meta-rcar-gen3-adas/recipes-bsp/ti-bt-firmware/ti-bt-firmware_git.bb
new file mode 100644
index 0000000..6f00ed9
--- /dev/null
+++ b/meta-rcar-gen3-adas/recipes-bsp/ti-bt-firmware/ti-bt-firmware_git.bb
@@ -0,0 +1,25 @@
+SUMMARY = "Bluetooth firmare files for WL18xx combo modules"
+SECTION = "misc"
+
+LICENSE = "CLOSED"
+
+PE = "1"
+PV = "0.0"
+
+SRC_URI = "git://github.com/TI-ECS/bt-firmware.git;protocol=git "
+SRCREV = "169b2df5b968f0ede32ea9044859942fc220c435"
+
+S = "${WORKDIR}/git"
+
+CLEANBROKEN = "1"
+
+do_populate_lic[noexec] = "1"
+do_compile[noexec] = "1"
+do_configure[noexec] = "1"
+
+do_install() {
+ install -d ${D}/lib/firmware/
+ cp *.bts ${D}/lib/firmware/
+}
+
+FILES_${PN} = "/lib/firmware/*" \ No newline at end of file