Changeset a5a73c0 in mainline
- Timestamp:
- 2012-10-15T19:50:53Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 71d09d6e
- Parents:
- 52fc805
- Location:
- uspace
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/infrastructure/rootamdm37x/clock_control_cm.h
r52fc805 ra5a73c0 73 73 #define CLOCK_CONTROL_CM_CLKEN_PLL_EN_PERIPH2_DPLL_LOCK (0x7) 74 74 75 PADD32 (2);75 PADD32[2]; 76 76 77 77 const ioport32_t idlest_ckgen; … … 94 94 #define CLOCK_CONTROL_CM_IDLEST2_CKGEN_ST_PERIPH2_CLK_FLAG (1 << 0) 95 95 96 PADD32 (2);96 PADD32[2]; 97 97 98 98 ioport32_t autoidle_pll; … … 109 109 #define CLOCK_CONTROL_CM_AUTOIDLE2_PLL_AUTO_PERIPH2_DPLL_AUTOMATIC (0x1) 110 110 111 PADD32 (2);111 PADD32[2]; 112 112 113 113 ioport32_t clksel1_pll; -
uspace/drv/infrastructure/rootamdm37x/core_cm.h
r52fc805 ra5a73c0 36 36 #define AMDM37x_CORE_CM_H 37 37 #include <sys/types.h> 38 #include <macros.h> 38 39 39 40 /* AM/DM37x TRM p.447 */ … … 61 62 #define CORE_CM_FCLKEN1_EN_MMC3_FLAG (1 << 30) 62 63 63 uint32_t padd0_;64 PADD32; 64 65 ioport32_t fclken3; 65 66 #define CORE_CM_FCLKEN3_EN_TS_FLAG (1 << 1) 66 67 #define CORE_CM_FCLKEN3_EN_USBTLL_FLAG (1 << 2) 67 68 68 uint32_t padd1_;69 PADD32; 69 70 ioport32_t iclken1; 70 71 #define CORE_CM_ICLKEN1_EN_SDRC_FLAG (1 << 1) … … 95 96 #define CORE_CM_ICLKEN3_EN_USBTLL_FLAG (1 << 2) 96 97 97 uint32_t padd2_;98 PADD32; 98 99 const ioport32_t idlest1; 99 100 #define CORE_CM_IDLEST1_ST_SDRC_FLAG (1 << 1) … … 126 127 #define CORE_CM_IDLEST3_ST_USBTLL_FLAG (1 << 2) 127 128 128 uint32_t padd3_;129 PADD32; 129 130 ioport32_t autoidle1; 130 131 #define CORE_CM_AUTOIDLE1_AUTO_HSOTGUSB_FLAG (1 << 4) … … 154 155 #define CORE_CM_AUTOIDLE3_AUTO_USBTLL_FLAG (1 << 2) 155 156 156 uint32_t padd4_;157 PADD32; 157 158 ioport32_t clksel; 158 159 #define CORE_CM_CLKSEL_CLKSEL_L3_MASK (0x3 << 0) … … 168 169 #define CORE_CM_CLKSEL_CLKSEL_GPT11_FLAG (1 << 7) 169 170 170 uint32_t padd5_;171 PADD32; 171 172 ioport32_t clkstctrl; 172 173 #define CORE_CM_CLKCTRL_CLKCTRL_L3_MASK (0x3 << 0) -
uspace/drv/infrastructure/rootamdm37x/uhh.h
r52fc805 ra5a73c0 35 35 #ifndef AMDM37x_UHH_H 36 36 #define AMDM37x_UHH_H 37 #include <macros.h> 37 38 #include <sys/types.h> 38 39 … … 45 46 #define UHH_REVISION_MAJOR_MASK 0xf0 46 47 47 uint32_t padd0_[3];48 PADD32[3]; 48 49 ioport32_t sysconfig; 49 50 #define UHH_SYSCONFIG_AUTOIDLE_FLAG (1 << 0) … … 65 66 #define UHH_SYSSTATUS_EHCI_RESETDONE_FLAG (1 << 2) 66 67 67 uint32_t padd1_[10];68 PADD32[10]; 68 69 ioport32_t hostconfig; 69 70 #define UHH_HOSTCONFIG_P1_ULPI_BYPASS_FLAG (1 << 0) -
uspace/drv/infrastructure/rootamdm37x/usbhost_cm.h
r52fc805 ra5a73c0 35 35 #ifndef AMDM37x_USBHOST_CM_H 36 36 #define AMDM37x_USBHOST_CM_H 37 #include <macros.h> 37 38 #include <sys/types.h> 38 39 … … 46 47 #define USBHOST_CM_FCLKEN_EN_USBHOST2_FLAG (1 << 1) 47 48 48 uint32_t padd0_[3];49 PADD32[3]; 49 50 ioport32_t iclken; 50 51 #define USBHOST_CM_ICLKEN_EN_USBHOST (1 << 0) 51 52 52 uint32_t padd1_[3];53 PADD32[3]; 53 54 const ioport32_t idlest; 54 55 #define USBHOST_CM_IDLEST_ST_USBHOST_STDBY_FLAG (1 << 0) 55 56 #define USBHOST_CM_IDLEST_ST_USBHOST_IDLE_FLAG (1 << 1) 56 57 57 uint32_t padd2_[3];58 PADD32[3]; 58 59 ioport32_t autoidle; 59 60 #define USBHOST_CM_AUTOIDLE_AUTO_USBHOST_FLAG (1 << 0) 60 61 61 uint32_t padd3_[4];62 PADD32[4]; 62 63 ioport32_t sleepdep; 63 64 #define USBHOST_CM_SLEEPDEP_EN_MPU_FLAG (1 << 1) -
uspace/drv/infrastructure/rootamdm37x/usbtll.h
r52fc805 ra5a73c0 35 35 #ifndef AMDM37x_USBTLL_H 36 36 #define AMDM37x_USBTLL_H 37 #include <macros.h> 37 38 #include <sys/types.h> 38 39 … … 45 46 #define TLL_REVISION_MAJOR_MASK 0xf0 46 47 47 uint32_t padd0_[3];48 PADD32[3]; 48 49 ioport32_t sysconfig; 49 50 #define TLL_SYSCONFIG_AUTOIDLE_FLAG (1 << 0) … … 69 70 #define TLL_IRQSTATUS_ACCESS_ERROR_EN_FLAG (1 << 2) 70 71 71 uint32_t padd1_[4];72 PADD32[4]; 72 73 ioport32_t shared_conf; 73 74 #define TLL_SHARED_CONF_FCLK_IS_ON_FLAG (1 << 0) … … 78 79 #define TLL_SHARED_CONF_USB_90D_DDR_EN_FLAG (1 << 6) 79 80 80 uint32_t padd2_[3];81 PADD32[3]; 81 82 ioport32_t channel_conf[3]; 82 83 #define TLL_CHANNEL_CONF_CHANEN_FLAG (1 << 0) -
uspace/lib/c/include/macros.h
r52fc805 ra5a73c0 62 62 #define _paddname(line) PADD_ ## line ## __ 63 63 #define _padd(width, line) uint ## width ## _t _paddname(line) 64 #define PADD32 (count) _padd(32, __LINE__)[count]65 #define PADD16 (count) _padd(16, __LINE__)[count]66 #define PADD8 (count) _padd(8, __LINE__)[count]64 #define PADD32 _padd(32, __LINE__) 65 #define PADD16 _padd(16, __LINE__) 66 #define PADD8 _padd(8, __LINE__) 67 67 68 68 /** @}
Note:
See TracChangeset
for help on using the changeset viewer.