[openfirmware] [commit] r3062 - dev/olpc/mmp2camera
repository service
svn at openfirmware.info
Thu Jul 12 23:24:20 CEST 2012
Author: wmb
Date: Thu Jul 12 23:24:19 2012
New Revision: 3062
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/3062
Log:
OLPC ARM - don't touch cam-pwrdn GPIO on platforms that don't have it. (CL4 now builds cleanly)
Modified:
dev/olpc/mmp2camera/platform.fth
Modified: dev/olpc/mmp2camera/platform.fth
==============================================================================
--- dev/olpc/mmp2camera/platform.fth Thu Jul 12 23:03:07 2012 (r3061)
+++ dev/olpc/mmp2camera/platform.fth Thu Jul 12 23:24:19 2012 (r3062)
@@ -21,10 +21,14 @@
: sensor-power-on ( -- )
cam-pwr-gpio# gpio-set
+[ifdef] cam-pwrdn-gpio#
cam-pwrdn-gpio# gpio-clr
+[then]
;
: sensor-power-off ( -- )
+[ifdef] cam-pwrdn-gpio#
( cam-pwrdn-gpio# gpio-set ) \ Leave low for Linux
+[then]
cam-pwr-gpio# gpio-clr
;
[then]
More information about the openfirmware
mailing list