LPC1788 SD Card driver updates from Rommel Marcelo

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5753 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2013-03-17 23:40:53 +00:00
parent e544b5c58c
commit cd8c86118e

View File

@ -152,21 +152,21 @@
*/
#define SDCARD_CLKDIV_INIT 74 /* 400Khz */
#define SDCARD_INIT_CLKDIV (SDCARD_CLKDIV_INIT+1)
#define SDCARD_INIT_CLKDIV (SDCARD_CLKDIV_INIT)
#define SDCARD_NORMAL_CLKDIV 1 /* DMA ON: SDCARD_CLOCK=15MHz */
#define SDCARD_SLOW_CLKDIV 2 /* DMA OFF: SDCARD_CLOCK=10MHz */
#ifdef CONFIG_SDIO_DMA
# define SDCARD_MMCXFR_CLKDIV (SDCARD_NORMAL_CLKDIV+1)
# define SDCARD_MMCXFR_CLKDIV (SDCARD_NORMAL_CLKDIV)
#else
# define SDCARD_MMCXFR_CLKDIV (SDCARD_SLOW_CLKDIV+1)
# define SDCARD_MMCXFR_CLKDIV (SDCARD_SLOW_CLKDIV)
#endif
#ifdef CONFIG_SDIO_DMA
# define SDCARD_SDXFR_CLKDIV (SDCARD_NORMAL_CLKDIV+1)
# define SDCARD_SDXFR_CLKDIV (SDCARD_NORMAL_CLKDIV)
#else
# define SDCARD_SDXFR_CLKDIV (SDCARD_SLOW_CLKDIV+1)
# define SDCARD_SDXFR_CLKDIV (SDCARD_SLOW_CLKDIV)
#endif
/* Set EMC delay values: