summaryrefslogtreecommitdiff
path: root/nuttx/configs/ea3131/include/board.h
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-12-29 20:26:18 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-12-29 20:26:18 +0000
commit0b0d42b50a45963ef2d972c23cbee15809ad1d8d (patch)
tree3f7437740c1513f9c435b65cb7d30e4708f81d60 /nuttx/configs/ea3131/include/board.h
parent641b6fbe377c1c345ea4df206c2ad426344d2ddc (diff)
downloadpx4-nuttx-0b0d42b50a45963ef2d972c23cbee15809ad1d8d.tar.gz
px4-nuttx-0b0d42b50a45963ef2d972c23cbee15809ad1d8d.tar.bz2
px4-nuttx-0b0d42b50a45963ef2d972c23cbee15809ad1d8d.zip
Add PLL configuration
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2458 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/ea3131/include/board.h')
-rwxr-xr-xnuttx/configs/ea3131/include/board.h32
1 files changed, 25 insertions, 7 deletions
diff --git a/nuttx/configs/ea3131/include/board.h b/nuttx/configs/ea3131/include/board.h
index c3ce4451a..8eb6c3aca 100755
--- a/nuttx/configs/ea3131/include/board.h
+++ b/nuttx/configs/ea3131/include/board.h
@@ -52,15 +52,33 @@
************************************************************************************/
/* Clocking *************************************************************************/
-/* Frequency of the all inputs */
+/* Frequency of the FFAST input */
#define BOARD_FREQIN_FFAST (12000000) /* ffast (12 MHz crystal) */
-#define BOARD_FREQIN_I2SRXBCK0 0 /* I2SRX_BCK0 */
-#define BOARD_FREQIN_I2SRXWS0 0 /* I2SRX_WS0 */
-#define BOARD_FREQIN_I2SRXBCK1 0 /* I2SRX_BCK1 */
-#define BOARD_FREQIN_I2SRXWS1 0 /* I2SRX_WS1 */
-#define BOARD_FREQIN_HPPLL0 0 /* HPPLL0 (Audio/I2S PLL)) */
-#define BOARD_FREQIN_HPPLL1 0 /* HPPLL1 (System PLL */
+
+/* HPLL0 configuration */
+
+#define BOARD_HPLL0_FINSEL CGU_HPFINSEL_FFAST /* Frequency input selection */
+#define BOARD_HPLL0_NDEC 131 /* PLL N-divider value */
+#define BOARD_HPLL0_MDEC 29784 /* PLL M-divider value */
+#define BOARD_HPLL0_PDEC 7 /* PLL P-divider value */
+#define BOARD_HPLL0_SELR 0 /* SELR bandwidth selection */
+#define BOARD_HPLL0_SELI 8 /* SELI bandwidth selection */
+#define BOARD_HPLL0_SELP 31 /* SELP bandwidth selection */
+#define BOARD_HPLL0_MODE 0 /* PLL mode */
+#define BOARD_HPLL0_FREQ 406425600 /* Frequency of the PLL in MHz */
+
+/* HPLL1 configuration */
+
+#define BOARD_HPLL1_FINSEL CGU_HPFINSEL_FFAST /* Frequency input selection */
+#define BOARD_HPLL1_NDEC 770 /* PLL N-divider value */
+#define BOARD_HPLL1_MDEC 8191 /* PLL M-divider value */
+#define BOARD_HPLL1_PDEC 98 /* PLL P-divider value */
+#define BOARD_HPLL1_SELR 0 /* SELR bandwidth selection */
+#define BOARD_HPLL1_SELI 16 /* SELI bandwidth selection */
+#define BOARD_HPLL1_SELP 8 /* SELP bandwidth selection */
+#define BOARD_HPLL1_MODE 0 /* PLL mode */
+#define BOARD_HPLL1_FREQ 180000000 /* Frequency of the PLL in MHz */
/* The following 3 bitsets determine which clocks will be enabled at initialization
* time.