summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Reeder <jreeder@ti.com>2017-04-07 10:37:19 -0500
committerPraneeth Bajjuri <praneeth@ti.com>2017-04-10 10:47:00 -0500
commit8c3c6361e8f238c68d009e5f4dd38b5f4af71868 (patch)
treea1c1e71d15c25e14ad6b607dcb13895ce01a7d83
parent5ef434657c246e461502b87469aaa84a850cd92a (diff)
downloadproprietary-open-jacinto-8c3c6361e8f238c68d009e5f4dd38b5f4af71868.tar.gz
am57xx: idk: add firmwares to enable PRU Ethernet ports
This commit adds the PRU firmwares necessary to enable the PRU Ethernet ports on the AM57xx IDK boards. Based on linux firmware binary of the same http://git.ti.com/cgit/cgit.cgi/processor-firmware/ti-linux-firmware.git/commit/LICENSE.ti?h=ti-linux-firmware-4.1.y&id=4ead3b8c189f217ee2c01ea3c56ef08d6a517f28 Change-Id: I25339baf4d459517f5a1fb82703aa69ff15492c4 Signed-off-by: Jason Reeder <jreeder@ti.com> [added license file] Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
-rw-r--r--Android.mk43
-rw-r--r--jacinto6/LICENSE.ti-prueth61
-rw-r--r--jacinto6/prueth-full_am57xevm.mk25
-rw-r--r--jacinto6/prueth_full_am57xevm.tgzbin0 -> 4803 bytes
4 files changed, 129 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
index d481147..859183f 100644
--- a/Android.mk
+++ b/Android.mk
@@ -99,3 +99,46 @@ $(LOCAL_BUILT_MODULE) : $(ti-tesla.untarred_timestamp) | $(ACP)
$(hide) $(ACP) -fp $(PRIVATE_SRC) $@
endif
#############################################
+
+#############################################
+# Install prueth firmware
+#############################################
+ifneq ($(PRUETH_TGZ),)
+ti-prueth.untarred_intermediates := $(call intermediates-dir-for, FAKE, ti-prueth.untarred)
+ti-prueth.untarred_timestamp := $(ti-prueth.untarred_intermediates)/stamp
+
+$(ti-prueth.untarred_timestamp) : $(PRUETH_TGZ)
+ @echo "Unzip $(dir $@) <- $<)"
+ $(hide) rm -rf $(dir $@) && mkdir -p $(dir $@)
+ $(hide) tar -C $(dir $@) -zxf $<
+ $(hide) touch $@
+
+include $(CLEAR_VARS)
+LOCAL_MODULE := am57xx-pru0-prueth-fw.elf
+LOCAL_MODULE_CLASS := FAKE
+LOCAL_MODULE_TAGS := optional
+LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/firmware/ti-pruss
+
+include $(BUILD_SYSTEM)/base_rules.mk
+
+$(LOCAL_BUILT_MODULE) : PRIVATE_SRC := $(ti-prueth.untarred_intermediates)/am57xx-pru0-prueth-fw.elf
+$(LOCAL_BUILT_MODULE) : $(ti-prueth.untarred_timestamp) | $(ACP)
+ @echo "Copy $@ <- $(PRIVATE_SRC)"
+ @mkdir -p $(dir $@)
+ $(hide) $(ACP) -fp $(PRIVATE_SRC) $@
+
+include $(CLEAR_VARS)
+LOCAL_MODULE := am57xx-pru1-prueth-fw.elf
+LOCAL_MODULE_CLASS := FAKE
+LOCAL_MODULE_TAGS := optional
+LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/firmware/ti-pruss
+
+include $(BUILD_SYSTEM)/base_rules.mk
+
+$(LOCAL_BUILT_MODULE) : PRIVATE_SRC := $(ti-prueth.untarred_intermediates)/am57xx-pru1-prueth-fw.elf
+$(LOCAL_BUILT_MODULE) : $(ti-prueth.untarred_timestamp) | $(ACP)
+ @echo "Copy $@ <- $(PRIVATE_SRC)"
+ @mkdir -p $(dir $@)
+ $(hide) $(ACP) -fp $(PRIVATE_SRC) $@
+endif
+#############################################
diff --git a/jacinto6/LICENSE.ti-prueth b/jacinto6/LICENSE.ti-prueth
new file mode 100644
index 0000000..795f97f
--- /dev/null
+++ b/jacinto6/LICENSE.ti-prueth
@@ -0,0 +1,61 @@
+Copyright (C) 2016 Texas Instruments Incorporated
+
+All rights reserved not granted herein.
+
+Limited License.
+
+Texas Instruments Incorporated grants a world-wide, royalty-free, non-exclusive
+license under copyrights and patents it now or hereafter owns or controls to
+make, have made, use, import, offer to sell and sell ("Utilize") this software
+subject to the terms herein. With respect to the foregoing patent license, such
+license is granted solely to the extent that any such patent is necessary to
+Utilize the software alone. The patent license shall not apply to any
+combinations which include this software, other than combinations with devices
+manufactured by or for TI (“TI Devices”). No hardware patent is licensed
+hereunder.
+
+Redistributions must preserve existing copyright notices and reproduce this
+license (including the above copyright notice and the disclaimer and
+(if applicable) source code license limitations below) in the documentation
+and/or other materials provided with the distribution
+
+Redistribution and use in binary form, without modification, are permitted
+provided that the following conditions are met:
+
+ * No reverse engineering, decompilation, or disassembly of this
+ software is permitted with respect to any software provided in binary
+ form.
+
+ * any redistribution and use are licensed by TI for use only with TI
+ Devices.
+
+ * Nothing shall obligate TI to provide you with source code for the
+ software licensed and provided to you in object code.
+
+If software source code is provided to you, modification and redistribution of
+the source code are permitted provided that the following conditions are met:
+
+ * any redistribution and use of the source code, including any
+ resulting derivative works, are licensed by TI for use only with TI
+ Devices.
+
+ * any redistribution and use of any object code compiled from the
+ source code and any resulting derivative works, are licensed by TI
+ for use only with TI Devices.
+
+Neither the name of Texas Instruments Incorporated nor the names of its
+suppliers may be used to endorse or promote products derived from this
+software without specific prior written permission.
+
+DISCLAIMER.
+
+THIS SOFTWARE IS PROVIDED BY TI AND TI’S LICENSORS "AS IS" AND ANY EXPRESS OR
+IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+EVENT SHALL TI AND TI’S LICENSORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
+OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/jacinto6/prueth-full_am57xevm.mk b/jacinto6/prueth-full_am57xevm.mk
new file mode 100644
index 0000000..cd473da
--- /dev/null
+++ b/jacinto6/prueth-full_am57xevm.mk
@@ -0,0 +1,25 @@
+# Copyright (C) 2012 The Android Open Source Project
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+# Add PRU Ethernet - Define the tgz to be unpacked, and enable the
+# prueth package, which is defined in the top-level Android.mk
+# of the proprietary-open tree
+
+ifeq ($(TARGET_PRODUCT),$(filter $(TARGET_PRODUCT),full_am57xevm))
+PRUETH_TGZ := device/ti/proprietary-open/jacinto6/prueth_full_am57xevm.tgz
+PRODUCT_PACKAGES += \
+ am57xx-pru0-prueth-fw.elf \
+ am57xx-pru1-prueth-fw.elf
+endif
diff --git a/jacinto6/prueth_full_am57xevm.tgz b/jacinto6/prueth_full_am57xevm.tgz
new file mode 100644
index 0000000..9ca50a5
--- /dev/null
+++ b/jacinto6/prueth_full_am57xevm.tgz
Binary files differ