Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 302f9b2 in mainline


Ignore:
Timestamp:
2011-07-11T18:56:55Z (10 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master
Children:
2fe28ca1
Parents:
7372a9a0
Message:

OHCI: Root hub: Turn off all ports during initialization.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/ohci/root_hub.c

    r7372a9a0 r302f9b2  
    181181        instance->registers->rh_desc_a &= ~RHDA_NPS_FLAG;
    182182        instance->registers->rh_desc_a &= ~RHDA_PSM_FLAG;
     183        instance->registers->rh_status = RHS_CLEAR_GLOBAL_POWER;
    183184#else
    184185        /* Set port power mode to no per port power-switching. */
     
    186187        instance->registers->rh_desc_a |= RHDA_PSM_FLAG;
    187188
     189        /* Control all ports by global switch and turn them off */
     190        instance->registers->rh_desc_b &= (RHDB_PCC_MASK << RHDB_PCC_SHIFT);
     191        instance->registers->rh_status = RHS_CLEAR_GLOBAL_POWER;
     192        /* Return control to per port state */
     193        instance->registers->rh_desc_b |=
     194                ((1 << (instance->port_count + 1)) - 1) << RHDB_PCC_SHIFT;
    188195#endif
    189196
Note: See TracChangeset for help on using the changeset viewer.