diff options
author | Jason Reeder <jreeder@ti.com> | 2016-06-16 02:16:33 +0000 |
---|---|---|
committer | Denys Dmytriyenko <denys@ti.com> | 2016-06-20 16:55:23 -0400 |
commit | b4d7ad69edafc64dec61b7b246d946250a27efe3 (patch) | |
tree | dacd115f6614cee0e155dc35195424ccbbd42663 /recipes-bsp/pru | |
parent | dc6bbf30a4f88200044383f0f45dec64fa9cd60d (diff) | |
download | meta-ti-b4d7ad69edafc64dec61b7b246d946250a27efe3.tar.gz |
pru-icss: add new device support and bump SRCREV
The PRU Software Support Package now includes examples for
the k2g device that need to be built and then placed into
the file system.
The Linux driver now supports loading firmwares into both
PRU-ICSS subsystems on the am437x device so the recipe was
also updated to build and install those firmwares.
Non-backward compatible changes were made to the inner
workings of rpmsg that required a major revision bump. The
package revision was bumped to 5.0.0 and this commit moves
the SRCREV to the v5.0.0 tag.
Signed-off-by: Jason Reeder <jreeder@ti.com>
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Diffstat (limited to 'recipes-bsp/pru')
-rw-r--r-- | recipes-bsp/pru/pru-icss_git.bb | 53 |
1 files changed, 45 insertions, 8 deletions
diff --git a/recipes-bsp/pru/pru-icss_git.bb b/recipes-bsp/pru/pru-icss_git.bb index 075ac273..a56eba0c 100644 --- a/recipes-bsp/pru/pru-icss_git.bb +++ b/recipes-bsp/pru/pru-icss_git.bb | |||
@@ -2,20 +2,20 @@ DESCRIPTION = "Programmable Real-time Unit Software Package" | |||
2 | HOMEPAGE = "http://processors.wiki.ti.com/index.php/PRU-ICSS" | 2 | HOMEPAGE = "http://processors.wiki.ti.com/index.php/PRU-ICSS" |
3 | LICENSE = "BSD-3-Clause & GPL-2.0 & PD" | 3 | LICENSE = "BSD-3-Clause & GPL-2.0 & PD" |
4 | 4 | ||
5 | LIC_FILES_CHKSUM = "file://PRU-Package-v4.0-Manifest.html;md5=5ea937e4ff2c924a735d42e61ad8cbe3" | 5 | LIC_FILES_CHKSUM = "file://PRU-Package-v5.0-Manifest.html;md5=eec933459cb42544706e35289de38e03" |
6 | 6 | ||
7 | inherit update-alternatives | 7 | inherit update-alternatives |
8 | 8 | ||
9 | BRANCH = "master" | 9 | BRANCH = "master" |
10 | SRC_URI = "git://git.ti.com/pru-software-support-package/pru-software-support-package.git;protocol=git;branch=${BRANCH}" | 10 | SRC_URI = "git://git.ti.com/pru-software-support-package/pru-software-support-package.git;protocol=git;branch=${BRANCH}" |
11 | SRCREV = "804b548e69ef9fdf44445f6d0968d81cb8a1e7b4" | 11 | SRCREV = "913cf232ebe655603d3385de2b9cde4af7af5308" |
12 | 12 | ||
13 | PV = "4.0.2" | 13 | PV = "5.0.0" |
14 | PR = "r2" | 14 | PR = "r0" |
15 | 15 | ||
16 | require recipes-ti/includes/ti-paths.inc | 16 | require recipes-ti/includes/ti-paths.inc |
17 | 17 | ||
18 | COMPATIBLE_MACHINE = "ti33x|ti43x|omap-a15" | 18 | COMPATIBLE_MACHINE = "ti33x|ti43x|omap-a15|k2g-evm" |
19 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 19 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
20 | 20 | ||
21 | PACKAGES_prepend = " \ | 21 | PACKAGES_prepend = " \ |
@@ -39,6 +39,7 @@ SUBDIRS = "examples pru_cape/pru_fw lib/src labs" | |||
39 | PLATFORM_ti33x = "am335x" | 39 | PLATFORM_ti33x = "am335x" |
40 | PLATFORM_ti43x = "am437x" | 40 | PLATFORM_ti43x = "am437x" |
41 | PLATFORM_omap-a15 = "am572x" | 41 | PLATFORM_omap-a15 = "am572x" |
42 | PLATFORM_k2g-evm = "k2g" | ||
42 | 43 | ||
43 | do_compile() { | 44 | do_compile() { |
44 | for dir in ${SUBDIRS} | 45 | for dir in ${SUBDIRS} |
@@ -64,8 +65,11 @@ do_install_append_ti33x() { | |||
64 | do_install_append_ti43x() { | 65 | do_install_append_ti43x() { |
65 | for i in 0 1 | 66 | for i in 0 1 |
66 | do | 67 | do |
67 | install -m 0644 ${S}/examples/am437x/PRU_RPMsg_Echo_Interrupt1_${i}/gen/PRU_RPMsg_Echo_Interrupt1_${i}.out \ | 68 | for j in 0 1 |
68 | ${D}/lib/firmware/pru | 69 | do |
70 | install -m 0644 ${S}/examples/am437x/PRU_RPMsg_Echo_Interrupt${i}_${j}/gen/PRU_RPMsg_Echo_Interrupt${i}_${j}.out \ | ||
71 | ${D}/lib/firmware/pru | ||
72 | done | ||
69 | done | 73 | done |
70 | } | 74 | } |
71 | 75 | ||
@@ -80,18 +84,32 @@ do_install_append_omap-a15() { | |||
80 | done | 84 | done |
81 | } | 85 | } |
82 | 86 | ||
87 | do_install_append_k2g-evm() { | ||
88 | for i in 0 1 | ||
89 | do | ||
90 | for j in 0 1 | ||
91 | do | ||
92 | install -m 0644 ${S}/examples/k2g/PRU_RPMsg_Echo_Interrupt${i}_${j}/gen/PRU_RPMsg_Echo_Interrupt${i}_${j}.out \ | ||
93 | ${D}/lib/firmware/pru | ||
94 | done | ||
95 | done | ||
96 | } | ||
97 | |||
83 | FILES_${PN}-halt = "/lib/firmware/pru/PRU_Halt.out" | 98 | FILES_${PN}-halt = "/lib/firmware/pru/PRU_Halt.out" |
84 | FILES_${PN}-rpmsg-echo = "/lib/firmware/pru/PRU_RPMsg_Echo_Interrupt*" | 99 | FILES_${PN}-rpmsg-echo = "/lib/firmware/pru/PRU_RPMsg_Echo_Interrupt*" |
85 | 100 | ||
86 | # Set up names for the firmwares | 101 | # Set up names for the firmwares |
87 | PRU_ICSS_ALTERNATIVES_ti33x = "am335x-pru0-fw am335x-pru1-fw" | 102 | PRU_ICSS_ALTERNATIVES_ti33x = "am335x-pru0-fw am335x-pru1-fw" |
88 | PRU_ICSS_ALTERNATIVES_ti43x = "am437x-pru1_0-fw am437x-pru1_1-fw" | 103 | PRU_ICSS_ALTERNATIVES_ti43x = "am437x-pru0_0-fw am437x-pru0_1-fw am437x-pru1_0-fw am437x-pru1_1-fw" |
89 | PRU_ICSS_ALTERNATIVES_omap-a15 = "am57xx-pru1_0-fw am57xx-pru1_1-fw am57xx-pru2_0-fw am57xx-pru2_1-fw" | 104 | PRU_ICSS_ALTERNATIVES_omap-a15 = "am57xx-pru1_0-fw am57xx-pru1_1-fw am57xx-pru2_0-fw am57xx-pru2_1-fw" |
105 | PRU_ICSS_ALTERNATIVES_k2g-evm = "k2g-pru0_0-fw k2g-pru0_1-fw k2g-pru1_0-fw k2g-pru1_1-fw" | ||
90 | 106 | ||
91 | # Set up link names for the firmwares | 107 | # Set up link names for the firmwares |
92 | ALTERNATIVE_LINK_NAME[am335x-pru0-fw] = "/lib/firmware/am335x-pru0-fw" | 108 | ALTERNATIVE_LINK_NAME[am335x-pru0-fw] = "/lib/firmware/am335x-pru0-fw" |
93 | ALTERNATIVE_LINK_NAME[am335x-pru1-fw] = "/lib/firmware/am335x-pru1-fw" | 109 | ALTERNATIVE_LINK_NAME[am335x-pru1-fw] = "/lib/firmware/am335x-pru1-fw" |
94 | 110 | ||
111 | ALTERNATIVE_LINK_NAME[am437x-pru0_0-fw] = "/lib/firmware/am437x-pru0_0-fw" | ||
112 | ALTERNATIVE_LINK_NAME[am437x-pru0_1-fw] = "/lib/firmware/am437x-pru0_1-fw" | ||
95 | ALTERNATIVE_LINK_NAME[am437x-pru1_0-fw] = "/lib/firmware/am437x-pru1_0-fw" | 113 | ALTERNATIVE_LINK_NAME[am437x-pru1_0-fw] = "/lib/firmware/am437x-pru1_0-fw" |
96 | ALTERNATIVE_LINK_NAME[am437x-pru1_1-fw] = "/lib/firmware/am437x-pru1_1-fw" | 114 | ALTERNATIVE_LINK_NAME[am437x-pru1_1-fw] = "/lib/firmware/am437x-pru1_1-fw" |
97 | 115 | ||
@@ -100,12 +118,19 @@ ALTERNATIVE_LINK_NAME[am57xx-pru1_1-fw] = "/lib/firmware/am57xx-pru1_1-fw" | |||
100 | ALTERNATIVE_LINK_NAME[am57xx-pru2_0-fw] = "/lib/firmware/am57xx-pru2_0-fw" | 118 | ALTERNATIVE_LINK_NAME[am57xx-pru2_0-fw] = "/lib/firmware/am57xx-pru2_0-fw" |
101 | ALTERNATIVE_LINK_NAME[am57xx-pru2_1-fw] = "/lib/firmware/am57xx-pru2_1-fw" | 119 | ALTERNATIVE_LINK_NAME[am57xx-pru2_1-fw] = "/lib/firmware/am57xx-pru2_1-fw" |
102 | 120 | ||
121 | ALTERNATIVE_LINK_NAME[k2g-pru0_0-fw] = "/lib/firmware/k2g-pru0_0-fw" | ||
122 | ALTERNATIVE_LINK_NAME[k2g-pru0_1-fw] = "/lib/firmware/k2g-pru0_1-fw" | ||
123 | ALTERNATIVE_LINK_NAME[k2g-pru1_0-fw] = "/lib/firmware/k2g-pru1_0-fw" | ||
124 | ALTERNATIVE_LINK_NAME[k2g-pru1_1-fw] = "/lib/firmware/k2g-pru1_1-fw" | ||
125 | |||
103 | # Create the pru-icss-halt firmware alternatives | 126 | # Create the pru-icss-halt firmware alternatives |
104 | ALTERNATIVE_pru-icss-halt = "${PRU_ICSS_ALTERNATIVES}" | 127 | ALTERNATIVE_pru-icss-halt = "${PRU_ICSS_ALTERNATIVES}" |
105 | 128 | ||
106 | ALTERNATIVE_TARGET_pru-icss-halt[am335x-pru0-fw] = "/lib/firmware/pru/PRU_Halt.out" | 129 | ALTERNATIVE_TARGET_pru-icss-halt[am335x-pru0-fw] = "/lib/firmware/pru/PRU_Halt.out" |
107 | ALTERNATIVE_TARGET_pru-icss-halt[am335x-pru1-fw] = "/lib/firmware/pru/PRU_Halt.out" | 130 | ALTERNATIVE_TARGET_pru-icss-halt[am335x-pru1-fw] = "/lib/firmware/pru/PRU_Halt.out" |
108 | 131 | ||
132 | ALTERNATIVE_TARGET_pru-icss-halt[am437x-pru0_0-fw] = "/lib/firmware/pru/PRU_Halt.out" | ||
133 | ALTERNATIVE_TARGET_pru-icss-halt[am437x-pru0_1-fw] = "/lib/firmware/pru/PRU_Halt.out" | ||
109 | ALTERNATIVE_TARGET_pru-icss-halt[am437x-pru1_0-fw] = "/lib/firmware/pru/PRU_Halt.out" | 134 | ALTERNATIVE_TARGET_pru-icss-halt[am437x-pru1_0-fw] = "/lib/firmware/pru/PRU_Halt.out" |
110 | ALTERNATIVE_TARGET_pru-icss-halt[am437x-pru1_1-fw] = "/lib/firmware/pru/PRU_Halt.out" | 135 | ALTERNATIVE_TARGET_pru-icss-halt[am437x-pru1_1-fw] = "/lib/firmware/pru/PRU_Halt.out" |
111 | 136 | ||
@@ -114,6 +139,11 @@ ALTERNATIVE_TARGET_pru-icss-halt[am57xx-pru1_1-fw] = "/lib/firmware/pru/PRU_Halt | |||
114 | ALTERNATIVE_TARGET_pru-icss-halt[am57xx-pru2_0-fw] = "/lib/firmware/pru/PRU_Halt.out" | 139 | ALTERNATIVE_TARGET_pru-icss-halt[am57xx-pru2_0-fw] = "/lib/firmware/pru/PRU_Halt.out" |
115 | ALTERNATIVE_TARGET_pru-icss-halt[am57xx-pru2_1-fw] = "/lib/firmware/pru/PRU_Halt.out" | 140 | ALTERNATIVE_TARGET_pru-icss-halt[am57xx-pru2_1-fw] = "/lib/firmware/pru/PRU_Halt.out" |
116 | 141 | ||
142 | ALTERNATIVE_TARGET_pru-icss-halt[k2g-pru0_0-fw] = "/lib/firmware/pru/PRU_Halt.out" | ||
143 | ALTERNATIVE_TARGET_pru-icss-halt[k2g-pru0_1-fw] = "/lib/firmware/pru/PRU_Halt.out" | ||
144 | ALTERNATIVE_TARGET_pru-icss-halt[k2g-pru1_0-fw] = "/lib/firmware/pru/PRU_Halt.out" | ||
145 | ALTERNATIVE_TARGET_pru-icss-halt[k2g-pru1_1-fw] = "/lib/firmware/pru/PRU_Halt.out" | ||
146 | |||
117 | ALTERNATIVE_PRIORITY_pru-icss-halt = "50" | 147 | ALTERNATIVE_PRIORITY_pru-icss-halt = "50" |
118 | 148 | ||
119 | # Craete the pru-icss-rpmsg-echo firmware alternatives | 149 | # Craete the pru-icss-rpmsg-echo firmware alternatives |
@@ -122,6 +152,8 @@ ALTERNATIVE_pru-icss-rpmsg-echo = "${PRU_ICSS_ALTERNATIVES}" | |||
122 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am335x-pru0-fw] = "/lib/firmware/pru/PRU_RPMsg_Echo_Interrupt0.out" | 152 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am335x-pru0-fw] = "/lib/firmware/pru/PRU_RPMsg_Echo_Interrupt0.out" |
123 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am335x-pru1-fw] = "/lib/firmware/pru/PRU_RPMsg_Echo_Interrupt1.out" | 153 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am335x-pru1-fw] = "/lib/firmware/pru/PRU_RPMsg_Echo_Interrupt1.out" |
124 | 154 | ||
155 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am437x-pru0_0-fw] = "/lib/firmware/pru/PRU_RPMsg_Echo_Interrupt0_0.out" | ||
156 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am437x-pru0_1-fw] = "/lib/firmware/pru/PRU_RPMsg_Echo_Interrupt0_1.out" | ||
125 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am437x-pru1_0-fw] = "/lib/firmware/pru/PRU_RPMsg_Echo_Interrupt1_0.out" | 157 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am437x-pru1_0-fw] = "/lib/firmware/pru/PRU_RPMsg_Echo_Interrupt1_0.out" |
126 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am437x-pru1_1-fw] = "/lib/firmware/pru/PRU_RPMsg_Echo_Interrupt1_1.out" | 158 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am437x-pru1_1-fw] = "/lib/firmware/pru/PRU_RPMsg_Echo_Interrupt1_1.out" |
127 | 159 | ||
@@ -130,6 +162,11 @@ ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am57xx-pru1_1-fw] = "/lib/firmware/pru/PR | |||
130 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am57xx-pru2_0-fw] = "/lib/firmware/pru/PRU_RPMsg_Echo_Interrupt2_0.out" | 162 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am57xx-pru2_0-fw] = "/lib/firmware/pru/PRU_RPMsg_Echo_Interrupt2_0.out" |
131 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am57xx-pru2_1-fw] = "/lib/firmware/pru/PRU_RPMsg_Echo_Interrupt2_1.out" | 163 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am57xx-pru2_1-fw] = "/lib/firmware/pru/PRU_RPMsg_Echo_Interrupt2_1.out" |
132 | 164 | ||
165 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[k2g-pru0_0-fw] = "/lib/firmware/pru/PRU_RPMsg_Echo_Interrupt0_0.out" | ||
166 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[k2g-pru0_1-fw] = "/lib/firmware/pru/PRU_RPMsg_Echo_Interrupt0_1.out" | ||
167 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[k2g-pru1_0-fw] = "/lib/firmware/pru/PRU_RPMsg_Echo_Interrupt1_0.out" | ||
168 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[k2g-pru1_1-fw] = "/lib/firmware/pru/PRU_RPMsg_Echo_Interrupt1_1.out" | ||
169 | |||
133 | ALTERNATIVE_PRIORITY_pru-icss-rpmsg-echo = "100" | 170 | ALTERNATIVE_PRIORITY_pru-icss-rpmsg-echo = "100" |
134 | 171 | ||
135 | ALLOW_EMPTY_${PN} = "1" | 172 | ALLOW_EMPTY_${PN} = "1" |