mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 15:58:59 +08:00
Add support for RAMTRON NVRAM devices
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3347 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -2077,6 +2077,7 @@ static void mmcsd_mediachange(FAR void *arg)
|
||||
|
||||
static int mmcsd_widebus(FAR struct mmcsd_state_s *priv)
|
||||
{
|
||||
#ifndef CONFIG_SDIO_WIDTH_D1_ONLY
|
||||
int ret;
|
||||
|
||||
/* Check if the SD card supports this feature (as reported in the SCR) */
|
||||
@@ -2145,6 +2146,13 @@ static int mmcsd_widebus(FAR struct mmcsd_state_s *priv)
|
||||
|
||||
fdbg("WARNING: Card does not support wide-bus operation\n");
|
||||
return -ENOSYS;
|
||||
|
||||
#else /* CONFIG_SDIO_WIDTH_D1_ONLY */
|
||||
|
||||
fvdbg("Wide-bus operation is disabled\n");
|
||||
return -ENOSYS;
|
||||
|
||||
#endif /* CONFIG_SDIO_WIDTH_D1_ONLY */
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
@@ -2613,7 +2621,7 @@ static int mmcsd_cardidentify(FAR struct mmcsd_state_s *priv)
|
||||
/* Check the elapsed time. We won't keep trying this forever! */
|
||||
|
||||
elapsed = g_system_timer - start;
|
||||
}
|
||||
}
|
||||
while( elapsed < TICK_PER_SEC ); /* On successful reception while 'breaks', see above. */
|
||||
|
||||
/* We get here when the above loop completes, either (1) we could not
|
||||
|
||||
Reference in New Issue
Block a user