Changeset 3197
- Timestamp:
- Aug 18, 2012 9:05:11 AM (9 months ago)
- Files:
-
- 12 edited
-
cpu/arm/olpc/1.75/attic/audiosmb.fth (modified) (2 diffs)
-
cpu/arm/olpc/1.75/compass.fth (modified) (2 diffs)
-
cpu/arm/olpc/rtc.fth (modified) (1 diff)
-
cpu/arm/olpc/smbus.fth (modified) (1 diff)
-
dev/olpc/cafecamera/platform.fth (modified) (2 diffs)
-
dev/olpc/dcon/mmp2dcon.fth (modified) (2 diffs)
-
dev/olpc/mmp2camera/smbus.fth (modified) (1 diff)
-
dev/olpc/ov7670.fth (modified) (1 diff)
-
dev/olpc/seti.fth (modified) (1 diff)
-
dev/olpc/viacamera/platform.fth (modified) (1 diff)
-
dev/olpc/viacamera/smbus.fth (modified) (1 diff)
-
dev/via/unichrome/dconsmb.fth (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cpu/arm/olpc/1.75/attic/audiosmb.fth
r2726 r3197 73 73 74 74 0 value smb-slave 75 : smb-addr ( lowbit -- ) smb-slave or smb-byte ;75 : smb-addr ( lowbit -- ) smb-slave 2* or smb-byte ; 76 76 77 77 : smb-byte! ( byte reg# -- ) … … 116 116 ; 117 117 118 : set-dcon-slave ( -- ) h# 1ato smb-slave ;118 : set-dcon-slave ( -- ) h# 0d to smb-slave ; 119 119 : smb-init ( -- ) set-dcon-slave smb-on smb-pulses ; 120 120 -
cpu/arm/olpc/1.75/compass.fth
r3183 r3197 5 5 compass-scl-gpio# to smb-clock-gpio# 6 6 compass-sda-gpio# to smb-data-gpio# 7 h# 1eto smb-slave7 h# 0f to smb-slave 8 8 smb-data-gpio# gpio-dir-out 9 9 ; … … 40 40 4 to smb-clock-gpio# 41 41 5 to smb-data-gpio# 42 h# 18to smb-slave42 h# 0c to smb-slave 43 43 smb-data-gpio# gpio-dir-out 44 44 ; -
cpu/arm/olpc/rtc.fth
r3183 r3197 18 18 rtc-scl-gpio# to smb-clock-gpio# 19 19 rtc-sda-gpio# to smb-data-gpio# 20 h# d0to smb-slave20 h# 68 to smb-slave 21 21 ; 22 22 : rtc@ ( reg# -- byte ) set-address smb-byte@ ; -
cpu/arm/olpc/smbus.fth
r2880 r3197 88 88 89 89 0 value smb-slave 90 : smb-addr ( lowbit -- ) smb-slave or smb-byte ;90 : smb-addr ( lowbit -- ) smb-slave 2* or smb-byte ; 91 91 92 92 : smb-byte! ( byte reg# -- ) -
dev/olpc/cafecamera/platform.fth
r2880 r3197 38 38 ; 39 39 40 h# 42value camera-smb-slave40 h# 21 value camera-smb-slave 41 41 : camera-smb-on ( -- ) ; 42 42 … … 47 47 ; 48 48 49 : set-slave ( -- ) camera-smb-slave 2 lshift 87.fc01 or b8 cl! ; \ TWSI control 0: id, 8-bit, clk49 : set-slave ( -- ) camera-smb-slave 2* 2 lshift 87.fc01 or b8 cl! ; \ TWSI control 0: id, 8-bit, clk 50 50 51 51 : ov@ ( reg -- data ) -
dev/olpc/dcon/mmp2dcon.fth
r3195 r3197 7 7 ; 8 8 9 0 0 " 1a" " /dcon-i2c" begin-package9 0 0 " 0d" " /dcon-i2c" begin-package 10 10 11 11 " dcon" device-name 12 12 " olpc,xo1-dcon" +compatible 13 13 " olpc,xo1.75-dcon" +compatible 14 h# 1a1 reg14 my-space 1 reg 15 15 16 16 0 0 encode-bytes … … 58 58 dcon-sda-gpio# to smb-data-gpio# 59 59 60 h# 1ato smb-slave60 h# 0d to smb-slave 61 61 ; 62 62 -
dev/olpc/mmp2camera/smbus.fth
r2880 r3197 79 79 80 80 0 value smb-slave 81 : smb-addr ( lowbit -- ) smb-slave or smb-byte ;81 : smb-addr ( lowbit -- ) smb-slave 2* or smb-byte ; 82 82 83 83 : smb-byte! ( byte reg# -- ) -
dev/olpc/ov7670.fth
r2880 r3197 149 149 150 150 : probe-ov7670 ( -- found? ) 151 h# 42to camera-smb-slave ( ) \ Omnivision SMB ID151 h# 21 to camera-smb-slave ( ) \ Omnivision SMB ID 152 152 camera-smb-on 153 153 -
dev/olpc/seti.fth
r2887 r3197 295 295 296 296 : probe-seti ( -- found? ) 297 h# 66to camera-smb-slave ( )297 h# 33 to camera-smb-slave ( ) 298 298 camera-smb-on ( ) 299 299 -
dev/olpc/viacamera/platform.fth
r2880 r3197 3 3 4 4 h# 26 constant dcon-port 5 : dcon-setup ( -- ) dcon-port to smb-port h# 1ato smb-slave ;5 : dcon-setup ( -- ) dcon-port to smb-port h# 0d to smb-slave ; 6 6 : smb-init ( -- ) dcon-setup smb-on smb-pulses ; 7 7 -
dev/olpc/viacamera/smbus.fth
r2880 r3197 74 74 75 75 0 value smb-slave 76 : smb-addr ( lowbit -- ) smb-slave or smb-byte ;76 : smb-addr ( lowbit -- ) smb-slave 2* or smb-byte ; 77 77 78 78 : smb-byte! ( byte reg# -- ) -
dev/via/unichrome/dconsmb.fth
r1206 r3197 71 71 72 72 0 value smb-slave 73 : smb-addr ( lowbit -- ) smb-slave or smb-byte ;73 : smb-addr ( lowbit -- ) smb-slave 2* or smb-byte ; 74 74 : smb-word! ( word reg# -- ) 75 75 smb-start … … 96 96 : smb-init ( -- ) smb-on smb-pulses ; 97 97 98 : dcon@ ( reg# -- word ) h# 1ato smb-slave smb-word@ ;99 : dcon! ( word reg# -- ) h# 1ato smb-slave smb-word! ;98 : dcon@ ( reg# -- word ) h# 0d to smb-slave smb-word@ ; 99 : dcon! ( word reg# -- ) h# 0d to smb-slave smb-word! ;
Note: See TracChangeset
for help on using the changeset viewer.
