[openfirmware] [commit] r2634 - dev/olpc/mmp2camera
repository service
svn at openfirmware.info
Sat Oct 22 05:40:29 CEST 2011
Author: wmb
Date: Sat Oct 22 05:40:28 2011
New Revision: 2634
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/2634
Log:
OLPC XO-1.75 - rev C uses GPIO 144 to control CAM_PWRDN; added support for that. Also requires a change in CForth.
Modified:
dev/olpc/mmp2camera/platform.fth
Modified: dev/olpc/mmp2camera/platform.fth
==============================================================================
--- dev/olpc/mmp2camera/platform.fth Sat Oct 22 05:40:23 2011 (r2633)
+++ dev/olpc/mmp2camera/platform.fth Sat Oct 22 05:40:28 2011 (r2634)
@@ -19,13 +19,14 @@
: sensor-power-on ( -- ) d# 145 gpio-set ;
: sensor-power-off ( -- ) d# 145 gpio-clr ;
[else]
-: sensor-power-on ( -- ) d# 150 gpio-set ;
-: sensor-power-off ( -- ) d# 150 gpio-clr ;
+: sensor-power-on ( -- ) d# 150 gpio-set d# 144 gpio-clr ;
+: sensor-power-off ( -- ) ( d# 144 gpio-set ) d# 150 gpio-clr ; \ Leave low for Linux
[then]
\ CAM_HSYNC is on GPIO67, CAM_VSYNC is on GPIO68
\ PIXMCLK on GPIO69, PIXCLK on GPIO70, PIXDATA[7:0] on GPIO[59:66]
\ CAM_SCL on GPIO108, CAM_SDA on GPIO109 (bitbang)
+\ CAM_PWRDN on GPIO144
\ LICENSE_BEGIN
\ Copyright (c) 2011 FirmWorks
More information about the openfirmware
mailing list