From 1350e89256c79e8f2af37d63401d4d071bdbbbf9 Mon Sep 17 00:00:00 2001 From: Ryan Mullen Date: Sat, 12 Jan 2013 23:32:09 -0500 Subject: [PATCH] Adding marvell-libvmeta clock setting init script --- marvell-libvmeta/vmeta | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 marvell-libvmeta/vmeta diff --git a/marvell-libvmeta/vmeta b/marvell-libvmeta/vmeta new file mode 100755 index 0000000..9ff892b --- /dev/null +++ b/marvell-libvmeta/vmeta @@ -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 -- 2.26.2