Changeset 3185
- Timestamp:
- Aug 17, 2012 1:25:00 AM (10 months ago)
- Files:
-
- 6 edited
-
cpu/arm/marvell/utmiphy.fth (modified) (3 diffs)
-
cpu/arm/mmp2/ulpiphy.fth (modified) (2 diffs)
-
cpu/arm/mmp3/usb2phy.fth (modified) (3 diffs)
-
cpu/arm/olpc/3.0/usb.fth (modified) (2 diffs)
-
cpu/arm/olpc/usb.fth (modified) (2 diffs)
-
dev/usb2/hcd/ehci/ehci.fth (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
cpu/arm/marvell/utmiphy.fth
r2731 r3185 2 2 purpose: Init UTMI USB Phy in Marvell SoC 3 3 4 0 0 " d4207000" " /" begin-package 5 6 " usb2-phy" device-name 7 8 my-address my-space h# 100 reg 9 " mrvl,mmp2-utmiphy" +compatible 10 4 11 : +utmi ( offset -- offset' ) h# 20.7000 + ; 5 12 … … 37 44 h# 0000.00a0 value rx-set \ a 38 45 39 : init -usb-phy( -- )46 : init ( -- ) 40 47 [ifdef] notdef 41 48 ." Interacting before USB PHY init." cr … … 84 91 : enable-ulpi-phy ( -- ) h# 100 utmi-ctl1 io-set ; 85 92 : select-ulpi-data ( -- ) h# 200 utmi-ctl1 io-set ; 93 94 : open ( -- true ) true ; 95 : close ; 96 97 end-package -
cpu/arm/mmp2/ulpiphy.fth
r2734 r3185 1 1 \ See license at end of file 2 2 purpose: Access to miscellaneous control/enable registers for the ULPI PHY portion of the USB SPH controller 3 4 0 0 " d4207000" " /" begin-package 5 6 " mrvl,mmp2-ulpiphy" +compatible 3 7 4 8 h# 3800 io2-va + constant usbsph-misc-va … … 13 17 : ulpi-clock-on ( -- ) usbsph-ctrl@ 1 or usbsph-ctrl! ; 14 18 : ulpi-clock-select ( -- ) usbsph-ctrl@ h# 400 or usbsph-ctrl! ; 19 20 : init ( -- ) 21 ulpi-clock-on 22 ulpi-clock-select 23 ulpi-on 24 ; 25 26 : open ( -- true ) true ; 27 : close ; 28 29 end-package 15 30 16 31 \ LICENSE_BEGIN -
cpu/arm/mmp3/usb2phy.fth
r3121 r3185 2 2 purpose: Init USB2 Phy in Marvell SoC 3 3 4 0 0 " d4207000" " /" begin-package 5 6 " usb2-phy" device-name 7 8 my-address my-space h# 100 reg 9 " mrvl,mmp3-usb2phy" +compatible 10 4 11 : +usb2 ( offset -- offset' ) h# 20.7000 + ; 5 12 … … 37 44 ; 38 45 39 : init -usb-phy( -- )46 : init ( -- ) 40 47 h# f00 h# 100 +pmua io-clr 41 48 \ h# d00 h# 100 +pmua io-set \ Select 26 MHz VCXO clock … … 86 93 d# 100 wait-cal 87 94 ; 95 96 : open ( -- true ) true ; 97 : close ; 98 99 end-package -
cpu/arm/olpc/3.0/usb.fth
r3049 r3185 18 18 ; 19 19 : my-map-out ( adr len -- ) swap h# 100 - swap " map-out" $call-parent ; 20 " /pmua" encode-phandle d# 18 encode-int encode+ " clocks" property 21 d# 34 " interrupts" integer-property 22 23 " mrvl,mmp3-fsic" +compatible 24 25 " host" " dr_mode" string-property 26 " ulpi" " phy_type" string_property 27 28 " /usb-phy" encode-phandle " transceiver" property 29 20 30 false constant has-dbgp-regs? 21 31 false constant needs-dummy-qh? … … 43 53 : (reset-usb-hub) ( -- ) 44 54 d# 146 gpio-clr d# 10 ms d# 146 gpio-set \ Resets ULPI hub 45 ulpi-clock-on 46 ulpi-clock-select 47 ulpi-on 55 " /usb2-phy" " init" execute-device-method 48 56 ; 49 57 ' (reset-usb-hub) to reset-usb-hub -
cpu/arm/olpc/usb.fth
r3105 r3185 11 11 " /pmua" encode-phandle 5 encode-int encode+ " clocks" property 12 12 d# 44 " interrupts" integer-property 13 14 " mrvl,pxa-u2oehci" +compatible 15 " mrvl,mmp3-u2oehci" +compatible 16 17 " host" " dr_mode" string-property 18 " utmi" " phy_type" string-property 19 20 " /usb2-phy" encode-phandle " transceiver" property 13 21 14 22 false constant has-dbgp-regs? … … 30 38 h# 9 h# 5c pmua! \ Enable clock to USB block 31 39 reset-usb-hub 32 init-usb-phy40 " /usb2-phy" " init" execute-device-method drop 33 41 ; 34 42 -
dev/usb2/hcd/ehci/ehci.fth
r2591 r3185 3 3 4 4 " ehci" encode-string " device_type" property 5 6 " usb-ehci" +compatible 5 7 6 8 hex
Note: See TracChangeset
for help on using the changeset viewer.
