You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by pk...@apache.org on 2022/01/23 21:00:53 UTC

[incubator-nuttx] branch master updated: boards/arm/samv7/same70-qmtech: enable slow crystal

This is an automated email from the ASF dual-hosted git repository.

pkarashchenko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 311f351  boards/arm/samv7/same70-qmtech: enable slow crystal
311f351 is described below

commit 311f351da5f9c861919f04a1acae937169281f9a
Author: Petro Karashchenko <pe...@gmail.com>
AuthorDate: Sun Jan 23 21:23:11 2022 +0200

    boards/arm/samv7/same70-qmtech: enable slow crystal
    
    Signed-off-by: Petro Karashchenko <pe...@gmail.com>
---
 boards/arm/samv7/same70-qmtech/include/board.h   | 8 +++-----
 boards/arm/samv7/same70-xplained/include/board.h | 4 ++--
 boards/arm/samv7/samv71-xult/include/board.h     | 7 +++----
 3 files changed, 8 insertions(+), 11 deletions(-)

diff --git a/boards/arm/samv7/same70-qmtech/include/board.h b/boards/arm/samv7/same70-qmtech/include/board.h
index bf79553..5c7cb24 100644
--- a/boards/arm/samv7/same70-qmtech/include/board.h
+++ b/boards/arm/samv7/same70-qmtech/include/board.h
@@ -45,13 +45,11 @@
  *                       Prescalar = 1 to generate MCK = 120MHz
  *   CPU clock: 120MHz
  *
- * There can be two on-board crystals.  However, the 32.768 crystal is not
- * populated on the stock SAME70.  The fallback is to use th on-chip, slow RC
- * oscillator which has a frequency of 22-42 KHz, nominally 32 KHz.
+ * There are two on-board crystals:
  */
 
-#undef  BOARD_HAVE_SLOWXTAL                   /* Slow crystal not populated */
-#define BOARD_SLOWCLK_FREQUENCY    (32000)    /* 32 KHz RC oscillator (nominal)  */
+#define BOARD_HAVE_SLOWXTAL        1          /* Slow crystal is populated */
+#define BOARD_SLOWCLK_FREQUENCY    (32768)    /* 32.768 kHz slow crystal oscillator */
 #define BOARD_MAINOSC_FREQUENCY    (12000000) /* 12 MHz main oscillator */
 
 /* Main oscillator register settings.
diff --git a/boards/arm/samv7/same70-xplained/include/board.h b/boards/arm/samv7/same70-xplained/include/board.h
index c2d7627..4712f6b 100644
--- a/boards/arm/samv7/same70-xplained/include/board.h
+++ b/boards/arm/samv7/same70-xplained/include/board.h
@@ -46,8 +46,8 @@
  *   CPU clock: 120MHz
  *
  * There can be two on-board crystals.  However, the 32.768 crystal is not
- * populated on the stock SAME70.  The fallback is to use th on-chip, slow RC
- * oscillator which has a frequency of 22-42 KHz, nominally 32 KHz.
+ * populated on the stock SAME70.  The fallback is to use the on-chip, slow
+ * RC oscillator which has a frequency of 22-42 KHz, nominally 32 KHz.
  */
 
 #undef  BOARD_HAVE_SLOWXTAL                   /* Slow crystal not populated */
diff --git a/boards/arm/samv7/samv71-xult/include/board.h b/boards/arm/samv7/samv71-xult/include/board.h
index f25c6a6..82a5c6b 100644
--- a/boards/arm/samv7/samv71-xult/include/board.h
+++ b/boards/arm/samv7/samv71-xult/include/board.h
@@ -41,16 +41,15 @@
  *
  * 300MHz Settings:
  *   PLLA: PLL Divider = 1, Multiplier = 20 to generate PLLACK = 240MHz
- *   Master Clock (MCK):
- *      Source = PLLACK,
- *      Prescalar = 1 to generate MCK = 120MHz
+ *   Master Clock (MCK): Source = PLLACK,
+ *                       Prescalar = 1 to generate MCK = 120MHz
  *   CPU clock: 120MHz
  *
  * There are two on-board crystals:
  */
 
 #define BOARD_HAVE_SLOWXTAL        1          /* Slow crystal is populated */
-#define BOARD_SLOWCLK_FREQUENCY    (32768)    /* 32.768 KHz slow crystal oscillator */
+#define BOARD_SLOWCLK_FREQUENCY    (32768)    /* 32.768 kHz slow crystal oscillator */
 #define BOARD_MAINOSC_FREQUENCY    (12000000) /* 12 MHz main oscillator */
 
 /* Main oscillator register settings.