Changeset c2b2de7 in mainline for uspace/drv/infrastructure/rootamdm37x/uhh.h
- Timestamp:
- 2012-10-17T22:17:29Z (12 years ago)
- 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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/infrastructure/rootamdm37x/uhh.h
r6454ad47 rc2b2de7 35 35 #ifndef AMDM37x_UHH_H 36 36 #define AMDM37x_UHH_H 37 #include <macros.h> 37 38 #include <sys/types.h> 38 39 … … 42 43 typedef struct { 43 44 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 47 47 48 uint32_t padd0_[3];48 PADD32[3]; 49 49 ioport32_t sysconfig; 50 50 #define UHH_SYSCONFIG_AUTOIDLE_FLAG (1 << 0) 51 51 #define UHH_SYSCONFIG_SOFTRESET_FLAG (1 << 1) 52 52 #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) 53 57 #define UHH_SYSCONFIG_CLOCKACTIVITY_FLAG (1 << 8) 54 #define UHH_SYSCONFIG_ SIDLE_MODE_MASK 0x355 #define UHH_SYSCONFIG_ SIDLE_MODE_SHIFT 356 #define UHH_SYSCONFIG_MIDLE_MODE_ MASK 0x357 #define UHH_SYSCONFIG_MIDLE_MODE_S HIFT 1258 #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) 58 62 59 63 const ioport32_t sysstatus; … … 62 66 #define UHH_SYSSTATUS_EHCI_RESETDONE_FLAG (1 << 2) 63 67 64 uint32_t padd1_[10];68 PADD32[10]; 65 69 ioport32_t hostconfig; 66 70 #define UHH_HOSTCONFIG_P1_ULPI_BYPASS_FLAG (1 << 0) … … 77 81 78 82 ioport32_t debug_csr; 79 #define UHH_DEBUG_CSR_EHCI_FLADJ_MASK (0x3f )80 #define UHH_DEBUG_CSR_EHCI_FLADJ _SHIFT 083 #define UHH_DEBUG_CSR_EHCI_FLADJ_MASK (0x3f << 0) 84 #define UHH_DEBUG_CSR_EHCI_FLADJ(x) ((x) & 0x3f) 81 85 #define UHH_DEBUG_CSR_EHCI_SIMULATION_MODE_FLAG (1 << 6) 82 86 #define UHH_DEBUG_CSR_OHCI_CNTSEL_FLAG (1 << 7)
Note:
See TracChangeset
for help on using the changeset viewer.