Changeset c2b2de7 in mainline for uspace/drv/infrastructure/rootamdm37x/cm
- Timestamp:
- 2012-10-17T22:17:29Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 150a2718
- 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. - Location:
- uspace/drv/infrastructure/rootamdm37x/cm
- Files:
-
- 1 added
- 2 moved
-
clock_control.h (added)
-
core.h (moved) (moved from uspace/drv/infrastructure/rootamdm37x/core_cm.h ) (5 diffs)
-
usbhost.h (moved) (moved from uspace/drv/infrastructure/rootamdm37x/usbhost_cm.h ) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/infrastructure/rootamdm37x/cm/core.h
r6454ad47 rc2b2de7 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 #define CORE_CM_CLKSEL_CLKSEL_L3_MASK 0x3 159 #define CORE_CM_CLKSEL_CLKSEL_L3_SHIFT 0 160 #define CORE_CM_CLKSEL_CLKSEL_L3_DIVIDED1 0x1 161 #define CORE_CM_CLKSEL_CLKSEL_L3_DIVIDED2 0x2 162 #define CORE_CM_CLKSEL_CLKSEL_L4_MASK 0x3 163 #define CORE_CM_CLKSEL_CLKSEL_L4_SHIFT 2 164 #define CORE_CM_CLKSEL_CLKSEL_L4_DIVIDED1 0x1 165 #define CORE_CM_CLKSEL_CLKSEL_L4_DIVIDED2 0x2 166 #define CORE_CM_CLKSEL_CLKSEL_96M_MASK 0x3 167 #define CORE_CM_CLKSEL_CLKSEL_96M_SHIFT 2 168 #define CORE_CM_CLKSEL_CLKSEL_96M_DIVIDED1 0x1 169 #define CORE_CM_CLKSEL_CLKSEL_96M_DIVIDED2 0x2 159 #define CORE_CM_CLKSEL_CLKSEL_L3_MASK (0x3 << 0) 160 #define CORE_CM_CLKSEL_CLKSEL_L3_DIVIDED1 (0x1 << 0) 161 #define CORE_CM_CLKSEL_CLKSEL_L3_DIVIDED2 (0x2 << 0) 162 #define CORE_CM_CLKSEL_CLKSEL_L4_MASK (0x3 << 2) 163 #define CORE_CM_CLKSEL_CLKSEL_L4_DIVIDED1 (0x1 << 2) 164 #define CORE_CM_CLKSEL_CLKSEL_L4_DIVIDED2 (0x2 << 2) 165 #define CORE_CM_CLKSEL_CLKSEL_96M_MASK (0x3 << 12) 166 #define CORE_CM_CLKSEL_CLKSEL_96M_DIVIDED1 (0x1 << 12) 167 #define CORE_CM_CLKSEL_CLKSEL_96M_DIVIDED2 (0x2 << 12) 170 168 #define CORE_CM_CLKSEL_CLKSEL_GPT10_FLAG (1 << 6) 171 #define CORE_CM_CLKSEL_CLKSEL_GPT11_FLAG (1 << 6)169 #define CORE_CM_CLKSEL_CLKSEL_GPT11_FLAG (1 << 7) 172 170 173 uint32_t padd5_;171 PADD32; 174 172 ioport32_t clkstctrl; 175 #define CORE_CM_CLKCTRL_CLKCTRL_L3_MASK 0x3 176 #define CORE_CM_CLKCTRL_CLKCTRL_L3_SHIFT 0 177 #define CORE_CM_CLKCTRL_CLKCTRL_L3_AUTO_EN 0x0 178 #define CORE_CM_CLKCTRL_CLKCTRL_L3_AUTO_DIS 0x3 179 #define CORE_CM_CLKCTRL_CLKCTRL_L4_MASK 0x3 180 #define CORE_CM_CLKCTRL_CLKCTRL_L4_SHIFT 2 181 #define CORE_CM_CLKCTRL_CLKCTRL_L4_AUTO_EN 0x0 182 #define CORE_CM_CLKCTRL_CLKCTRL_L4_AUTO_DIS 0x3 173 #define CORE_CM_CLKCTRL_CLKCTRL_L3_MASK (0x3 << 0) 174 #define CORE_CM_CLKCTRL_CLKCTRL_L3_AUTO_EN (0x0 << 0) 175 #define CORE_CM_CLKCTRL_CLKCTRL_L3_AUTO_DIS (0x3 << 0) 176 #define CORE_CM_CLKCTRL_CLKCTRL_L4_MASK (0x3 << 2) 177 #define CORE_CM_CLKCTRL_CLKCTRL_L4_AUTO_EN (0x0 << 2) 178 #define CORE_CM_CLKCTRL_CLKCTRL_L4_AUTO_DIS (0x3 << 2) 183 179 184 180 const ioport32_t clkstst; 185 181 #define CORE_CM_CLKSTST_CLKACTIVITY_L3_FLAG (1 << 0) 186 182 #define CORE_CM_CLKSTST_CLKACTIVITY_L4_FLAG (1 << 1) 187 188 183 } core_cm_regs_t; 189 184 -
uspace/drv/infrastructure/rootamdm37x/cm/usbhost.h
r6454ad47 rc2b2de7 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) … … 65 66 66 67 ioport32_t clkstctrl; 67 #define USBHOST_CM_CLKSTCTRL_CLKSTCTRL_USBHOST_MASK 0x3 68 #define USBHOST_CM_CLKSTCTRL_CLKSTCTRL_USBHOST_SHIFT 0 69 #define USBHOST_CM_CLKSTCTRL_CLKSTCTRL_USBHOST_AUTO_DIS 0x0 70 #define USBHOST_CM_CLKSTCTRL_CLKSTCTRL_USBHOST_SUPERVISED_SLEEP 0x1 71 #define USBHOST_CM_CLKSTCTRL_CLKSTCTRL_USBHOST_SUPERVISED_WAKEUP 0x2 72 #define USBHOST_CM_CLKSTCTRL_CLKSTCTRL_USBHOST_AUTO_EN 0x1 68 #define USBHOST_CM_CLKSTCTRL_CLKSTCTRL_USBHOST_MASK (0x3 << 0) 69 #define USBHOST_CM_CLKSTCTRL_CLKSTCTRL_USBHOST_AUTO_DIS (0x0 << 0) 70 #define USBHOST_CM_CLKSTCTRL_CLKSTCTRL_USBHOST_SUPERVISED_SLEEP (0x1 << 0) 71 #define USBHOST_CM_CLKSTCTRL_CLKSTCTRL_USBHOST_SUPERVISED_WAKEUP (0x2 << 0) 72 #define USBHOST_CM_CLKSTCTRL_CLKSTCTRL_USBHOST_AUTO_EN (0x3 << 0) 73 73 74 74 ioport32_t clkstst;
Note:
See TracChangeset
for help on using the changeset viewer.
