Author: wmb Date: Thu Dec 8 13:43:16 2011 New Revision: 2748 URL: http://tracker.coreboot.org/trac/openfirmware/changeset/2748
Log: OLPC XO-3.0 - SDHCI/eMMC power doesn't involve a GPIO on this platform.
Modified: cpu/arm/olpc/sdhci.fth
Modified: cpu/arm/olpc/sdhci.fth ============================================================================== --- cpu/arm/olpc/sdhci.fth Thu Dec 8 13:43:12 2011 (r2747) +++ cpu/arm/olpc/sdhci.fth Thu Dec 8 13:43:16 2011 (r2748) @@ -15,10 +15,19 @@ ' olpc-card-inserted? to card-inserted?
\ Slot:power_GPIO - 1:35, 2:34, 3:33 - : gpio-power-on ( -- ) sdhci-card-power-on d# 36 slot - gpio-set ; + : gpio-power-on ( -- ) + sdhci-card-power-on +\ The CL3 version below actually works for CL2 >= B1 ++ olpc-cl2 d# 36 slot - gpio-set ++ olpc-cl3 slot 2 = if d# 34 gpio-set then + ; ' gpio-power-on to card-power-on
- : gpio-power-off ( -- ) d# 36 slot - gpio-clr sdhci-card-power-off ; + : gpio-power-off ( -- ) ++ olpc-cl2 d# 36 slot - gpio-clr ++ olpc-cl3 slot 2 = if d# 34 gpio-clr then + sdhci-card-power-off + ; ' gpio-power-off to card-power-off
+ olpc-cl2 new-device
openfirmware@openfirmware.info