diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-07-19 13:25:59 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-07-19 13:25:59 -0600 |
commit | 780a3d631301f258f71cb1bd7035a33d527d046f (patch) | |
tree | fd6ac29c8e20574f90d1893d9cc2c5058fa8d228 | |
parent | aac310bd799c35e10f5c08513ce24ea2218bb024 (diff) | |
download | px4-nuttx-780a3d631301f258f71cb1bd7035a33d527d046f.tar.gz px4-nuttx-780a3d631301f258f71cb1bd7035a33d527d046f.tar.bz2 px4-nuttx-780a3d631301f258f71cb1bd7035a33d527d046f.zip |
SAMA5: Update slow clock logic. Things work a little differently on the SAMA5D3
-rw-r--r-- | nuttx/ChangeLog | 2 | ||||
-rw-r--r-- | nuttx/arch/arm/src/sama5/chip/sam_sckc.h | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/nuttx/ChangeLog b/nuttx/ChangeLog index 0a584acc4..e934c1175 100644 --- a/nuttx/ChangeLog +++ b/nuttx/ChangeLog @@ -7746,4 +7746,6 @@ (2014-7-18). * configs/sama5d4-ek/src/sam_wm8904.c: Add logic to configure and initialize the WM8904 audio CODEC (2014-7-17). + * arch/arm/src/sama5/sam_sckc.c/.h and chip/sam_sckc.h: Add SAMA5 + slow clock support. diff --git a/nuttx/arch/arm/src/sama5/chip/sam_sckc.h b/nuttx/arch/arm/src/sama5/chip/sam_sckc.h index 4cb70f9b8..e9071585a 100644 --- a/nuttx/arch/arm/src/sama5/chip/sam_sckc.h +++ b/nuttx/arch/arm/src/sama5/chip/sam_sckc.h @@ -58,6 +58,12 @@ /* Slow Clock Controller Configuration Register */ +#ifdef ATSAMA5D3 +# define SCKC_CR_RCEN (1 << 0) /* Bit 0: Internal 32 kHz RC Oscillator */ +# define SCKC_CR_OSC32EN (1 << 1) /* Bit 1: 32768 Hz Oscillator */ +# define SCKC_CR_OSC32BYP (1 << 2) /* Bit 2: 2768Hz Oscillator Bypass */ +#endif + #define SCKC_CR_OSCSEL (1 << 3) /* Bit 3: Slow Clock Selector */ #endif /* __ARCH_ARM_SRC_SAMA5_CHIP_SAM_SCKC_H */ |