Author: wmb Date: Tue Aug 14 22:43:20 2012 New Revision: 3172 URL: http://tracker.coreboot.org/trac/openfirmware/changeset/3172
Log: OLPC - Added GPIO properties to /ec-spi node.
Modified: dev/olpc/kb3700/spicmd.fth
Modified: dev/olpc/kb3700/spicmd.fth ============================================================================== --- dev/olpc/kb3700/spicmd.fth Tue Aug 14 22:42:28 2012 (r3171) +++ dev/olpc/kb3700/spicmd.fth Tue Aug 14 22:43:20 2012 (r3172) @@ -38,6 +38,9 @@ d# 20 " interrupts" integer-property " /apbc" encode-phandle d# 21 encode-int encode+ " clocks" property
+ ec-spi-ack-gpio# 1 " ack-gpios" gpio-property + ec-spi-cmd-gpio# 1 " cmd-gpios" gpio-property + ec-spi-int-gpio# 1 " int-gpios" gpio-property
: encode-unit ( phys -- adr len ) push-hex (u.) pop-base ; : decode-unit ( adr len -- phys ) push-hex $number if 0 then pop-base ;