summaryrefslogtreecommitdiffstats
path: root/recipes-graphics/libgles/libgles-omap3
diff options
context:
space:
mode:
authorDenys Dmytriyenko <denys@ti.com>2013-11-21 21:03:16 -0500
committerDenys Dmytriyenko <denys@ti.com>2013-11-21 21:52:02 -0500
commitcc4221a10045c333fe558a49b50edd62bb443b5f (patch)
tree0659891af28b3d0e23822b452d6ac76ae6c4f1cf /recipes-graphics/libgles/libgles-omap3
parente1351fa79908e257baf6f22082ca23d992d537fc (diff)
downloadmeta-ti-cc4221a10045c333fe558a49b50edd62bb443b5f.tar.gz
libgles-omap3: update cputype to support 3.12 and AM43x device
Signed-off-by: Franklin S. Cooper Jr <fcooper@ti.com> Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Diffstat (limited to 'recipes-graphics/libgles/libgles-omap3')
-rwxr-xr-xrecipes-graphics/libgles/libgles-omap3/cputype18
1 files changed, 13 insertions, 5 deletions
diff --git a/recipes-graphics/libgles/libgles-omap3/cputype b/recipes-graphics/libgles/libgles-omap3/cputype
index 4448c300..35268a80 100755
--- a/recipes-graphics/libgles/libgles-omap3/cputype
+++ b/recipes-graphics/libgles/libgles-omap3/cputype
@@ -1,17 +1,25 @@
1#!/bin/sh 1#!/bin/sh
2 2
3machine_id() { # return the machine ID 3legacy_machine_id() { # return the machine ID
4 awk 'BEGIN { FS=": " } /Hardware/ \ 4 awk 'BEGIN { FS=": " } /Hardware/ \
5 { gsub(" ", "_", $2); print tolower($2) } ' </proc/cpuinfo 5 { gsub(" ", "_", $2); print tolower($2) } ' </proc/cpuinfo
6} 6}
7 7
8if [ "$(machine_id)" = "ti8168evm" ] ; then 8machine_id() { # return the machine ID
9 cat /proc/cpuinfo | grep Hardware | awk -F" " '{ print $4 }'
10}
11
12if [ "$(machine_id)" = "ti8168evm" -o "$(legacy_machine_id)" = "ti8168evm" ] ; then
9 echo TI816x 13 echo TI816x
10elif [ "$(machine_id)" = "am335xevm" ] ; then 14elif [ "$(machine_id)" = "AM33XX" -o "$(legacy_machine_id)" = "am335xevm" ] ; then
11 echo TI33XX 15 echo TI33XX
16elif [ "$(machine_id)" = "AM43" ] ; then
17 echo TI43XX
12else 18else
13 devmem2 0x4800244c | \ 19 devmem2 0x4800244c | \
14 grep 'Read at address' | \ 20 grep 'Read at address' | \
15 sed -e 's/.*): //' | \ 21 sed -e 's/.*): //' | \
16 sed -e 's/0x00005C00/OMAP3503/' -e 's/0x00001C00/OMAP3515/' -e 's/0x00004C00/OMAP3525/' -e 's/0x00000C00/OMAP3530/' -e 's/0x00005E00/OMAP3503/' -e 's/0x00001E00/OMAP3515/' -e 's/0x00004E00/OMAP3525/' -e 's/0x00000E00/OMAP3530/' -e 's/0x00000CC0/OMAP3530/' 22 sed -e 's/0x00005C00/OMAP3503/' -e 's/0x00001C00/OMAP3515/' -e 's/0x00004C00/OMAP3525/' -e 's/0x00000C00/OMAP3530/' \
23 -e 's/0x00005E00/OMAP3503/' -e 's/0x00001E00/OMAP3515/' -e 's/0x00004E00/OMAP3525/' -e 's/0x00000E00/OMAP3530/' \
24 -e 's/0x00000CC0/OMAP3530/'
17fi 25fi