Ignore:
Timestamp:
2012-10-17T22:17:29Z (12 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
150a271
Parents:
6454ad47 (diff), 57912af3 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

merge changes from bbxm branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/infrastructure/rootamdm37x/uhh.h

    r6454ad47 rc2b2de7  
    3535#ifndef AMDM37x_UHH_H
    3636#define AMDM37x_UHH_H
     37#include <macros.h>
    3738#include <sys/types.h>
    3839
     
    4243typedef struct {
    4344        const ioport32_t revision;
    44 #define UHH_REVISION_MASK  0xf
    45 #define UHH_REVISION_MINOR_SHIFT  0
    46 #define UHH_REVISION_MAJOR_SHIFT  4
     45#define UHH_REVISION_MINOR_MASK  0x0f
     46#define UHH_REVISION_MAJOR_MASK  0xf0
    4747
    48         uint32_t padd0_[3];
     48        PADD32[3];
    4949        ioport32_t sysconfig;
    5050#define UHH_SYSCONFIG_AUTOIDLE_FLAG  (1 << 0)
    5151#define UHH_SYSCONFIG_SOFTRESET_FLAG  (1 << 1)
    5252#define UHH_SYSCONFIG_ENWAKEUP_FLAG  (1 << 2)
     53#define UHH_SYSCONFIG_SIDLE_MODE_MASK  (0x3 << 3)
     54#define UHH_SYSCONFIG_SIDLE_MODE_FORCE  (0x0 << 3)
     55#define UHH_SYSCONFIG_SIDLE_MODE_NO  (0x1 << 3)
     56#define UHH_SYSCONFIG_SIDLE_MODE_SMART  (0x2 << 3)
    5357#define UHH_SYSCONFIG_CLOCKACTIVITY_FLAG  (1 << 8)
    54 #define UHH_SYSCONFIG_SIDLE_MODE_MASK  0x3
    55 #define UHH_SYSCONFIG_SIDLE_MODE_SHIFT  3
    56 #define UHH_SYSCONFIG_MIDLE_MODE_MASK  0x3
    57 #define UHH_SYSCONFIG_MIDLE_MODE_SHIFT  12
     58#define UHH_SYSCONFIG_MIDLE_MODE_MASK  (0x3 << 12)
     59#define UHH_SYSCONFIG_MIDLE_MODE_FORCE  (0x0 << 12)
     60#define UHH_SYSCONFIG_MIDLE_MODE_NO  (0x1 << 12)
     61#define UHH_SYSCONFIG_MIDLE_MODE_SMART  (0x2 << 12)
    5862
    5963        const ioport32_t sysstatus;
     
    6266#define UHH_SYSSTATUS_EHCI_RESETDONE_FLAG  (1 << 2)
    6367
    64         uint32_t padd1_[10];
     68        PADD32[10];
    6569        ioport32_t hostconfig;
    6670#define UHH_HOSTCONFIG_P1_ULPI_BYPASS_FLAG  (1 << 0)
     
    7781
    7882        ioport32_t debug_csr;
    79 #define UHH_DEBUG_CSR_EHCI_FLADJ_MASK  (0x3f)
    80 #define UHH_DEBUG_CSR_EHCI_FLADJ_SHIFT  0
     83#define UHH_DEBUG_CSR_EHCI_FLADJ_MASK  (0x3f << 0)
     84#define UHH_DEBUG_CSR_EHCI_FLADJ(x)  ((x) & 0x3f)
    8185#define UHH_DEBUG_CSR_EHCI_SIMULATION_MODE_FLAG  (1 << 6)
    8286#define UHH_DEBUG_CSR_OHCI_CNTSEL_FLAG  (1 << 7)
Note: See TracChangeset for help on using the changeset viewer.