spi update

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1739 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2009-04-26 00:25:38 +00:00
parent 2829cf4580
commit 6ee52cc61f

View File

@ -110,8 +110,8 @@
/* PDCR -- Controls peripheral clocks */
#define IMX_PCLKDIV1 5
#define IMX_PCLKDIV2 5
#define IMX_PCLKDIV1 0
#define IMX_PCLKDIV2 0
#define IMX_PCLKDIV3 0
#define IMX_PCDR_VALUE \
@ -119,19 +119,21 @@
(IMX_PCLKDIV2 << PLL_PCDR_PCLKDIV2_SHIFT) |\
(IMX_PCLKDIV3 << PLL_PCDR_PCLKDIV3_SHIFT))
/* IMX_PERCLK1_FREQ = IMX_SYSPLL_CLK_FREQ / IMX_PCLKDIV1 + 1 */
/* PERCLK1: UART, Timers, PWM */
#define IMX_PERCLK1_FREQ 16002651
#define IMX_PERCLK1_FREQ (IMX_SYSPLL_CLK_FREQ/(IMX_PCLKDIV1+1))
/* IMX_PERCLK2_FREQ = IMX_SYSPLL_CLK_FREQ / IMX_PCLKDIV2 + 1 */
/* PERCLK2: CSPI, LCD, SD */
#define IMX_PERCLK2_FREQ 16002651
#define IMX_PERCLK2_FREQ (IMX_SYSPLL_CLK_FREQ/(IMX_PCLKDIV2+1))
/* IMX_PERCLK2_FREQ = IMX_SYSPLL_CLK_FREQ / IMX_PCLKDIV4 + 1 */
/* PERCLK3: SSI */
#define IMX_PERCLK2_FREQ 96015910
#define IMX_PERCLK3_FREQ (IMX_SYSPLL_CLK_FREQ/(IMX_PCLKDIV3+1))
/* CSCR settings -- Controls HCLK and BCLK and USB clock */
/* CSCR settings -- Controls HCLK and BCLK and USB clock.
* HCLK: SDRAM, CSI, Memory Stick, I2C, DMA
*/
#define IMX_CSCR_BCLKDIV 1
#define IMX_CSCR_USBDIV 6