|
RTEMS 6.1-rc2
|
Loading...
Searching...
No Matches
Go to the documentation of this file.
19#ifndef __AT91RM9200_PMC_H__
20#define __AT91RM9200_PMC_H__
27int at91rm9200_get_mainclk(
void);
28int at91rm9200_get_slck(
void);
29int at91rm9200_get_mck(
void);
61#define PMC_SCR_PCK7 BIT15
62#define PMC_SCR_PCK6 BIT14
63#define PMC_SCR_PCK5 BIT13
64#define PMC_SCR_PCK4 BIT12
65#define PMC_SCR_PCK3 BIT11
66#define PMC_SCR_PCK2 BIT10
67#define PMC_SCR_PCK1 BIT9
68#define PMC_SCR_PCK0 BIT8
69#define PMC_SCR_UHP BIT4
70#define PMC_SCR_MCKUDP BIT2
71#define PMC_SCR_UDP BIT1
72#define PMC_SCR_PCK BIT0
77#define PMC_PCR_PID_EMAC BIT24
78#define PMC_PCR_PID_UHP BIT23
79#define PMC_PCR_PID_TC5 BIT22
80#define PMC_PCR_PID_TC4 BIT21
81#define PMC_PCR_PID_TC3 BIT20
82#define PMC_PCR_PID_TC2 BIT19
83#define PMC_PCR_PID_TC1 BIT18
84#define PMC_PCR_PID_TC0 BIT17
85#define PMC_PCR_PID_SSC2 BIT16
86#define PMC_PCR_PID_SSC1 BIT15
87#define PMC_PCR_PID_SSC0 BIT14
88#define PMC_PCR_PID_SPI BIT13
89#define PMC_PCR_PID_TWI BIT12
90#define PMC_PCR_PID_UDP BIT11
91#define PMC_PCR_PID_MCI BIT10
92#define PMC_PCR_PID_US3 BIT9
93#define PMC_PCR_PID_US2 BIT8
94#define PMC_PCR_PID_US1 BIT7
95#define PMC_PCR_PID_US0 BIT6
96#define PMC_PCR_PID_PIOD BIT5
97#define PMC_PCR_PID_PIOC BIT4
98#define PMC_PCR_PID_PIOB BIT3
99#define PMC_PCR_PID_PIOA BIT2
102#define PMC_MOR_MOSCEN BIT0
105#define PMC_MCFR_MAINRDY BIT16
108#define PMC_PLLAR_MUST_SET BIT29
109#define PMC_PLLAR_MUL(_x_) ((_x_ & 0x7ff) << 16)
110#define PMC_PLLAR_MUL_MASK (0x7ff << 16)
112#define PMC_PLLAR_OUT_80_160 (0 << 14)
113#define PMC_PLLAR_OUT_150_240 (2 << 14)
114#define PMC_PLLAR_DIV(_x_) ((_x_ & 0xff) << 0)
115#define PMC_PLLAR_DIV_MASK (0xff)
118#define PMC_PLLBR_USB_96M BIT28
119#define PMC_PLLBR_MUL(_x_) ((_x_ & 0x7ff) << 16)
120#define PMC_PLLBR_MUL_MASK (0x7ff << 16)
121#define PMC_PLLBR_OUT_80_160 (0 << 14)
122#define PMC_PLLBR_OUT_150_240 (2 << 14)
123#define PMC_PLLBR_DIV(_x_) ((_x_ & 0xff) << 0)
124#define PMC_PLLBR_DIV_MASK (0xff)
127#define PMC_MCKR_MDIV_MASK (3 << 8)
128#define PMC_MCKR_MDIV_1 (0 << 8)
129#define PMC_MCKR_MDIV_2 (1 << 8)
130#define PMC_MCKR_MDIV_3 (2 << 8)
131#define PMC_MCKR_MDIV_4 (3 << 8)
132#define PMC_MCKR_PRES_MASK (7 << 2)
133#define PMC_MCKR_PRES_1 (0 << 2)
134#define PMC_MCKR_PRES_2 (1 << 2)
135#define PMC_MCKR_PRES_4 (2 << 2)
136#define PMC_MCKR_PRES_8 (3 << 2)
137#define PMC_MCKR_PRES_16 (4 << 2)
138#define PMC_MCKR_PRES_32 (5 << 2)
139#define PMC_MCKR_PRES_64 (6 << 2)
140#define PMC_MCKR_CSS_MASK (3 << 0)
141#define PMC_MCKR_CSS_SLOW (0 << 0)
142#define PMC_MCKR_CSS_MAIN (1 << 0)
143#define PMC_MCKR_CSS_PLLA (2 << 0)
144#define PMC_MCKR_CSS_PLLB (3 << 0)
147#define PMC_PCKR_PRES_1 (0 << 2)
148#define PMC_PCKR_PRES_2 (1 << 2)
149#define PMC_PCKR_PRES_4 (2 << 2)
150#define PMC_PCKR_PRES_8 (3 << 2)
151#define PMC_PCKR_PRES_16 (4 << 2)
152#define PMC_PCKR_PRES_32 (5 << 2)
153#define PMC_PCKR_PRES_64 (6 << 2)
154#define PMC_PCKR_CSS_SLOW (0 << 0)
155#define PMC_PCKR_CSS_MAIN (1 << 0)
156#define PMC_PCKR_CSS_PLLA (2 << 0)
157#define PMC_PCKR_CSS_PLLB (3 << 0)
163#define PMC_INT_PCK7_RDY BIT15
164#define PMC_INT_PCK6_RDY BIT14
165#define PMC_INT_PCK5_RDY BIT13
166#define PMC_INT_PCK4_RDY BIT12
167#define PMC_INT_PCK3_RDY BIT11
168#define PMC_INT_PCK2_RDY BIT10
169#define PMC_INT_PCK1_RDY BIT9
170#define PMC_INT_PCK0_RDY BIT8
171#define PMC_INT_MCK_RDY BIT3
172#define PMC_INT_LOCKB BIT2
173#define PMC_INT_LCKA BIT1
174#define PMC_INT_MOSCS BIT0