diff options
author | Bo Shen <voice.shen@atmel.com> | 2014-08-06 17:24:54 +0800 |
---|---|---|
committer | Andreas Bießmann <andreas.devel@googlemail.com> | 2014-09-19 00:11:18 +0200 |
commit | b24c1a10b53e831b28da6a69911061a28b34bbd6 (patch) | |
tree | 3ef440387dc87dbe90ce842312d72ae16dcd7ccf /arch/arm/include/asm/arch-at91/at91_pmc.h | |
parent | 7b1dc26fae813fcf7650340803972feb8829853e (diff) | |
download | u-boot-imx-b24c1a10b53e831b28da6a69911061a28b34bbd6.zip u-boot-imx-b24c1a10b53e831b28da6a69911061a28b34bbd6.tar.gz u-boot-imx-b24c1a10b53e831b28da6a69911061a28b34bbd6.tar.bz2 |
ARM: atmel: use pcr to enable or disable peripheral clock
When use pcr (peripheral control register), then we won't need
to care about the peripheral ID.
Signed-off-by: Bo Shen <voice.shen@atmel.com>
Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
Diffstat (limited to 'arch/arm/include/asm/arch-at91/at91_pmc.h')
-rw-r--r-- | arch/arm/include/asm/arch-at91/at91_pmc.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-at91/at91_pmc.h b/arch/arm/include/asm/arch-at91/at91_pmc.h index 04f6239..bef5793 100644 --- a/arch/arm/include/asm/arch-at91/at91_pmc.h +++ b/arch/arm/include/asm/arch-at91/at91_pmc.h @@ -147,6 +147,10 @@ typedef struct at91_pmc { #define AT91_PMC_IXR_PCKRDY3 0x00000800 #define AT91_PMC_IXR_MOSCSELS 0x00010000 +#define AT91_PMC_PCR_PID_MASK (0x3f) +#define AT91_PMC_PCR_CMD_WRITE (0x1 << 12) +#define AT91_PMC_PCR_EN (0x1 << 28) + #define AT91_PMC_PCK (1 << 0) /* Processor Clock */ #define AT91RM9200_PMC_UDP (1 << 1) /* USB Devcice Port Clock [AT91RM9200 only] */ #define AT91RM9200_PMC_MCKUDP (1 << 2) /* USB Device Port Master Clock Automatic Disable on Suspend [AT91RM9200 only] */ |