OMAP3:devices.c: Enabling 4-bit for SD card
Subsystems (2)
PATCH 1/1 OMAP3:devices.c: Enabling 4-bit for SD card
OMAP3:devices.c:Enabling 4-bit for SD card
SD card was working in 1-bit mode.This patch will configure SD card in 4-bit mode and hence performance will increase.
--- arch/arm/plat-omap/devices.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
arch/arm/plat-omap/devices.c +3 -1
@@ -292,8 +292,10 @@ static void __init omap_init_mmc(void) mmc = &mmc_conf->mmc[0 ];if (cpu_is_omap2430 () ||cpu_is_omap34xx ()) { -if (mmc->enabled) +if (mmc->enabled) { + mmc1_data.conf = *mmc; (void )platform_device_register (&mmc_omap_device1); + }#if defined(CONFIG_ARCH_OMAP2430 ) || defined(CONFIG_ARCH_OMAP34XX ) mmc = &mmc_conf->mmc[1 ];
Quoted 17 lines · Purushotam Kumar
OMAP3:devices.c:Enabling 4-bit for SD card
SD card was working in 1-bit mode.This patch will configure SD card in 4-bit mode and hence performance will increase.
Signed-off-by Purushotam Kumar <[email protected]>--- arch/arm/plat-omap/devices.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)Index:
linux-omap-2.6/arch/arm/plat-omap/devices.c
===================================================================arch/arm/plat-omap/devices.c +0
-0@@ -292,8 +292,10 @@ static void __init omap_init_mmc(void) mmc = &mmc_conf->mmc[0 ];
arch/arm/plat-omap/devices.c static void __init omap_init_mmc(void) · line 301
Quoted 10 lines
arch/arm/plat-omap/devices.c +3
-1if (cpu_is_omap2430 () ||cpu_is_omap34xx ()) { -if (mmc->enabled) +if (mmc->enabled) { + mmc1_data.conf = *mmc; (void )platform_device_register (&mmc_omap_device1); + }#if defined(CONFIG_ARCH_OMAP2430 ) || defined(CONFIG_ARCH_OMAP34XX ) mmc = &mmc_conf->mmc[1 ];
I guess this should be also done for mmc2_data.conf?
Tony
Quoted 33 lines
-----Original Message-----
From: Tony Lindgren [mailto:[email protected]]
Sent: Monday, June 23, 2008 6:17 PM
To: Purushotam Kumar
Cc: [email protected]; Gole, Anant
Subject: Re: [PATCH] OMAP3:devices.c: Enabling 4-bit for SD cardQuoted 25 lines · Purushotam Kumar
OMAP3:devices.c:Enabling 4-bit for SD card
SD card was working in 1-bit mode.This patch will configure SD card in 4-bit mode and hence performance will increase.
Signed-off-by Purushotam Kumar <[email protected]>--- arch/arm/plat-omap/devices.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)Index:
linux-omap-2.6/arch/arm/plat-omap/devices.c
===================================================================arch/arm/plat-omap/devices.c +3
-1@@ -292,8 +292,10 @@ static void __init omap_init_mmc(void) mmc = &mmc_conf->mmc[0 ];if (cpu_is_omap2430 () ||cpu_is_omap34xx ()) { -if (mmc->enabled) +if (mmc->enabled) { + mmc1_data.conf = *mmc; (void )platform_device_register (&mmc_omap_device1); + }
Quoted 6 lines
arch/arm/plat-omap/devices.c static void __init omap_init_mmc(void) · line 301
Quoted 2 lines
arch/arm/plat-omap/devices.c +0
-0#if defined(CONFIG_ARCH_OMAP2430 ) || defined(CONFIG_ARCH_OMAP34XX ) mmc = &mmc_conf->mmc[1 ];I guess this should be also done for mmc2_data.conf?
Tony
I agree with you that it is required to be done for MMC2 as well. Please push this patch for MMC1 and I will submit other patch latter for MMC2.
Regards,
Purushotam
Kumar, Purushotam
Acked-by Madhusudhan Chikkature RajashekarTony,
I updated patch for MMC1 and MMC2 and also refreshed the patch. I am attaching patch with this mail.
Regards,
Purushotam
Quoted 45 lines
-----Original Message-----
From: Kumar, Purushotam
Sent: Wednesday, June 25, 2008 3:34 PM
To: Tony Lindgren; Purushotam Kumar
Cc: [email protected]; Gole, Anant
Subject: RE: [PATCH] OMAP3:devices.c: Enabling 4-bit for SD cardQuoted 38 lines
-----Original Message-----
From: Tony Lindgren [mailto:[email protected]]
Sent: Monday, June 23, 2008 6:17 PM
To: Purushotam Kumar
Cc: [email protected]; Gole, Anant
Subject: Re: [PATCH] OMAP3:devices.c: Enabling 4-bit for SD cardQuoted 17 lines · Purushotam Kumar
OMAP3:devices.c:Enabling 4-bit for SD card
SD card was working in 1-bit mode.This patch will configure SD card in 4-bit mode and hence performance will increase.
Signed-off-by Purushotam Kumar <[email protected]>--- arch/arm/plat-omap/devices.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)Index:
linux-omap-2.6/arch/arm/plat-omap/devices.c
===================================================================arch/arm/plat-omap/devices.c +0
-0@@ -292,8 +292,10 @@ static void __init omap_init_mmc(void) mmc = &mmc_conf->mmc[0 ];arch/arm/plat-omap/devices.c static void __init omap_init_mmc(void) · line 301
Quoted 10 lines
arch/arm/plat-omap/devices.c +3
-1if (cpu_is_omap2430 () ||cpu_is_omap34xx ()) { -if (mmc->enabled) +if (mmc->enabled) { + mmc1_data.conf = *mmc; (void )platform_device_register (&mmc_omap_device1); + }#if defined(CONFIG_ARCH_OMAP2430 ) || defined(CONFIG_ARCH_OMAP34XX ) mmc = &mmc_conf->mmc[1 ];I guess this should be also done for mmc2_data.conf?
Quoted 7 lines
Quoted 1 line
Tony
I agree with you that it is required to be done for MMC2 as well. Please push this patch for MMC1 and I will submit other patch latter for MMC2.
Regards,
Purushotam
OMAP3:devices.c:Enabling 4-bit for SD card
SD card was working in 1-bit mode.This patch will configure SD card in 4-bit mode and hence performance will increase.
--- arch/arm/plat-omap/devices.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
arch/arm/plat-omap/devices.c +6 -2
@@ -296,13 +296,17 @@ static void __init omap_init_mmc(void) mmc = &mmc_conf->mmc[0 ];if (cpu_is_omap2430 () ||cpu_is_omap34xx ()) { -if (mmc->enabled) +if (mmc->enabled) { + mmc1_data.conf = *mmc; (void )platform_device_register (&mmc_omap_device1); + }#if defined(CONFIG_ARCH_OMAP2430 ) || defined(CONFIG_ARCH_OMAP34XX ) mmc = &mmc_conf->mmc[1 ]; -if (mmc->enabled) +if (mmc->enabled) { + mmc2_data.conf = *mmc; (void )platform_device_register (&mmc_omap_device2); + }#endif return ;
Quoted 6 lines · Purushotam
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
if (
cpu_is_omap2430()||cpu_is_omap34xx()) {
- if (mmc->enabled)
+ if (mmc->enabled) {
+ mmc1_data.conf = *mmc;
(void)platform_device_register(&mmc_omap_device1);
+ }
I don't get it. OMAP3 uses the hsmmc code, which uses a "struct omap_mmc_platform_data" to configure itself.
But this patch updates a "struct omap_mmc_conf" as used by the non-hsmmc code.
So ... it's a NOP, at least for OMAP3. Right?
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
----- Original Message -----
From: "David Brownell" <[email protected]>
To: "Kumar, Purushotam" <[email protected]>
Cc: "Tony Lindgren" <[email protected]>; "Purushotam Kumar" <[email protected]>; <[email protected]>; "Gole, Anant" <[email protected]>
Sent: Tuesday, August 05, 2008 12:40 PM
Subject: Re: [PATCH] OMAP3:devices.c: Enabling 4-bit for SD card
Quoted 8 lines · Purushotam
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
if (
cpu_is_omap2430()||cpu_is_omap34xx()) {
- if (mmc->enabled)
+ if (mmc->enabled) {
+ mmc1_data.conf = *mmc;
(void)platform_device_register(&mmc_omap_device1);
+ }
Quoted 7 lines
I don't get it. OMAP3 uses the hsmmc code, which uses a "struct
omap_mmc_platform_data" to configure itself.But this patch updates a "struct
omap_mmc_conf" as used by the non-hsmmc code.So ... it's a NOP, at least for OMAP3. Right?
Hi Dave,
I think there is no difference between hsmmc code vs non-hsmmc code with respect to platform specific structure initializations. Both of them use "omap_mmc_platform_data" as well as "omap_mmc_config" structures. I had a quick look at board-h4-mmc.c and board-h4.c to verify this.
What this patch does is to add the missing initializtion line "mmc1_data.conf = *mmc;" for 2430 or 3430 which was present for platforms other than these. Without this line the below condition in the hsmmc driver will not evaluate to true.
if (pdata->conf.wire4)
mmc->caps |= MMC_CAP_4_BIT_DATA;
The header "include/asm-arm/arch-omap/mmc.h" is used by both hsmmc and non-hsmmc code.
Regards,
Madhu
Quoted 7 lines
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html