diff options
author | Koen Kooi <koen@openembedded.org> | 2010-03-09 19:39:56 +0100 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2010-03-09 19:39:56 +0100 |
commit | 9fa5bd8ff0fceac54273850140b71319bc2c3b7e (patch) | |
tree | bb4c14c4702ebe125e231a564b7306029a734f77 /recipes/powervr-drivers/libgles-omap3 | |
parent | 601eb6c5ae842357948750e277ed392637df06a2 (diff) |
libgles-omap3: prepare initscript for ES5.x (DM37xx and OMAP36xx)3
Diffstat (limited to 'recipes/powervr-drivers/libgles-omap3')
-rwxr-xr-x | recipes/powervr-drivers/libgles-omap3/rc.pvr | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/recipes/powervr-drivers/libgles-omap3/rc.pvr b/recipes/powervr-drivers/libgles-omap3/rc.pvr index ecf5f4a8a3..b0b9043b82 100755 --- a/recipes/powervr-drivers/libgles-omap3/rc.pvr +++ b/recipes/powervr-drivers/libgles-omap3/rc.pvr @@ -53,19 +53,18 @@ if [ $CPUTYPE = "OMAP3530" ]; then touch /etc/powervr-esrev SAVED_ESREVISION="$(cat /etc/powervr-esrev)" - ES_REVISION="$(cat /proc/cpuinfo | grep "CPU revision" | awk -F: '{print $2}')" + + devmem2 0x48004B48 w 0x2 > /dev/null + devmem2 0x48004B10 w 0x1 > /dev/null + devmem2 0x48004B00 w 0x2 > /dev/null + + ES_REVISION="$(devmem2 0x50000014 | sed -e s:0x10205:5: -e s:0x10201:3: -e s:0x10003:2: | tail -n1 | awk -F': ' '{print $2}')" if [ "${ES_REVISION}" != "${SAVED_ESREVISION}" ] ; then echo -n "Starting SGX fixup for" - if [ "${ES_REVISION}" = " 3" ] ; then - echo " ES3.x" - cp -a /usr/lib/ES3.0/* /usr/lib - cp -a /usr/bin/ES3.0/* /usr/bin - else - echo "ES 2.x" - cp -a /usr/lib/ES2.0/* /usr/lib - cp -a /usr/bin/ES2.0/* /usr/bin - fi + echo " ES${ES_REVISION}.x" + cp -a /usr/lib/ES${ES_REVISION}.0/* /usr/lib + cp -a /usr/bin/ES${ES_REVISION}.0/* /usr/bin echo "${ES_REVISION}" > /etc/powervr-esrev fi /usr/bin/pvrsrvinit |