Ignore:
Timestamp:
2012-10-15T19:27:58Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a5a73c0
Parents:
f4c9e42
Message:

rootamdm37x: Use new pio functions to access UHH and TLL

File:
1 edited

Legend:

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

    rf4c9e42 r52fc805  
    4242typedef struct {
    4343        const ioport32_t revision;
    44 #define UHH_REVISION_MASK  0xf
    45 #define UHH_REVISION_MINOR_SHIFT  0
    46 #define UHH_REVISION_MAJOR_SHIFT  4
     44#define UHH_REVISION_MINOR_MASK  0x0f
     45#define UHH_REVISION_MAJOR_MASK  0xf0
    4746
    4847        uint32_t padd0_[3];
     
    5150#define UHH_SYSCONFIG_SOFTRESET_FLAG  (1 << 1)
    5251#define UHH_SYSCONFIG_ENWAKEUP_FLAG  (1 << 2)
     52#define UHH_SYSCONFIG_SIDLE_MODE_MASK  (0x3 << 3)
     53#define UHH_SYSCONFIG_SIDLE_MODE_FORCE  (0x0 << 3)
     54#define UHH_SYSCONFIG_SIDLE_MODE_NO  (0x1 << 3)
     55#define UHH_SYSCONFIG_SIDLE_MODE_SMART  (0x2 << 3)
    5356#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
     57#define UHH_SYSCONFIG_MIDLE_MODE_MASK  (0x3 << 12)
     58#define UHH_SYSCONFIG_MIDLE_MODE_FORCE  (0x0 << 12)
     59#define UHH_SYSCONFIG_MIDLE_MODE_NO  (0x1 << 12)
     60#define UHH_SYSCONFIG_MIDLE_MODE_SMART  (0x2 << 12)
    5861
    5962        const ioport32_t sysstatus;
     
    7780
    7881        ioport32_t debug_csr;
    79 #define UHH_DEBUG_CSR_EHCI_FLADJ_MASK  (0x3f)
    80 #define UHH_DEBUG_CSR_EHCI_FLADJ_SHIFT  0
     82#define UHH_DEBUG_CSR_EHCI_FLADJ_MASK  (0x3f << 0)
     83#define UHH_DEBUG_CSR_EHCI_FLADJ(x)  ((x) & 0x3f)
    8184#define UHH_DEBUG_CSR_EHCI_SIMULATION_MODE_FLAG  (1 << 6)
    8285#define UHH_DEBUG_CSR_OHCI_CNTSEL_FLAG  (1 << 7)
Note: See TracChangeset for help on using the changeset viewer.