Author: wmb Date: Fri Aug 17 19:19:25 2012 New Revision: 3190 URL: http://tracker.coreboot.org/trac/openfirmware/changeset/3190
Log: OLPC ARM - Added #address-cells, #size-cells, encode-unit, and decode-unit methods to i2c-gpio device nodes so they can have children with reg properties.
Modified: cpu/arm/mmp2/gpio.fth
Modified: cpu/arm/mmp2/gpio.fth ============================================================================== --- cpu/arm/mmp2/gpio.fth Fri Aug 17 06:11:00 2012 (r3189) +++ cpu/arm/mmp2/gpio.fth Fri Aug 17 19:19:25 2012 (r3190) @@ -96,6 +96,13 @@ new-device " camera-i2c" device-name " i2c-gpio" +compatible + 1 " #address-cells" integer-property + 1 " #size-cells" integer-property + : encode-unit ( phys.. -- str ) push-hex (u.) pop-base ; + : decode-unit ( str -- phys.. ) push-hex $number if 0 then pop-base ; + : open ( -- flag ) true ; + : close ( -- ) ; +
0 0 encode-bytes cam-sda-gpio# 0 encode-gpio @@ -106,6 +113,12 @@ new-device " dcon-i2c" device-name " i2c-gpio" +compatible + 1 " #address-cells" integer-property + 1 " #size-cells" integer-property + : encode-unit ( phys.. -- str ) push-hex (u.) pop-base ; + : decode-unit ( str -- phys.. ) push-hex $number if 0 then pop-base ; + : open ( -- flag ) true ; + : close ( -- ) ;
0 0 encode-bytes dcon-sda-gpio# 0 encode-gpio
openfirmware@openfirmware.info