CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
Adding marvell-libvmeta clock setting init script
authorRyan Mullen <rmull@rmull.com>
Sun, 13 Jan 2013 04:32:09 +0000 (23:32 -0500)
committerRyan Mullen <rmull@rmull.com>
Sun, 13 Jan 2013 04:32:09 +0000 (23:32 -0500)
marvell-libvmeta/vmeta [new file with mode: 0755]

diff --git a/marvell-libvmeta/vmeta b/marvell-libvmeta/vmeta
new file mode 100755 (executable)
index 0000000..9ff892b
--- /dev/null
@@ -0,0 +1,23 @@
+#!/bin/sh
+#
+# /etc/rc.d/vmeta: start/stop vmeta high speed clock
+#
+
+case $1 in
+start)
+    echo 667000000 > /sys/devices/platform/dove_clocks_sysfs.0/vmeta
+       ;;
+stop)
+       echo 500000000 > /sys/devices/platform/dove_clocks_sysfs.0/vmeta
+       ;;
+restart)
+       $0 stop
+       sleep 1
+       $0 start
+       ;;
+*)
+       echo "usage: $0 [start|stop|restart]"
+       ;;
+esac
+
+# End of file