summaryrefslogtreecommitdiffstats
path: root/meta-rcar-gen3-adas/recipes-bsp
diff options
context:
space:
mode:
authorVladimir Barinov <vladimir.barinov@cogentembedded.com>2017-10-31 10:12:37 +0300
committerVladimir Barinov <vladimir.barinov@cogentembedded.com>2017-10-31 10:12:37 +0300
commit6e3e2bf13f7175fd06d71f04780edb04a0363978 (patch)
treec316dfb567f56bb74b4f41fe4fff6e6ead211422 /meta-rcar-gen3-adas/recipes-bsp
parentd3648e5b854c994c63d622406038daee48023213 (diff)
Update radio scirpts
Add radio scripts: si_fm si_scan si_preset
Diffstat (limited to 'meta-rcar-gen3-adas/recipes-bsp')
-rw-r--r--meta-rcar-gen3-adas/recipes-bsp/si-tools/files/si-tools.tar.gzbin22147 -> 1593240 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.bb38
4 files changed, 29 insertions, 31 deletions
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
index 5a52c9b..cb157ea 100644
--- 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
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
deleted file mode 100644
index 7e528ef..0000000
--- a/meta-rcar-gen3-adas/recipes-bsp/si-tools/files/si_firmware_update
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/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
deleted file mode 100644
index f7e3a5a..0000000
--- a/meta-rcar-gen3-adas/recipes-bsp/si-tools/files/si_init
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/bin/sh
-
-#RST pca9539@75 (base = 324) + 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
index 482c78f..5db9408 100644
--- a/meta-rcar-gen3-adas/recipes-bsp/si-tools/si-tools.bb
+++ b/meta-rcar-gen3-adas/recipes-bsp/si-tools/si-tools.bb
@@ -7,18 +7,38 @@ PE = "1"
PV = "0.2"
SRC_URI = " \
- file://si-tools.tar.gz \
- file://si_init \
- file://si_firmware_update \
+ file://si-tools.tar.gz \
"
S = "${WORKDIR}/si-tools"
do_install() {
- install -d ${D}${bindir}
+ install -d ${D}${bindir}
+ install -d ${D}/lib/firmware/radio/
- 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
+ install -m 755 si_ctl ${D}${bindir}
+ install -m 755 si_flash ${D}${bindir}
+ install -m 755 ${S}/scripts/si_init ${D}${bindir}
+ install -m 755 ${S}/scripts/si_firmware_update ${D}${bindir}
+ install -m 755 ${S}/scripts/si_fm ${D}${bindir}
+ install -m 755 ${S}/scripts/si_preset ${D}${bindir}
+ install -m 755 ${S}/scripts/si_scan ${D}${bindir}
+ install -m 644 ${S}/firmware/am.bif ${D}/lib/firmware/radio/
+ install -m 644 ${S}/firmware/fm.bif ${D}/lib/firmware/radio/
+ install -m 644 ${S}/firmware/dab.bif ${D}/lib/firmware/radio/
+ install -m 644 ${S}/firmware/patch.bin ${D}/lib/firmware/radio/
+}
+
+FILES_${PN} = " \
+ ${bindir}/si_ctl \
+ ${bindir}/si_flash \
+ ${bindir}/si_init \
+ ${bindir}/si_firmware_update \
+ ${bindir}/si_fm \
+ ${bindir}/si_preset \
+ ${bindir}/si_scan \
+ /lib/firmware/radio/am.bif \
+ /lib/firmware/radio/fm.bif \
+ /lib/firmware/radio/dab.bif \
+ /lib/firmware/radio/patch.bin \
+"