Add PLL configuration

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2458 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2009-12-29 20:26:18 +00:00
parent 6cc93eadb5
commit 31c7a5e865

View File

@ -52,15 +52,33 @@
************************************************************************************/ ************************************************************************************/
/* Clocking *************************************************************************/ /* Clocking *************************************************************************/
/* Frequency of the all inputs */ /* Frequency of the FFAST input */
#define BOARD_FREQIN_FFAST (12000000) /* ffast (12 MHz crystal) */ #define BOARD_FREQIN_FFAST (12000000) /* ffast (12 MHz crystal) */
#define BOARD_FREQIN_I2SRXBCK0 0 /* I2SRX_BCK0 */
#define BOARD_FREQIN_I2SRXWS0 0 /* I2SRX_WS0 */ /* HPLL0 configuration */
#define BOARD_FREQIN_I2SRXBCK1 0 /* I2SRX_BCK1 */
#define BOARD_FREQIN_I2SRXWS1 0 /* I2SRX_WS1 */ #define BOARD_HPLL0_FINSEL CGU_HPFINSEL_FFAST /* Frequency input selection */
#define BOARD_FREQIN_HPPLL0 0 /* HPPLL0 (Audio/I2S PLL)) */ #define BOARD_HPLL0_NDEC 131 /* PLL N-divider value */
#define BOARD_FREQIN_HPPLL1 0 /* HPPLL1 (System PLL */ #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 /* The following 3 bitsets determine which clocks will be enabled at initialization
* time. * time.