mirror of
https://git.yoctoproject.org/meta-ti
synced 2026-07-16 22:38:04 +00:00
import codec engine and dependencies from oe classic
Signed-off-by: Enrico Butera <ebutera@users.berlios.de> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
This commit is contained in:
+60
@@ -0,0 +1,60 @@
|
||||
diff --git a/examples/ti/sdo/ce/examples/apps/audio1_ires/rtcfg_local_evm3530_linux/makefile b/examples/ti/sdo/ce/examples/apps/audio1_ires/rtcfg_local_evm3530_linux/makefile
|
||||
index 2bbfb72..2a00d0d 100644
|
||||
--- a/examples/ti/sdo/ce/examples/apps/audio1_ires/rtcfg_local_evm3530_linux/makefile
|
||||
+++ b/examples/ti/sdo/ce/examples/apps/audio1_ires/rtcfg_local_evm3530_linux/makefile
|
||||
@@ -80,6 +80,7 @@ REPO_PATH = \
|
||||
$(FC_INSTALL_DIR)/packages \
|
||||
$(FC_INSTALL_DIR)/examples \
|
||||
$(CMEM_INSTALL_DIR)/packages \
|
||||
+ $(LPM_INSTALL_DIR)/packages \
|
||||
$(BIOSUTILS_INSTALL_DIR)/packages \
|
||||
$(EXAMPLES_ROOTDIR)
|
||||
|
||||
diff --git a/examples/ti/sdo/ce/examples/apps/speech1_copy/rtcfg_local_evm3530_linux/makefile b/examples/ti/sdo/ce/examples/apps/speech1_copy/rtcfg_local_evm3530_linux/makefile
|
||||
index f2b187a..827f6bc 100644
|
||||
--- a/examples/ti/sdo/ce/examples/apps/speech1_copy/rtcfg_local_evm3530_linux/makefile
|
||||
+++ b/examples/ti/sdo/ce/examples/apps/speech1_copy/rtcfg_local_evm3530_linux/makefile
|
||||
@@ -74,6 +74,7 @@ REPO_PATH = \
|
||||
$(XDAIS_INSTALL_DIR)/packages \
|
||||
$(FC_INSTALL_DIR)/packages \
|
||||
$(CMEM_INSTALL_DIR)/packages \
|
||||
+ $(LPM_INSTALL_DIR)/packages \
|
||||
$(BIOSUTILS_INSTALL_DIR)/packages \
|
||||
$(EXAMPLES_ROOTDIR)
|
||||
|
||||
diff --git a/examples/ti/sdo/ce/examples/apps/speech1_copy/rtcfg_remote_evm3530_linux/makefile b/examples/ti/sdo/ce/examples/apps/speech1_copy/rtcfg_remote_evm3530_linux/makefile
|
||||
index a4fe4dc..a23f991 100644
|
||||
--- a/examples/ti/sdo/ce/examples/apps/speech1_copy/rtcfg_remote_evm3530_linux/makefile
|
||||
+++ b/examples/ti/sdo/ce/examples/apps/speech1_copy/rtcfg_remote_evm3530_linux/makefile
|
||||
@@ -76,6 +76,7 @@ REPO_PATH = \
|
||||
$(XDAIS_INSTALL_DIR)/packages \
|
||||
$(FC_INSTALL_DIR)/packages \
|
||||
$(CMEM_INSTALL_DIR)/packages \
|
||||
+ $(LPM_INSTALL_DIR)/packages \
|
||||
$(BIOSUTILS_INSTALL_DIR)/packages \
|
||||
$(EXAMPLES_ROOTDIR)
|
||||
|
||||
diff --git a/examples/ti/sdo/ce/examples/apps/video1_copy/rtcfg_local_evm3530_linux/makefile b/examples/ti/sdo/ce/examples/apps/video1_copy/rtcfg_local_evm3530_linux/makefile
|
||||
index 8baa9dd..3c01c04 100644
|
||||
--- a/examples/ti/sdo/ce/examples/apps/video1_copy/rtcfg_local_evm3530_linux/makefile
|
||||
+++ b/examples/ti/sdo/ce/examples/apps/video1_copy/rtcfg_local_evm3530_linux/makefile
|
||||
@@ -74,6 +74,7 @@ REPO_PATH = \
|
||||
$(XDAIS_INSTALL_DIR)/packages \
|
||||
$(FC_INSTALL_DIR)/packages \
|
||||
$(CMEM_INSTALL_DIR)/packages \
|
||||
+ $(LPM_INSTALL_DIR)/packages \
|
||||
$(BIOSUTILS_INSTALL_DIR)/packages \
|
||||
$(EXAMPLES_ROOTDIR)
|
||||
|
||||
diff --git a/examples/ti/sdo/ce/examples/apps/video1_copy/rtcfg_remote_evm3530_linux/makefile b/examples/ti/sdo/ce/examples/apps/video1_copy/rtcfg_remote_evm3530_linux/makefile
|
||||
index 3319c06..09a6357 100644
|
||||
--- a/examples/ti/sdo/ce/examples/apps/video1_copy/rtcfg_remote_evm3530_linux/makefile
|
||||
+++ b/examples/ti/sdo/ce/examples/apps/video1_copy/rtcfg_remote_evm3530_linux/makefile
|
||||
@@ -75,6 +75,7 @@ REPO_PATH = \
|
||||
$(XDAIS_INSTALL_DIR)/packages \
|
||||
$(FC_INSTALL_DIR)/packages \
|
||||
$(CMEM_INSTALL_DIR)/packages \
|
||||
+ $(LPM_INSTALL_DIR)/packages \
|
||||
$(BIOSUTILS_INSTALL_DIR)/packages \
|
||||
$(EXAMPLES_ROOTDIR)
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
#
|
||||
# Copyright (c) 2008, Texas Instruments Incorporated
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
#
|
||||
# * Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
#
|
||||
# * Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
#
|
||||
# * Neither the name of Texas Instruments Incorporated nor the names of
|
||||
# its contributors may be used to endorse or promote products derived
|
||||
# from this software without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "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 THE COPYRIGHT OWNER OR
|
||||
# CONTRIBUTORS 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.
|
||||
#
|
||||
|
||||
# insert cmemk, tell it to occupy physical 120MB-128MB, create
|
||||
# 20 4K buffers, 10 128K buffers and two 1MB buffers
|
||||
CMEM_MODPARAMS="phys_start=0x87800000 phys_end=0x88000000 pools=20x4096,10x131072,2x1048576"
|
||||
|
||||
if [ -e cmemk.ko ]
|
||||
then
|
||||
insmod cmemk.ko $CMEM_MODPARAMS
|
||||
else
|
||||
modprobe cmemk $CMEM_MODPARAMS
|
||||
fi
|
||||
|
||||
# Allow cmem driver to be used by all users
|
||||
if [ -e /dev/cmem ]
|
||||
then
|
||||
chmod 666 /dev/cmem
|
||||
fi
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
#
|
||||
# Default Memory Map - for OMAP3530 CE 2.21 examples
|
||||
#
|
||||
# Start Addr Size Description
|
||||
# -------------------------------------------
|
||||
# 0x80000000 80 MB Linux
|
||||
# 0x85000000 08 MB CMEM
|
||||
# 0x86000000 24 MB DDRALGHEAP
|
||||
# 0x87800000 6 MB DDR2 (BIOS, Codecs, Applications)
|
||||
# 0x87E00000 1 MB DSPLINK (MEM)
|
||||
# 0x87F00000 4 KB DSPLINK (RESET)
|
||||
# 0x87F01000 1020 KB unused
|
||||
|
||||
# sanity check to verify that we're using the right mem=xxM (80M in this case)
|
||||
awk '/MemTotal:/ {
|
||||
mem=$2
|
||||
|
||||
if (mem > 80 * 1024)
|
||||
print "Warning! You need to use mem=80M or less on the kernel cmdline"
|
||||
|
||||
printf "You have %dkB total memory for Linux\n", mem
|
||||
}' /proc/meminfo
|
||||
|
||||
# Select cmemk parameters for best fit, i.e. starting at 0x85000000
|
||||
modprobe cmemk phys_start=0x85000000 phys_end=0x86000000 pools=20x4096,8x131072,5x1048576,1x1429440,1x256000,1x3600000,5x829440
|
||||
|
||||
# insert DSP/BIOS Link driver
|
||||
#
|
||||
modprobe dsplinkk
|
||||
|
||||
# make /dev/dsplink
|
||||
#rm -f /dev/dsplink
|
||||
#mknod /dev/dsplink c `awk "\\$2==\"dsplink\" {print \\$1}" /proc/devices` 0
|
||||
|
||||
# insert Local Power Manager driver
|
||||
#
|
||||
modprobe lpm_omap3530
|
||||
@@ -0,0 +1,12 @@
|
||||
# Unload modules - CODEC ENGINE - OMAP3530
|
||||
|
||||
# remove lpm module
|
||||
rmmod lpm_omap3530
|
||||
|
||||
# remove DSP/BIOS Link driver
|
||||
rmmod dsplinkk
|
||||
#rm -f /dev/dsplink
|
||||
|
||||
# remove cmem module
|
||||
rmmod cmemk
|
||||
|
||||
Reference in New Issue
Block a user