public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: York Sun <yorksun@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/3] mmc: fsl_esdhc: enable dat[4:7] for eMMC4.5
Date: Mon, 14 Sep 2015 19:29:52 -0700	[thread overview]
Message-ID: <55F782A0.1040409@freescale.com> (raw)
In-Reply-To: <BN3PR0301MB118858226DD8E59A97D1BDDDF25C0@BN3PR0301MB1188.namprd03.prod.outlook.com>



On 09/14/2015 07:22 PM, Lu Yangbo-B47093 wrote:
> Hi York,
> 
> Please see my comments below.
> 
>> -----Original Message-----
>> From: Sun York-R58495
>> Sent: Monday, September 14, 2015 11:57 PM
>> To: Lu Yangbo-B47093; u-boot at lists.denx.de
>> Subject: Re: [PATCH 1/3] mmc: fsl_esdhc: enable dat[4:7] for eMMC4.5
>>
>> Yangbo,
>>
>> On 09/13/2015 08:04 PM, Yangbo Lu wrote:
>>> If adapter card type identification is supported for platform, we
>>> would enable dat[4:7] for eMMC4.5 card.
>>>
>>> Signed-off-by: Yangbo Lu <yangbo.lu@freescale.com>
>>> Cc: York Sun <yorksun@freescale.com>
>>> ---
>>>  board/freescale/common/qixis.h | 2 ++
>>>  drivers/mmc/fsl_esdhc.c        | 3 +++
>>>  2 files changed, 5 insertions(+)
>>>
>>> diff --git a/board/freescale/common/qixis.h
>>> b/board/freescale/common/qixis.h index 51ce9c3..450cd0d 100644
>>> --- a/board/freescale/common/qixis.h
>>> +++ b/board/freescale/common/qixis.h
>>> @@ -127,6 +127,8 @@ void qixis_write_i2c(unsigned int reg, u8 value);
>>>  #define QIXIS_ESDHC_NO_ADAPTER                  0x7	/* No Card is
>> Present*/
>>>  #define QIXIS_SDCLKIN		0x08
>>>  #define QIXIS_SDCLKOUT		0x02
>>> +#define QIXIS_DAT5_6_7		0X02
>>> +#define QIXIS_DAT4		0X01
>>>  #endif
>>>
>>>  #endif
>>> diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c index
>>> 0b37002..639ec02 100644
>>> --- a/drivers/mmc/fsl_esdhc.c
>>> +++ b/drivers/mmc/fsl_esdhc.c
>>> @@ -747,6 +747,9 @@ void mmc_adapter_card_type_ident(void)
>>>
>>>  	switch (card_id) {
>>>  	case QIXIS_ESDHC_ADAPTER_TYPE_EMMC45:
>>> +		value = QIXIS_READ(brdcfg[5]);
>>> +		value |= (QIXIS_DAT4 | QIXIS_DAT5_6_7);
>>> +		QIXIS_WRITE(brdcfg[5], value);
>>>  		break;
>>>  	case QIXIS_ESDHC_ADAPTER_TYPE_SDMMC_LEGACY:
>>>  		break;
>>>
>>
>> Does any other board have this identification feature? I see the code
>> only use qixis. How are RDB and customer boards handled?
>>
>> York
> [Lu Yangbo-B47093] This feature is used for QDS boards that use SDHC Adapter card. Now only T1040QDS and T2080QDS are enabled, because we want to support SD/MMC UHS-I speed mode on these two boards in kernel and these QIXIS configuration are needed for *the Adapter*. For RDB and customer boards, they don't use Adapter card and the default configuration is ok for SD/MMC Default speed mode and High speed mode.
> 

I am actually more concerned how a customer board can take advantage of this.

York

  reply	other threads:[~2015-09-15  2:29 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-14  3:04 [U-Boot] [PATCH 1/3] mmc: fsl_esdhc: enable dat[4:7] for eMMC4.5 Yangbo Lu
2015-09-14 15:56 ` York Sun
2015-09-15  2:22   ` Lu Y.B.
2015-09-15  2:29     ` York Sun [this message]
2015-09-15  3:04       ` Lu Y.B.

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=55F782A0.1040409@freescale.com \
    --to=yorksun@freescale.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