This patch adds recipe for hsr/prp firmware on am3/4/5 SoCs. The binary
files are located on ti-linux-firmware.git. This is a forward port of
the recipe from processor sdk 6.3

Signed-off-by: Jacob Stiffler <[email protected]>
Signed-off-by: Murali Karicheri <[email protected]>
---
 v3 - Fixed summary to include AM3/4 as well
 recipes-bsp/pruhsr-fw/pruhsr-fw_git.bb | 36 +++++++++++++++++++++++++
 recipes-bsp/pruprp-fw/pruprp-fw_git.bb | 37 ++++++++++++++++++++++++++
 2 files changed, 73 insertions(+)
 create mode 100644 recipes-bsp/pruhsr-fw/pruhsr-fw_git.bb
 create mode 100644 recipes-bsp/pruprp-fw/pruprp-fw_git.bb

diff --git a/recipes-bsp/pruhsr-fw/pruhsr-fw_git.bb 
b/recipes-bsp/pruhsr-fw/pruhsr-fw_git.bb
new file mode 100644
index 000000000000..0c7e71484bb7
--- /dev/null
+++ b/recipes-bsp/pruhsr-fw/pruhsr-fw_git.bb
@@ -0,0 +1,36 @@
+SUMMARY = "PRU HSR firmware for AM335x/AM437x/AM57xx"
+
+LICENSE = "TI-TFL"
+LIC_FILES_CHKSUM = "file://LICENSE.ti;md5=b5aebf0668bdf95621259288c4a46d76"
+
+PV = "2.15.23"
+PE = "1"
+PR = "r0"
+
+COMPATIBLE_MACHINE = "ti33x|ti43x|am57xx-evm|am57xx-hs-evm"
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+SRCREV = "313e20f312a286bc07b97ef9aca70ef3ce96af29"
+BRANCH ?= "ti-linux-firmware"
+
+SRC_URI = 
"git://git.ti.com/processor-firmware/ti-linux-firmware.git;protocol=git;branch=${BRANCH}"
+
+S = "${WORKDIR}/git"
+
+TARGET = ""
+TARGET_ti33x = "am335x-pru0-pruhsr-fw.elf am335x-pru1-pruhsr-fw.elf"
+TARGET_ti43x = "am437x-pru0-pruhsr-fw.elf am437x-pru1-pruhsr-fw.elf"
+TARGET_am57xx-evm = "am57xx-pru0-pruhsr-fw.elf am57xx-pru1-pruhsr-fw.elf"
+TARGET_am57xx-hs-evm = "am57xx-pru0-pruhsr-fw.elf am57xx-pru1-pruhsr-fw.elf"
+
+do_install() {
+       install -d ${D}${base_libdir}/firmware/ti-pruss
+       for f in ${TARGET}; do
+               install -m 0644 ${S}/ti-pruss/$f 
${D}${base_libdir}/firmware/ti-pruss/$f
+       done
+}
+
+FILES_${PN} = "${base_libdir}/firmware"
+
+INSANE_SKIP_${PN} = "arch"
diff --git a/recipes-bsp/pruprp-fw/pruprp-fw_git.bb 
b/recipes-bsp/pruprp-fw/pruprp-fw_git.bb
new file mode 100644
index 000000000000..046e8dad7a1c
--- /dev/null
+++ b/recipes-bsp/pruprp-fw/pruprp-fw_git.bb
@@ -0,0 +1,37 @@
+SUMMARY = "PRU PRP firmware for AM335x/AM437x/AM57xx"
+
+LICENSE = "TI-TFL"
+LIC_FILES_CHKSUM = "file://LICENSE.ti;md5=b5aebf0668bdf95621259288c4a46d76"
+
+PV = "2.15.23"
+PE = "1"
+PR = "r0"
+
+COMPATIBLE_MACHINE = "ti33x|ti43x|am57xx-evm|am57xx-hs-evm"
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+SRCREV = "313e20f312a286bc07b97ef9aca70ef3ce96af29"
+BRANCH ?= "ti-linux-firmware"
+
+SRC_URI = 
"git://git.ti.com/processor-firmware/ti-linux-firmware.git;protocol=git;branch=${BRANCH}"
+
+S = "${WORKDIR}/git"
+
+TARGET = ""
+TARGET_ti33x = "am335x-pru0-pruprp-fw.elf am335x-pru1-pruprp-fw.elf"
+TARGET_ti43x = "am437x-pru0-pruprp-fw.elf am437x-pru1-pruprp-fw.elf"
+TARGET_am57xx-evm = "am57xx-pru0-pruprp-fw.elf am57xx-pru1-pruprp-fw.elf"
+TARGET_am57xx-hs-evm = "am57xx-pru0-pruprp-fw.elf am57xx-pru1-pruprp-fw.elf"
+
+
+do_install() {
+       install -d ${D}${base_libdir}/firmware/ti-pruss
+       for f in ${TARGET}; do
+               install -m 0644 ${S}/ti-pruss/$f 
${D}${base_libdir}/firmware/ti-pruss/$f
+       done
+}
+
+FILES_${PN} = "${base_libdir}/firmware"
+
+INSANE_SKIP_${PN} = "arch"
-- 
2.17.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#13024): 
https://lists.yoctoproject.org/g/meta-ti/message/13024
Mute This Topic: https://lists.yoctoproject.org/mt/75360058/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to