From 303cf6c26e2f96c1909ca977b8ce86b0b761b444 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Wed, 5 Jun 2013 18:48:30 -0600 Subject: Move SAM4L peripheral clock logic to a separate file --- nuttx/arch/arm/src/sam34/chip/sam4l_pm.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'nuttx/arch/arm/src/sam34/chip') diff --git a/nuttx/arch/arm/src/sam34/chip/sam4l_pm.h b/nuttx/arch/arm/src/sam34/chip/sam4l_pm.h index 16941397c..ba78b3a95 100644 --- a/nuttx/arch/arm/src/sam34/chip/sam4l_pm.h +++ b/nuttx/arch/arm/src/sam34/chip/sam4l_pm.h @@ -186,6 +186,14 @@ #define PM_PBAMASK_TWIM3 (1 << 22) /* Bit 22: TWIM3 */ #define PM_PBAMASK_LCDCA (1 << 23) /* Bit 23: LCDCA*/ +/* These are the PBMA peripherals that use divided clocks enabled in the + * PBADIVMASK register. + */ + +#define PM_PBAMASK_TIMERS (PM_PBAMASK_TC0 | PM_PBAMASK_TC1) +#define PM_PBAMASK_UARTS (PM_PBAMASK_USART0 | PM_PBAMASK_USART1 | \ + PM_PBAMASK_USART2 | PM_PBAMASK_USART3) + /* PBB Mask Register Bit-field Definitions */ #define PM_PBBMASK_FLASHCALW (1 << 0) /* Bit 0: FLASHCALW */ @@ -221,6 +229,10 @@ #define PM_PBADIVMASK_TIMER_CLOCK4 (1 << 4) /* Bit 4: TIMER_CLOCK4 (TC0-1) */ #define PM_PBADIVMASK_TIMER_CLOCK5 (1 << 6) /* Bit 5: TIMER_CLOCK5 (TC0-1) */ +#define PM_PBADIVMASK_TIMER_CLOCKS \ + (PM_PBADIVMASK_TIMER_CLOCK2 | PM_PBADIVMASK_TIMER_CLOCK3 | \ + PM_PBADIVMASK_TIMER_CLOCK4 | PM_PBADIVMASK_TIMER_CLOCK5) + /* Clock Failure Detector Control */ #define PM_CFDCTRL_CFDEN (1 << 0) /* Bit 0: Clock Failure Detection Enable */ -- cgit v1.2.3