[openfirmware] [commit] r3168 - in cpu/arm: mmp2 olpc

repository service svn at openfirmware.info
Tue Aug 14 20:48:30 CEST 2012


Author: pgf
Date: Tue Aug 14 20:48:29 2012
New Revision: 3168
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/3168

Log:
gpio.fth: add gpio-prop word, for declaring gpio pins to device tree

also an fload ordering change, to make the new word available
in twsi.fth.

Modified:
   cpu/arm/mmp2/gpio.fth
   cpu/arm/olpc/prefw.fth

Modified: cpu/arm/mmp2/gpio.fth
==============================================================================
--- cpu/arm/mmp2/gpio.fth	Tue Aug 14 20:48:26 2012	(r3167)
+++ cpu/arm/mmp2/gpio.fth	Tue Aug 14 20:48:29 2012	(r3168)
@@ -77,3 +77,12 @@
    h# 104 make-gpio-mux-node
    h# 108 make-gpio-mux-node
 end-package
+
+: gpio-prop ( $gpioname low? gpionum -- )
+   " /gpio"  encode-phandle        ( $gpioname low? gpionum propval$ )
+   rot    encode-int encode+         ( $gpioname low? propval$' )
+   rot    encode-int encode+         ( $gpioname propval$' )
+   2swap property
+;
+
+

Modified: cpu/arm/olpc/prefw.fth
==============================================================================
--- cpu/arm/olpc/prefw.fth	Tue Aug 14 20:48:26 2012	(r3167)
+++ cpu/arm/olpc/prefw.fth	Tue Aug 14 20:48:29 2012	(r3168)
@@ -228,9 +228,9 @@
 fload ${BP}/cpu/arm/mmp2/apbc.fth
 fload ${BP}/cpu/arm/mmp2/irq.fth
 fload ${BP}/cpu/arm/mmp2/timer.fth
+fload ${BP}/cpu/arm/mmp2/gpio.fth
 fload ${BP}/cpu/arm/mmp2/twsi.fth
 fload ${BP}/cpu/arm/mmp2/mfpr.fth
-fload ${BP}/cpu/arm/mmp2/gpio.fth
 
 \ Uninstall the diag menu from the general user interface vector
 \ so exiting from emacs doesn't invoke the diag menu.



More information about the openfirmware mailing list