Changeset c2b2de7 in mainline for uspace/drv/infrastructure/rootamdm37x/cm/core.h
- 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. - File:
-
- 1 moved
-
uspace/drv/infrastructure/rootamdm37x/cm/core.h (moved) (moved from uspace/drv/infrastructure/rootamdm37x/core_cm.h ) (5 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
Note:
See TracChangeset
for help on using the changeset viewer.
