Changeset 3185


Ignore:
Timestamp:
Aug 16, 2012, 11:25:00 PM (3 years ago)
Author:
wmb
Message:

OLPC ARM - Added USB properties.

Files:
6 edited

Legend:

Unmodified
Added
Removed
  • cpu/arm/marvell/utmiphy.fth

    r2731 r3185  
    22purpose: Init UTMI USB Phy in Marvell SoC
    33
     40 0   " d4207000"  " /" begin-package
     5
     6" usb2-phy" device-name
     7
     8my-address my-space h# 100 reg
     9" mrvl,mmp2-utmiphy" +compatible
     10   
    411: +utmi  ( offset -- offset' )  h# 20.7000 +  ;
    512
     
    3744h# 0000.00a0 value rx-set   \            a
    3845
    39 : init-usb-phy  ( -- )
     46: init  ( -- )
    4047[ifdef] notdef
    4148   ." Interacting before USB PHY init." cr
     
    8491: enable-ulpi-phy  ( -- )  h# 100 utmi-ctl1 io-set  ;
    8592: select-ulpi-data  ( -- )  h# 200 utmi-ctl1 io-set  ;
     93
     94: open  ( -- true )  true  ;
     95: close  ;
     96
     97end-package
  • cpu/arm/mmp2/ulpiphy.fth

    r2734 r3185  
    11\ See license at end of file
    22purpose: Access to miscellaneous control/enable registers for the ULPI PHY portion of the USB SPH controller
     3
     40 0   " d4207000"  " /" begin-package
     5
     6" mrvl,mmp2-ulpiphy" +compatible
    37
    48h# 3800 io2-va + constant usbsph-misc-va
     
    1317: ulpi-clock-on  ( -- )  usbsph-ctrl@ 1 or usbsph-ctrl!  ;
    1418: 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
     29end-package
    1530
    1631\ LICENSE_BEGIN
  • cpu/arm/mmp3/usb2phy.fth

    r3121 r3185  
    22purpose: Init USB2 Phy in Marvell SoC
    33
     40 0   " d4207000"  " /" begin-package
     5
     6" usb2-phy" device-name
     7
     8my-address my-space h# 100 reg
     9" mrvl,mmp3-usb2phy" +compatible
     10   
    411: +usb2  ( offset -- offset' )  h# 20.7000 +  ;
    512
     
    3744;
    3845
    39 : init-usb-phy  ( -- )
     46: init  ( -- )
    4047   h# f00  h# 100 +pmua  io-clr
    4148\  h# d00  h# 100 +pmua  io-set   \ Select 26 MHz VCXO clock
     
    8693   d# 100 wait-cal
    8794;
     95
     96: open  ( -- true )  true  ;
     97: close  ;
     98
     99end-package
  • cpu/arm/olpc/3.0/usb.fth

    r3049 r3185  
    1818   ;
    1919   : 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
    2030   false constant has-dbgp-regs?
    2131   false constant needs-dummy-qh?
     
    4353: (reset-usb-hub)  ( -- )
    4454   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
    4856;
    4957' (reset-usb-hub) to reset-usb-hub
  • cpu/arm/olpc/usb.fth

    r3105 r3185  
    1111   " /pmua" encode-phandle 5 encode-int encode+ " clocks" property
    1212   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
    1321
    1422   false constant has-dbgp-regs?
     
    3038   h# 9 h# 5c pmua!  \ Enable clock to USB block
    3139   reset-usb-hub
    32    init-usb-phy
     40   " /usb2-phy" " init" execute-device-method drop
    3341;
    3442
  • dev/usb2/hcd/ehci/ehci.fth

    r2591 r3185  
    33
    44" ehci" encode-string " device_type" property
     5
     6" usb-ehci" +compatible
    57
    68hex
Note: See TracChangeset for help on using the changeset viewer.