Changeset 3168


Ignore:
Timestamp:
Aug 14, 2012, 8:48:29 PM (2 years ago)
Author:
pgf
Message:

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.

Location:
cpu/arm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpu/arm/mmp2/gpio.fth

    r3158 r3168  
    7878   h# 108 make-gpio-mux-node 
    7979end-package 
     80 
     81: gpio-prop ( $gpioname low? gpionum -- ) 
     82   " /gpio"  encode-phandle        ( $gpioname low? gpionum propval$ ) 
     83   rot    encode-int encode+         ( $gpioname low? propval$' ) 
     84   rot    encode-int encode+         ( $gpioname propval$' ) 
     85   2swap property 
     86; 
     87 
     88 
  • cpu/arm/olpc/prefw.fth

    r3137 r3168  
    229229fload ${BP}/cpu/arm/mmp2/irq.fth 
    230230fload ${BP}/cpu/arm/mmp2/timer.fth 
     231fload ${BP}/cpu/arm/mmp2/gpio.fth 
    231232fload ${BP}/cpu/arm/mmp2/twsi.fth 
    232233fload ${BP}/cpu/arm/mmp2/mfpr.fth 
    233 fload ${BP}/cpu/arm/mmp2/gpio.fth 
    234234 
    235235\ Uninstall the diag menu from the general user interface vector 
Note: See TracChangeset for help on using the changeset viewer.