Changeset e9d636d0 in mainline for uspace/drv/infrastructure/rootamdm37x/clock_control_cm.h
- Timestamp:
- 2012-10-15T18:00:59Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f4c9e42
- Parents:
- f25f1e6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/infrastructure/rootamdm37x/clock_control_cm.h
rf25f1e6 re9d636d0 55 55 #define CLOCK_CONTROL_CM_CLKEN_PLL_PWRDN_96M_FLAG (1 << 27) 56 56 #define CLOCK_CONTROL_CM_CLKEN_PLL_EN_PERIPH_DPLL_DRIFTGUARD_FLAG (1 << 19) 57 #define CLOCK_CONTROL_CM_CLKEN_PLL_EN_PERIPH_DPLL_MASK (0x7) 58 #define CLOCK_CONTROL_CM_CLKEN_PLL_EN_PERIPH_DPLL_SHIFT (16) 59 #define CLOCK_CONTROL_CM_CLKEN_PLL_EN_PERIPH_DPLL_LP_STOP (0x1) 60 #define CLOCK_CONTROL_CM_CLKEN_PLL_EN_PERIPH_DPLL_LOCK (0x7) 57 #define CLOCK_CONTROL_CM_CLKEN_PLL_EN_PERIPH_DPLL_MASK (0x7 << 16) 58 #define CLOCK_CONTROL_CM_CLKEN_PLL_EN_PERIPH_DPLL_LP_STOP (0x1 << 16) 59 #define CLOCK_CONTROL_CM_CLKEN_PLL_EN_PERIPH_DPLL_LOCK (0x7 << 16) 61 60 #define CLOCK_CONTROL_CM_CLKEN_PLL_PWRDN_EMU_CORE_FLAG (1 << 12) 62 61 #define CLOCK_CONTROL_CM_CLKEN_PLL_EN_CORE_DPLL_LPMODE_FLAG (1 << 10) 63 62 #define CLOCK_CONTROL_CM_CLKEN_PLL_EN_CORE_DPLL_DRIFTGUARD_FLAG (1 << 3) 64 63 #define CLOCK_CONTROL_CM_CLKEN_PLL_EN_CORE_DPLL_MASK (0x7) 65 #define CLOCK_CONTROL_CM_CLKEN_PLL_EN_CORE_DPLL_SHIFT (0)66 64 #define CLOCK_CONTROL_CM_CLKEN_PLL_EN_CORE_DPLL_LP_BYPASS (0x5) 67 65 #define CLOCK_CONTROL_CM_CLKEN_PLL_EN_CORE_DPLL_FAST_RELOCK (0x6) … … 72 70 #define CLOCK_CONTROL_CM_CLKEN_PLL_EN_PERIPH2_DPLL_DRIFTGUARD_FLAG (1 << 3) 73 71 #define CLOCK_CONTROL_CM_CLKEN_PLL_EN_PERIPH2_DPLL_MASK (0x7) 74 #define CLOCK_CONTROL_CM_CLKEN_PLL_EN_PERIPH2_DPLL_SHIFT (0)75 72 #define CLOCK_CONTROL_CM_CLKEN_PLL_EN_PERIPH2_DPLL_LP_STOP (0x1) 76 73 #define CLOCK_CONTROL_CM_CLKEN_PLL_EN_PERIPH2_DPLL_LOCK (0x7) … … 100 97 101 98 ioport32_t autoidle_pll; 102 #define CLOCK_CONTROL_CM_AUTOIDLE_PLL_AUTO_PERIPH_DPLL_MASK (0x7) 103 #define CLOCK_CONTROL_CM_AUTOIDLE_PLL_AUTO_PERIPH_DPLL_SHIFT (3) 104 #define CLOCK_CONTROL_CM_AUTOIDLE_PLL_AUTO_PERIPH_DPLL_DISABLED (0x0) 105 #define CLOCK_CONTROL_CM_AUTOIDLE_PLL_AUTO_PERIPH_DPLL_AUTOMATIC (0x1) 99 #define CLOCK_CONTROL_CM_AUTOIDLE_PLL_AUTO_PERIPH_DPLL_MASK (0x7 << 3) 100 #define CLOCK_CONTROL_CM_AUTOIDLE_PLL_AUTO_PERIPH_DPLL_DISABLED (0x0 << 3) 101 #define CLOCK_CONTROL_CM_AUTOIDLE_PLL_AUTO_PERIPH_DPLL_AUTOMATIC (0x1 << 3) 106 102 #define CLOCK_CONTROL_CM_AUTOIDLE_PLL_AUTO_CORE_DPLL_MASK (0x7) 107 #define CLOCK_CONTROL_CM_AUTOIDLE_PLL_AUTO_CORE_DPLL_SHIFT (0)108 103 #define CLOCK_CONTROL_CM_AUTOIDLE_PLL_AUTO_CORE_DPLL_DISABLED (0x0) 109 104 #define CLOCK_CONTROL_CM_AUTOIDLE_PLL_AUTO_CORE_DPLL_AUTOMATIC (0x5) … … 111 106 ioport32_t autoidle2_pll; 112 107 #define CLOCK_CONTROL_CM_AUTOIDLE2_PLL_AUTO_PERIPH2_DPLL_MASK (0x7) 113 #define CLOCK_CONTROL_CM_AUTOIDLE2_PLL_AUTO_PERIPH2_DPLL_SHIFT (0)114 108 #define CLOCK_CONTROL_CM_AUTOIDLE2_PLL_AUTO_PERIPH2_DPLL_DISABLED (0x0) 115 109 #define CLOCK_CONTROL_CM_AUTOIDLE2_PLL_AUTO_PERIPH2_DPLL_AUTOMATIC (0x1) … … 118 112 119 113 ioport32_t clksel1_pll; 120 #define CLOCK_CONTROL_CM_CLKSEL1_PLL_CORE_DPLL_CLKOUT_DIV_MASK (0x1f )121 #define CLOCK_CONTROL_CM_CLKSEL1_PLL_CORE_DPLL_CLKOUT_DIV_ SHIFT (27)122 #define CLOCK_CONTROL_CM_CLKSEL1_PLL_CORE_DPLL_MULT_MASK (0x7ff )123 #define CLOCK_CONTROL_CM_CLKSEL1_PLL_CORE_DPLL_MULT _SHIFT (16)124 #define CLOCK_CONTROL_CM_CLKSEL1_PLL_CORE_DPLL_DIV_MASK (0x7f )125 #define CLOCK_CONTROL_CM_CLKSEL1_PLL_CORE_DPLL_DIV _SHIFT (8)114 #define CLOCK_CONTROL_CM_CLKSEL1_PLL_CORE_DPLL_CLKOUT_DIV_MASK (0x1f << 27) 115 #define CLOCK_CONTROL_CM_CLKSEL1_PLL_CORE_DPLL_CLKOUT_DIV_(x) (((x) & 0x1f) << 27) 116 #define CLOCK_CONTROL_CM_CLKSEL1_PLL_CORE_DPLL_MULT_MASK (0x7ff << 16) 117 #define CLOCK_CONTROL_CM_CLKSEL1_PLL_CORE_DPLL_MULT(x) (((x) & 0x7ff) << 16) 118 #define CLOCK_CONTROL_CM_CLKSEL1_PLL_CORE_DPLL_DIV_MASK (0x7f << 8) 119 #define CLOCK_CONTROL_CM_CLKSEL1_PLL_CORE_DPLL_DIV(x) (((x) & 0x7f) << 8) 126 120 #define CLOCK_CONTROL_CM_CLKSEL1_PLL_SOURCE_96M_FLAG (1 << 6) 127 121 #define CLOCK_CONTROL_CM_CLKSEL1_PLL_SOURCE_54M_FLAG (1 << 5) … … 129 123 130 124 ioport32_t clksel2_pll; 131 #define CLOCK_CONTROL_CM_CLKSEL2_PLL_SD_DIV_MASK (0xff) 132 #define CLOCK_CONTROL_CM_CLKSEL2_PLL_SD_DIV_SHIFT (24) 133 #define CLOCK_CONTROL_CM_CLKSEL2_PLL_DCO_SEL_MASK (0x7) 134 #define CLOCK_CONTROL_CM_CLKSEL2_PLL_DCO_SEL_SHIFT (21) 135 #define CLOCK_CONTROL_CM_CLKSEL2_PLL_DCO_SEL_500 (0x2) 136 #define CLOCK_CONTROL_CM_CLKSEL2_PLL_DCO_SEL_1000 (0x4) 137 #define CLOCK_CONTROL_CM_CLKSEL2_PLL_PERIPH_DPLL_MULT_MASK (0xfff) 138 #define CLOCK_CONTROL_CM_CLKSEL2_PLL_PERIPH_DPLL_MULT_SHIFT (8) 125 #define CLOCK_CONTROL_CM_CLKSEL2_PLL_SD_DIV_MASK (0xff << 24) 126 #define CLOCK_CONTROL_CM_CLKSEL2_PLL_SD_DIV_(x) (((x) & 0xff) << 24) 127 #define CLOCK_CONTROL_CM_CLKSEL2_PLL_DCO_SEL_MASK (0x7 << 21) 128 #define CLOCK_CONTROL_CM_CLKSEL2_PLL_DCO_SEL_500 (0x2 << 21) 129 #define CLOCK_CONTROL_CM_CLKSEL2_PLL_DCO_SEL_1000 (0x4 << 21) 130 #define CLOCK_CONTROL_CM_CLKSEL2_PLL_PERIPH_DPLL_MULT_MASK (0xfff << 8) 131 #define CLOCK_CONTROL_CM_CLKSEL2_PLL_PERIPH_DPLL_MULT(x) (((x) & 0xfff) << 8) 139 132 #define CLOCK_CONTROL_CM_CLKSEL2_PLL_PERIPH_DPLL_DIV_MASK (0x7f) 140 #define CLOCK_CONTROL_CM_CLKSEL2_PLL_PERIPH_DPLL_DIV _SHIFT (0)133 #define CLOCK_CONTROL_CM_CLKSEL2_PLL_PERIPH_DPLL_DIV(x) ((x) & 0x7f) 141 134 142 135 ioport32_t clksel3_pll; 143 136 #define CLOCK_CONTROL_CM_CLKSEL3_PLL_DIV_96M_MASK (0xf) 144 #define CLOCK_CONTROL_CM_CLKSEL3_PLL_DIV_96M _SHIFT (0)137 #define CLOCK_CONTROL_CM_CLKSEL3_PLL_DIV_96M(x) ((x) & 0xf) 145 138 146 139 ioport32_t clksel4_pll; 147 #define CLOCK_CONTROL_CM_CLKSEL4_PLL_PERIPH2_DPLL_MULT_MASK (0x7ff )148 #define CLOCK_CONTROL_CM_CLKSEL4_PLL_PERIPH2_DPLL_MULT _SHIFT (8)140 #define CLOCK_CONTROL_CM_CLKSEL4_PLL_PERIPH2_DPLL_MULT_MASK (0x7ff << 8) 141 #define CLOCK_CONTROL_CM_CLKSEL4_PLL_PERIPH2_DPLL_MULT(x) (((x) & 0x7ff) << 8) 149 142 #define CLOCK_CONTROL_CM_CLKSEL4_PLL_PERIPH2_DPLL_DIV_MASK (0x7f) 150 #define CLOCK_CONTROL_CM_CLKSEL4_PLL_PERIPH2_DPLL_DIV _SHIFT (0)143 #define CLOCK_CONTROL_CM_CLKSEL4_PLL_PERIPH2_DPLL_DIV(x) ((x) & 0x7f) 151 144 152 145 ioport32_t clksel5_pll; 153 146 #define CLOCK_CONTROL_CM_CLKSEL5_PLL_DIV120M_MASK (0x1f) 154 #define CLOCK_CONTROL_CM_CLKSEL5_PLL_DIV120M _SHIFT (0)147 #define CLOCK_CONTROL_CM_CLKSEL5_PLL_DIV120M(x) ((x) & 0x1f) 155 148 } clock_control_cm_regs_t; 156 149
Note:
See TracChangeset
for help on using the changeset viewer.