From: Ilya Yanok <yanok@emcraft.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] mmc: it's safe to ignore mmc_send_if_cond() return value
Date: Fri, 15 May 2009 03:04:42 +0400 [thread overview]
Message-ID: <4A0CA38A.1050207@emcraft.com> (raw)
In-Reply-To: <528f13590905141537s3d47b425i6fb4b24522da61fc@mail.gmail.com>
Hi Alfred,
alfred steele wrote:
>> We don't have clocks API in U-Boot. You need to enable the clock by
>> setting appropriate bit in the clocks control register manually.
>>
> Why do i have to touch the CCM? IIRC, Can't it be controlled with the
> STR_STP_CLOCK (bit 0). When i read the CCM using md.l it shows the
> Clock output set to IPG_CLK already which is an input the internally
> generated MMC_SD_CLK. Please correct me if am wrong.
>
Well, I can't really give you some definite answers here... Now I'm
concentrated on mx27 and we have separate bits for controlling SDHC
clocks here (they are not in CCM but in PCCR0)...
Just make sure that you have all needed clocks enabled.
> Hmm... I didn't touch any SPBA setting on mx27... But it may be needed
>
>> on mx31... Look at the spba_take_ownership() code and if it does
>> somethings with registers try setting registers to the same values from
>> your board code.
>>
> I have it set in my code, it does not make any difference . I think
> it makes sense only for interrupt and dma transfers although i am not
> sure.
> Another thing i wasn't sure of was as to where is the endianness and
> bus width for the host controller getting set in the mx27 code?
>
I don't think that can be an issue.
>> That's all I can tell you: check pins configuration, check if the clocks
>> are enabled and if mx31 has more than one MMC controller check that you
>> are trying to talk to the one with card connector (or just try other
>> choices).
>>
> Thanks Ilya. Will try.
>
Trying another controller may be a good option (just don't forget that
you need to configure different pins). I faced that problem myself: I
was trying to find the card at SDHC0 but it turned out that it's
connected to SDHC1... And AFAIR in my case I didn't get answer for
OP_COND too (actually not getting answer for OP_COND means that there is
no card).
Regards, Ilya.
next prev parent reply other threads:[~2009-05-14 23:04 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-14 10:03 [U-Boot] [PATCH] mmc: it's safe to ignore mmc_send_if_cond() return value Ilya Yanok
2009-05-14 14:48 ` alfred steele
2009-05-14 18:06 ` Ilya Yanok
2009-05-14 20:24 ` alfred steele
2009-05-14 20:43 ` alfred steele
2009-05-14 21:08 ` Ilya Yanok
2009-05-14 22:37 ` alfred steele
2009-05-14 23:04 ` Ilya Yanok [this message]
2009-05-15 16:06 ` alfred steele
2009-05-15 21:15 ` Ilya Yanok
2009-06-03 22:15 ` Wolfgang Denk
2009-06-03 23:57 ` Andy Fleming
2009-06-04 9:02 ` Wolfgang Denk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4A0CA38A.1050207@emcraft.com \
--to=yanok@emcraft.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox