Permalink
Browse files

Merge pull request #1 from FalkorSystems/master

Thanks. Merged.
  • Loading branch information...
2 parents 0270ab6 + 58d589d commit 772bcb2757a0c755b14dbb739d6c96d32e776369 @piranha32 committed Nov 28, 2012
Showing with 9 additions and 2 deletions.
  1. +1 −1 bbone_pinmux_tool.rb
  2. +8 −1 template/shell.tmpl
View
2 bbone_pinmux_tool.rb 100644 → 100755
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
require 'rubygems'
require "getoptlong"
View
@@ -11,6 +11,13 @@ mux|=0x10 if pi[:pull]>0
mux|=0x08 if pi[:pen] ==0
mux|=pi[:mux_mode] & 0x7
%>
-echo <%=mux%> > /sys/kernel/debug/omap_mux/<%=pi[:modes].find{|m| m[1]==0}[0]%>
+# <%=pi[:name]%>
+# slew_rate: <%=pi[:slew_rate]%>
+# rx: <%=pi[:rx]%>
+# dir: <%=pi[:dir]%>
+# pull: <%=pi[:pull]%>
+# pen: <%=pi[:pen]%>
+# mode: <%=pi[:mux_mode]%>
+echo <%=mux.to_s(16)%> > /sys/kernel/debug/omap_mux/<%=pi[:modes].find{|m| m[1]==0}[0]%>
<%end;end%>

0 comments on commit 772bcb2

Please sign in to comment.