Changeset bf6f6ca in mainline


Ignore:
Timestamp:
2012-11-20T14:05:37Z (11 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
bf2a269
Parents:
19acf24
Message:

rootamdm37x: Check USB TLL accessibility before accessing the module.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/infrastructure/rootamdm37x/rootamdm37x.c

    r19acf24 rbf6f6ca  
    340340static int usb_tll_init(amdm37x_t *device)
    341341{
     342        /* Check access */
     343        if (pio_read_32(&device->cm.core->idlest3) & CORE_CM_IDLEST3_ST_USBTLL_FLAG) {
     344                ddf_msg(LVL_ERROR, "USB TLL is not accessible");
     345                return EIO;
     346        }
     347
    342348        /* Reset USB TLL */
    343349        pio_set_32(&device->tll->sysconfig, TLL_SYSCONFIG_SOFTRESET_FLAG, 5);
Note: See TracChangeset for help on using the changeset viewer.