From bdf7cf40fca0fd7f2fc5b4d66bfe1bb76fc7d04f Mon Sep 17 00:00:00 2001 From: Grazvydas Ignotas Date: Wed, 4 Apr 2012 00:58:51 +0300 Subject: [PATCH] pandora-scripts: add a script for ram/system overclocking --- recipes/pandora-system/pandora-scripts.bb | 6 ++++-- .../pandora-scripts/op_sysspeed.sh | 19 +++++++++++++++++++ 2 files changed, 23 insertions(+), 2 deletions(-) create mode 100755 recipes/pandora-system/pandora-scripts/op_sysspeed.sh diff --git a/recipes/pandora-system/pandora-scripts.bb b/recipes/pandora-system/pandora-scripts.bb index bf97b54..b9e9303 100644 --- a/recipes/pandora-system/pandora-scripts.bb +++ b/recipes/pandora-system/pandora-scripts.bb @@ -6,13 +6,14 @@ COMPATIBLE_MACHINE = "omap3-pandora" DEPENDS = "zenity dbus" RDEPENDS = "zenity dbus" -PR = "r88" +PR = "r89" SRC_URI = " \ file://op_paths.sh \ file://op_bright.sh \ file://op_cpuspeed.sh \ file://op_cpuspeed.pnd \ + file://op_sysspeed.sh \ file://op_wifi.sh \ file://op_wifi.pnd \ file://op_bluetooth.sh \ @@ -85,7 +86,8 @@ do_install() { install -m 0755 ${WORKDIR}/op_paths.sh ${D}${prefix}/pandora/scripts/ install -m 0755 ${WORKDIR}/op_bright.sh ${D}${prefix}/pandora/scripts/ install -m 0755 ${WORKDIR}/op_cpuspeed.sh ${D}${prefix}/pandora/scripts/ - install -m 0755 ${WORKDIR}/op_cpusettings.sh ${D}${prefix}/pandora/scripts/ + install -m 0755 ${WORKDIR}/op_sysspeed.sh ${D}${prefix}/pandora/scripts/ + install -m 0755 ${WORKDIR}/op_cpusettings.sh ${D}${prefix}/pandora/scripts/ install -m 0755 ${WORKDIR}/op_wifi.sh ${D}${prefix}/pandora/scripts/ install -m 0755 ${WORKDIR}/op_bluetooth.sh ${D}${prefix}/pandora/scripts/ install -m 0755 ${WORKDIR}/op_startupmanager.sh ${D}${prefix}/pandora/scripts/ diff --git a/recipes/pandora-system/pandora-scripts/op_sysspeed.sh b/recipes/pandora-system/pandora-scripts/op_sysspeed.sh new file mode 100755 index 0000000..91fcf73 --- /dev/null +++ b/recipes/pandora-system/pandora-scripts/op_sysspeed.sh @@ -0,0 +1,19 @@ +#!/bin/sh + +if [ ! -e /proc/pandora/sys_mhz_max ]; then + echo "error: no support in kernel" + exit 1 +fi +if [ $# -ne 1 ]; then + echo "usage:" + echo "$0 " + exit 1 +fi + +sync + +# TODO: we need to stop all RAM users here, that includes DMAs and DSP +# only handling the display for now.. +echo 1 > /sys/class/graphics/fb0/blank +echo $1 > /proc/pandora/sys_mhz_max +echo 0 > /sys/class/graphics/fb0/blank -- 2.39.2