[openfirmware] [commit] r2550 - cpu/arm/mmp2

repository service svn at openfirmware.info
Fri Sep 30 02:09:09 CEST 2011


Author: wmb
Date: Fri Sep 30 02:09:08 2011
New Revision: 2550
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/2550

Log:
ARM XO-1.75 - Added gpio-clr-mask as a complement to gpio-set-mask, and fixed gpio-set-mask not to clobber other bits in the mask.  It's not a set/clr register like the others, but rather a bunch of R/W bits.

Modified:
   cpu/arm/mmp2/gpio.fth

Modified: cpu/arm/mmp2/gpio.fth
==============================================================================
--- cpu/arm/mmp2/gpio.fth	Fri Sep 30 01:59:27 2011	(r2549)
+++ cpu/arm/mmp2/gpio.fth	Fri Sep 30 02:09:08 2011	(r2550)
@@ -33,11 +33,9 @@
 : gpio-clr-fer  ( gpio# -- )  >gpio-pin h# 90 + io!  ;
 
 : >gpio-mask    ( gpio# -- mask pa )  >gpio-pin h# 9c +  ;
-: gpio-set-mask ( gpio# -- )  >gpio-mask io!  ;
+: gpio-set-mask ( gpio# -- )  >gpio-mask tuck io@  or  swap io!  ;
+: gpio-clr-mask ( gpio# -- )  >gpio-mask tuck io@  swap invert and  swap io!  ;
 
 : >gpio-xmsk     ( gpio# -- mask pa )  >gpio-pin h# a8 +  ;
-: gpio-set-xmsk  ( gpio# -- )  >gpio-xmsk io!  ;
-
-
-
-
+: gpio-set-xmsk ( gpio# -- )  >gpio-xmsk tuck io@  or  swap io!  ;
+: gpio-clr-xmsk ( gpio# -- )  >gpio-xmsk tuck io@  swap invert and  swap io!  ;



More information about the openfirmware mailing list