RTEMS 6.3
Loading...
Searching...
No Matches
at91rm9200_pmc.h File Reference

AT91RM9200 Power Management and Clock definitions. More...

#include <bits.h>

Go to the source code of this file.

Macros

#define PMC_SCER   0x00
#define PMC_SCDR   0x04
#define PMC_SCSR   0x08
#define PMC_PCER   0x10
#define PMC_PCDR   0x14
#define PMC_PCSR   0x18
#define PMC_MOR   0x20
#define PMC_MCFR   0x24
#define PMC_PLLAR   0x28
#define PMC_PLLBR   0x2C
#define PMC_MCKR   0x30
#define PMC_PCKR0   0x40
#define PMC_PCKR1   0x44
#define PMC_PCKR2   0x48
#define PMC_PCKR3   0x4C
#define PMC_PCKR4   0x50
#define PMC_PCKR5   0x54
#define PMC_PCKR6   0x58
#define PMC_PCKR7   0x5C
#define PMC_IER   0x60
#define PMC_IDR   0x64
#define PMC_SR   0x68
#define PMC_IMR   0x6C
#define PMC_SCR_PCK7   BIT15
#define PMC_SCR_PCK6   BIT14
#define PMC_SCR_PCK5   BIT13
#define PMC_SCR_PCK4   BIT12
#define PMC_SCR_PCK3   BIT11
#define PMC_SCR_PCK2   BIT10
#define PMC_SCR_PCK1   BIT9
#define PMC_SCR_PCK0   BIT8
#define PMC_SCR_UHP   BIT4
#define PMC_SCR_MCKUDP   BIT2
#define PMC_SCR_UDP   BIT1
#define PMC_SCR_PCK   BIT0
#define PMC_PCR_PID_EMAC   BIT24
#define PMC_PCR_PID_UHP   BIT23
#define PMC_PCR_PID_TC5   BIT22
#define PMC_PCR_PID_TC4   BIT21
#define PMC_PCR_PID_TC3   BIT20
#define PMC_PCR_PID_TC2   BIT19
#define PMC_PCR_PID_TC1   BIT18
#define PMC_PCR_PID_TC0   BIT17
#define PMC_PCR_PID_SSC2   BIT16
#define PMC_PCR_PID_SSC1   BIT15
#define PMC_PCR_PID_SSC0   BIT14
#define PMC_PCR_PID_SPI   BIT13
#define PMC_PCR_PID_TWI   BIT12
#define PMC_PCR_PID_UDP   BIT11
#define PMC_PCR_PID_MCI   BIT10
#define PMC_PCR_PID_US3   BIT9
#define PMC_PCR_PID_US2   BIT8
#define PMC_PCR_PID_US1   BIT7
#define PMC_PCR_PID_US0   BIT6
#define PMC_PCR_PID_PIOD   BIT5
#define PMC_PCR_PID_PIOC   BIT4
#define PMC_PCR_PID_PIOB   BIT3
#define PMC_PCR_PID_PIOA   BIT2
#define PMC_MOR_MOSCEN   BIT0
#define PMC_MCFR_MAINRDY   BIT16
#define PMC_PLLAR_MUST_SET   BIT29
#define PMC_PLLAR_MUL(_x_)
#define PMC_PLLAR_MUL_MASK   (0x7ff << 16)
#define PMC_PLLAR_OUT_80_160   (0 << 14)
#define PMC_PLLAR_OUT_150_240   (2 << 14)
#define PMC_PLLAR_DIV(_x_)
#define PMC_PLLAR_DIV_MASK   (0xff)
#define PMC_PLLBR_USB_96M   BIT28
#define PMC_PLLBR_MUL(_x_)
#define PMC_PLLBR_MUL_MASK   (0x7ff << 16)
#define PMC_PLLBR_OUT_80_160   (0 << 14)
#define PMC_PLLBR_OUT_150_240   (2 << 14)
#define PMC_PLLBR_DIV(_x_)
#define PMC_PLLBR_DIV_MASK   (0xff)
#define PMC_MCKR_MDIV_MASK   (3 << 8)
#define PMC_MCKR_MDIV_1   (0 << 8)
#define PMC_MCKR_MDIV_2   (1 << 8)
#define PMC_MCKR_MDIV_3   (2 << 8)
#define PMC_MCKR_MDIV_4   (3 << 8)
#define PMC_MCKR_PRES_MASK   (7 << 2)
#define PMC_MCKR_PRES_1   (0 << 2)
#define PMC_MCKR_PRES_2   (1 << 2)
#define PMC_MCKR_PRES_4   (2 << 2)
#define PMC_MCKR_PRES_8   (3 << 2)
#define PMC_MCKR_PRES_16   (4 << 2)
#define PMC_MCKR_PRES_32   (5 << 2)
#define PMC_MCKR_PRES_64   (6 << 2)
#define PMC_MCKR_CSS_MASK   (3 << 0)
#define PMC_MCKR_CSS_SLOW   (0 << 0)
#define PMC_MCKR_CSS_MAIN   (1 << 0)
#define PMC_MCKR_CSS_PLLA   (2 << 0)
#define PMC_MCKR_CSS_PLLB   (3 << 0)
#define PMC_PCKR_PRES_1   (0 << 2)
#define PMC_PCKR_PRES_2   (1 << 2)
#define PMC_PCKR_PRES_4   (2 << 2)
#define PMC_PCKR_PRES_8   (3 << 2)
#define PMC_PCKR_PRES_16   (4 << 2)
#define PMC_PCKR_PRES_32   (5 << 2)
#define PMC_PCKR_PRES_64   (6 << 2)
#define PMC_PCKR_CSS_SLOW   (0 << 0)
#define PMC_PCKR_CSS_MAIN   (1 << 0)
#define PMC_PCKR_CSS_PLLA   (2 << 0)
#define PMC_PCKR_CSS_PLLB   (3 << 0)
#define PMC_INT_PCK7_RDY   BIT15
#define PMC_INT_PCK6_RDY   BIT14
#define PMC_INT_PCK5_RDY   BIT13
#define PMC_INT_PCK4_RDY   BIT12
#define PMC_INT_PCK3_RDY   BIT11
#define PMC_INT_PCK2_RDY   BIT10
#define PMC_INT_PCK1_RDY   BIT9
#define PMC_INT_PCK0_RDY   BIT8
#define PMC_INT_MCK_RDY   BIT3
#define PMC_INT_LOCKB   BIT2
#define PMC_INT_LCKA   BIT1
#define PMC_INT_MOSCS   BIT0

Functions

int at91rm9200_get_mainclk (void)
int at91rm9200_get_slck (void)
int at91rm9200_get_mck (void)

Detailed Description

AT91RM9200 Power Management and Clock definitions.

Macro Definition Documentation

◆ PMC_PLLAR_DIV

#define PMC_PLLAR_DIV ( _x_)
Value:
((_x_ & 0xff) << 0)

◆ PMC_PLLAR_MUL

#define PMC_PLLAR_MUL ( _x_)
Value:
((_x_ & 0x7ff) << 16)

◆ PMC_PLLBR_DIV

#define PMC_PLLBR_DIV ( _x_)
Value:
((_x_ & 0xff) << 0)

◆ PMC_PLLBR_MUL

#define PMC_PLLBR_MUL ( _x_)
Value:
((_x_ & 0x7ff) << 16)