xilffs: Card check only if card detect signal is present

Check for card detection only if that signal is present
(based on HAS_CD macro)

Signed-off-by: Srinivas Goud <srinivas.goud@xilinx.com>
Signed-off-by: Harini Katakam <harinik@xilinx.com>
This commit is contained in:
Harini Katakam 2015-05-14 14:21:08 +05:30 committed by Nava kishore Manne
parent 2e8bfd71a8
commit 19801ef984

View file

@ -74,6 +74,7 @@
* Removed alignment for local buffers as CacheInvalidate
* will take care of it.
* sg 03/03/15 Added card detection check logic
* 04/28/15 Card detection only in case of card detection signal
*
* </pre>
*
@ -212,6 +213,7 @@ DSTATUS disk_initialize (
XSdPs_Config *SdConfig;
#if XPAR_XSDPS_0_HAS_CD
/*
* Card detection check
* If the HC detects the No Card State, power will be cleared
@ -223,6 +225,7 @@ DSTATUS disk_initialize (
(XSDPS_PSR_CARD_DPL_MASK |
XSDPS_PSR_CARD_STABLE_MASK |
XSDPS_PSR_CARD_INSRT_MASK))));
#endif
/*
* Check if card is in the socket