Re: SD Card MMC clock
- From: "K. S. Huang" <ksh_AT_bsquare_DOT_com>
- Date: Tue, 9 Jan 2007 10:28:30 +0800
Since the Power is controled by the FPGA in mainstone board and your custom
board may have different apporach (could be GPIO in many design).
The MMCPowerControl function of impl.c is the one that gating the slot power
on/off, make sure you have a proper implementation for your own custom board
rather than using the default codes.
BTW, there is another board depend function, IsCardWriteProtected, which
detecting the Write Protect key on SD memory card, one will also need to
implment when porint to new platform.
"Abhishek" <Abhishek@xxxxxxxxxxxxxxxxxxxxxxxxx> ¼¶¼g©ó¶l¥ó·s»D:77CD90AB-7AFA-462C-8F62-C2C4FB6E2141@xxxxxxxxxxxxxxxx
Hai,
Thanku for ur response .I configured the GPIO pin for the Card detect
in impl.c.Now the card is detected (verified by probing) .But i observed
the
debug messages time out error is coming for all the commands like below.
SDHSlotOptionHandler - called - SetSlotInterface : Clock Setting: 100000
SDHSlotOptionHandler - called - SetSlotInterface : setting for 1 bit mode
SDClockOn - Requested Rate: 100000, Setting clock rate to 312500 Hz
SDHBusRequestHandler - CMD: 0x05 DATA: 0x00000000, TC: 2
SDHBusRequestHandler - CMD: 0x05 DATA: 0x00000000, TC: 2
SDHBusRequestHandler - CMDAT Reg: 0x00000043, CMD:5
SDIst+++++++++++++
SDControllerIstThread: Controller Interrupt: 0x00000004
SDControllerIstThread: MMC_IREG_END_CMD
HandleEndCommandInterrupt: response for command 5 , timed - out
SDClockOff - turning off clock
Waiting for clock off
SDClockOff - Clock is now off
HandleEndCommandInterrupt reports RESPONSE TIMEOUT
SDHBusRequestHandler - CMD: 0x05 DATA: 0x00000000, TC: 2
SDHBusRequestHandler - CMD: 0x05 DATA: 0x00000000, TC: 2
SDHBusRequestHandler - CMDAT Reg: 0x00000003, CMD:5
SDHBusRequestHandler - Request Sent
This is coming for all the commands..Can u suggest me why it is like that?
.
- References:
- Re: SD Card MMC clock
- From: K. S. Huang
- Re: SD Card MMC clock
- Prev by Date: Re: Use Pocket PC as a USB Removable Drive
- Next by Date: Re: USB not working after Wolfson source code integrated
- Previous by thread: Re: SD Card MMC clock
- Next by thread: Re: SD Card MMC clock
- Index(es):
Relevant Pages
|
Loading