summaryrefslogtreecommitdiff
path: root/recipes/ti/ti-codec-engine
diff options
context:
space:
mode:
authorRoger Monk <r-monk@ti.com>2010-03-10 22:59:59 +0000
committerKoen Kooi <koen@openembedded.org>2010-04-12 19:43:23 +0200
commitf7cf756b00e0771519a4e6daf87d47ba948af147 (patch)
tree692b28afa6f84c435b85307deb74e6dbdac0fa0c /recipes/ti/ti-codec-engine
parent8861d37764644b62e75e0483f235f5829c27ccc6 (diff)
ti-recipes: Remove old unused patches/files, cleanup /files
* Remove old legacy patches (from older kernel version support) * Relocate files from /files to recipe specific directories Signed-off-by: Roger Monk <r-monk@ti.com> Signed-off-by: Koen Kooi <k-kooi@ti.com>
Diffstat (limited to 'recipes/ti/ti-codec-engine')
-rw-r--r--recipes/ti/ti-codec-engine/loadmodules-ti-codec-engine-apps.sh37
-rw-r--r--recipes/ti/ti-codec-engine/unloadmodules-ti-codec-engine-apps.sh12
2 files changed, 49 insertions, 0 deletions
diff --git a/recipes/ti/ti-codec-engine/loadmodules-ti-codec-engine-apps.sh b/recipes/ti/ti-codec-engine/loadmodules-ti-codec-engine-apps.sh
new file mode 100644
index 0000000000..9f9233d12b
--- /dev/null
+++ b/recipes/ti/ti-codec-engine/loadmodules-ti-codec-engine-apps.sh
@@ -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
diff --git a/recipes/ti/ti-codec-engine/unloadmodules-ti-codec-engine-apps.sh b/recipes/ti/ti-codec-engine/unloadmodules-ti-codec-engine-apps.sh
new file mode 100644
index 0000000000..f990d99771
--- /dev/null
+++ b/recipes/ti/ti-codec-engine/unloadmodules-ti-codec-engine-apps.sh
@@ -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
+