MMC: Consolidate MMC/SD command definitions
PATCH 1/1 MMC: Consolidate MMC/SD command definitions
This moves the MMC and SD Card command definitions from include/asm/arch/mmc.h into include/mmc.h. These definitions are given by the MMC and SD Card standards, not by any particular architecture.
There's a lot more room for consolidation in the MMC drivers which I'm hoping to get done eventually, but this patch is a start.
Compile-tested for all avr32 boards as well as lpc2292sodimm and lubbock. This should cover all three mmc drivers in the tree.
--- cpu/at32ap/atmel_mci.c | 4 ++-- cpu/pxa/mmc.c | 8 ++++---- include/asm-arm/arch-pxa/mmc.h | 17 ----------------- include/asm-avr32/arch-at32ap700x/mmc.h | 19 ------------------- include/mmc.h | 24 ++++++++++++++++++++++++ 5 files changed, 30 insertions(+), 42 deletions(-)
cpu/at32ap/atmel_mci.c +2 -2
@@ -350,7 +350,7 @@ static int sd_init_card(struct mmc_cid *cid, int verbose)mmc_idle_cards ();for (i =0 ; i <1000 ; i++) { - ret =mmc_acmd (MMC_ACMD_SD_SEND_OP_COND ,CFG_MMC_OP_COND , + ret =mmc_acmd (SD_CMD_APP_SEND_OP_COND ,CFG_MMC_OP_COND , resp,R3 |NID );if (ret || (resp[0 ] &0x80000000 ))break ;
@@ -368,7 +368,7 @@ static int sd_init_card(struct mmc_cid *cid, int verbose)mmc_dump_cid (cid);/* Get RCA of the card that responded */ - ret =mmc_cmd (MMC_CMD_SD_SEND_RELATIVE_ADDR ,0 , resp,R6 |NCR ); + ret =mmc_cmd (SD_CMD_SEND_RELATIVE_ADDR ,0 , resp,R6 |NCR );if (ret)return ret;
cpu/pxa/mmc.c +4 -4
@@ -119,7 +119,7 @@ mmc_block_read(uchar * dst, ulong src, ulong len)MMC_RDTO =0xffff ;MMC_NOB =1 ;MMC_BLKLEN = len; -mmc_cmd (MMC_CMD_READ_BLOCK , argh, argl, +mmc_cmd (MMC_CMD_READ_SINGLE_BLOCK , argh, argl,MMC_CMDAT_R1 |MMC_CMDAT_READ |MMC_CMDAT_BLOCK |MMC_CMDAT_DATA_EN );
@@ -568,7 +568,7 @@ mmc_init(int verbose)MMC_SPI =MMC_SPI_DISABLE ;/* reset */ -mmc_cmd (MMC_CMD_RESET ,0 ,0 ,MMC_CMDAT_INIT |MMC_CMDAT_R0 ); +mmc_cmd (MMC_CMD_GO_IDLE_STATE ,0 ,0 ,MMC_CMDAT_INIT |MMC_CMDAT_R0 );udelay (200000 ); retries =3 ;while (retries--) {
@@ -578,7 +578,7 @@ mmc_init(int verbose)break ; } - resp =mmc_cmd (SD_CMD_APP_OP_COND ,0x0020 ,0 ,MMC_CMDAT_R3 | (retries <2 ?0 :MMC_CMDAT_INIT ));/* Select 3.2-3.3 and 3.3-3.4V */ + resp =mmc_cmd (SD_CMD_APP_SEND_OP_COND ,0x0020 ,0 ,MMC_CMDAT_R3 | (retries <2 ?0 :MMC_CMDAT_INIT ));/* Select 3.2-3.3 and 3.3-3.4V */ if (resp[0 ] &0x80000000 ) { mmc_dev.if_type =IF_TYPE_SD ;debug ("Detected SD card\n" );
@@ -616,7 +616,7 @@ mmc_init(int verbose)memcpy (cid_resp, resp,sizeof (cid_resp));/* MMC exists, get CSD too */ - resp =mmc_cmd (MMC_CMD_SET_RCA ,0 ,0 ,MMC_CMDAT_R1 ); + resp =mmc_cmd (MMC_CMD_SET_RELATIVE_ADDR ,0 ,0 ,MMC_CMDAT_R1 );if (IF_TYPE_SD == mmc_dev.if_type) rca = ((resp[0 ] &0xffff0000 ) >>16 ); resp =mmc_cmd (MMC_CMD_SEND_CSD , rca,0 ,MMC_CMDAT_R2 );
include/asm-arm/arch-pxa/mmc.h +0 -17
@@ -110,23 +110,6 @@#define MMC_DEFAULT_RCA 1#define MMC_BLOCK_SIZE 512 -#define MMC_CMD_RESET 0 -#define MMC_CMD_SEND_OP_COND 1 -#define MMC_CMD_ALL_SEND_CID 2 -#define MMC_CMD_SET_RCA 3 -#define MMC_CMD_SELECT_CARD 7 -#define MMC_CMD_SEND_CSD 9 -#define MMC_CMD_SEND_CID 10 -#define MMC_CMD_SEND_STATUS 13 -#define MMC_CMD_SET_BLOCKLEN 16 -#define MMC_CMD_READ_BLOCK 17 -#define MMC_CMD_RD_BLK_MULTI 18 -#define MMC_CMD_WRITE_BLOCK 24 -#define MMC_CMD_APP_CMD 55 - -#define SD_CMD_APP_SET_BUS_WIDTH 6 -#define SD_CMD_APP_OP_COND 41 -#define MMC_MAX_BLOCK_SIZE 512#define MMC_R1_IDLE_STATE 0x01
include/asm-avr32/arch-at32ap700x/mmc.h +0 -19
@@ -71,25 +71,6 @@ struct mmc_csd u8 one:1; }; -/* MMC Command numbers */ -#define MMC_CMD_GO_IDLE_STATE 0 -#define MMC_CMD_SEND_OP_COND 1 -#define MMC_CMD_ALL_SEND_CID 2 -#define MMC_CMD_SET_RELATIVE_ADDR 3 -#define MMC_CMD_SD_SEND_RELATIVE_ADDR 3 -#define MMC_CMD_SET_DSR 4 -#define MMC_CMD_SELECT_CARD 7 -#define MMC_CMD_SEND_CSD 9 -#define MMC_CMD_SEND_CID 10 -#define MMC_CMD_SEND_STATUS 13 -#define MMC_CMD_SET_BLOCKLEN 16 -#define MMC_CMD_READ_SINGLE_BLOCK 17 -#define MMC_CMD_READ_MULTIPLE_BLOCK 18 -#define MMC_CMD_WRITE_BLOCK 24 -#define MMC_CMD_APP_CMD 55 - -#define MMC_ACMD_SD_SEND_OP_COND 41 -#define R1_ILLEGAL_COMMAND (1 << 22)#define R1_APP_CMD (1 << 5)
include/mmc.h +24 -0
@@ -25,6 +25,30 @@#define _MMC_H_#include <asm/arch/mmc.h> +/* MMC command numbers */ +#define MMC_CMD_GO_IDLE_STATE 0 +#define MMC_CMD_SEND_OP_COND 1 +#define MMC_CMD_ALL_SEND_CID 2 +#define MMC_CMD_SET_RELATIVE_ADDR 3 +#define MMC_CMD_SET_DSR 4 +#define MMC_CMD_SELECT_CARD 7 +#define MMC_CMD_SEND_CSD 9 +#define MMC_CMD_SEND_CID 10 +#define MMC_CMD_SEND_STATUS 13 +#define MMC_CMD_SET_BLOCKLEN 16 +#define MMC_CMD_READ_SINGLE_BLOCK 17 +#define MMC_CMD_READ_MULTIPLE_BLOCK 18 +#define MMC_CMD_WRITE_BLOCK 24 +#define MMC_CMD_APP_CMD 55 + +/* SD Card command numbers */ +#define SD_CMD_SEND_RELATIVE_ADDR 3 +#define SD_CMD_SWITCH 6 +#define SD_CMD_SEND_IF_COND 8 + +#define SD_CMD_APP_SET_BUS_WIDTH 6 +#define SD_CMD_APP_SEND_OP_COND 41 +int mmc_init (int verbose);int mmc_read (ulong src,uchar *dst,int size);int mmc_write (uchar *src,ulong dst,int size);
Signature · 1 line
1.5.5.1
PATCH 1/1 MMC: Consolidate MMC/SD command definitions
<snip>
Quoted 6 lines
This moves the MMC and SD Card command definitions from
include/asm/arch/mmc.hintoinclude/mmc.h. These definitions are given by the MMC and SD Card standards, not by any particular architecture.There's a lot more room for consolidation in the MMC drivers which I'm hoping to get done eventually, but this patch is a start.
Can we have one mmc-lite stack from linux kernel? The linux kernel have one good frame work for sd/mmc/sdio.
Thanks,
Dave
PATCH 1/1 MMC: Consolidate MMC/SD command definitions
Quoted 9 lines · Liu Dave
Quoted 6 lines
This moves the MMC and SD Card command definitions from
include/asm/arch/mmc.hintoinclude/mmc.h. These definitions are given by the MMC and SD Card standards, not by any particular architecture.There's a lot more room for consolidation in the MMC drivers which I'm hoping to get done eventually, but this patch is a start.
Can we have one mmc-lite stack from linux kernel? The linux kernel have one good frame work for sd/mmc/sdio.
Yes, I was hoping we could do something like that. There's a lot of duplication in the various MMC drivers we have, and none of them support all kinds of cards AFAIK.
It would be nice with a core protocol layer which takes care of initialization and stuff, leaving only the low-level hardware stuff to the driver.
The Linux mmc framework is certainly good...but it may be too heavyweight for u-boot.
Haavard
PATCH 1/1 Remove [email protected] from MAINTAINERS
In reply to Haavard SkinnemoenQuoted 8 lines
Your message
To: u-boot-users at lists.sourceforge.net
Cc: wd at denx.de; kharris at nexus-tech.net; peter.pearse at arm.com;
Skinnemoen, Haavard
Subject: [PATCH] MMC: Consolidate MMC/SD command definitions
Sent: Wed, 21 May 2008 14:12:45 +0200
Quoted 7 lines
did not reach the following recipient(s):
kharris at nexus-tech.net on Wed, 21 May 2008 14:10:52 +0200
The e-mail account does not exist at the organization this message
was sent to. Check the e-mail address, or contact the recipient directly to find out the correct address.< bagnes.atmel.com #5.1.1 SMTP; 550 5.1.1 User unknown>
You can't be a maintainer without a valid e-mail address...
--- MAINTAINERS | 6 ------ 1 files changed, 0 insertions(+), 6 deletions(-)
MAINTAINERS +0 -6
@@ -484,12 +484,6 @@ Kshitij Gupta <[email protected]> omap1510inn ARM925T omap1610inn ARM926EJS -Kyle Harris <[email protected]> - - lubbock xscale - cradle xscale - ixdp425 xscale - Gary Jennejohn <[email protected]> smdk2400 ARM920T
Signature · 1 line
1.5.5.1
PATCH 1/1 Remove [email protected] from MAINTAINERS
Quoted 10 lines · In message <[email protected]> you…
Quoted 10 lines
Your message
To: u-boot-users at lists.sourceforge.net
Cc: wd at denx.de; kharris at nexus-tech.net; peter.pearse at arm.com;
Skinnemoen, Haavard
Subject: [PATCH] MMC: Consolidate MMC/SD command definitions
Sent: Wed, 21 May 2008 14:12:45 +0200did not reach the following recipient(s):
Quoted 7 lines
Quoted 5 lines
kharris at nexus-tech.net on Wed, 21 May 2008 14:10:52 +0200
The e-mail account does not exist at the organization this message
was sent to. Check the e-mail address, or contact the recipient directly to find out the correct address.< bagnes.atmel.com #5.1.1 SMTP; 550 5.1.1 User unknown>You can't be a maintainer without a valid e-mail address...
I agree with the change itself, but please provide a better commit message, and ...
Quoted 13 lines
Signed-off-by Haavard Skinnemoen <[email protected]>--- MAINTAINERS | 6 ------ 1 files changed, 0 insertions(+), 6 deletions(-)MAINTAINERS +0
-0@@ -484,12 +484,6 @@ Kshitij Gupta <[email protected]> omap1510inn ARM925T omap1610inn ARM926EJS
MAINTAINERS Kshitij Gupta <[email protected]> · line 489
Quoted 10 lines
MAINTAINERS +0
-6-Kyle Harris <[email protected]> - - lubbock xscale - cradle xscale - ixdp425 xscale - Gary Jennejohn <[email protected]> smdk2400 ARM920T
... don't jusst delete the orphaned boards, but add them to the "Unknown / orphaned" list.
Thanks.
Best regards,
Wolfgang Denk
Signature · 6 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de "Infidels in all ages have battled for the rights of man, and have at all times been the fearless advocates of liberty and justice." - Robert Green Ingersoll
PATCH v2 1/1 Remove [email protected] from MAINTAINERS
Mail to kharris at nexus-tech.net bounces because the user doesn't exist anymore. You can't be a maintainer without a valid e-mail address, so move all boards that used to be maintained by Kyle Harris to the "orphaned" list.
Currently, only PowerPC has a list of orphaned boards, so this patch creates one for ARM as well.
---
Quoted 2 lines · On Sun, 06 Jul 2008 00:32:01 +0200 Wolfgang Denk <[email protected]> wrote:
... don't jusst delete the orphaned boards, but add them to the "Unknown / orphaned" list.
I created a new Unknown/orphaned list for ARM since the existing one was located in the PowerPC section and only had PowerPC boards on it. Is that ok?
MAINTAINERS | 14 ++++++++------ 1 files changed, 8 insertions(+), 6 deletions(-)
MAINTAINERS +8 -6
@@ -492,12 +492,6 @@ Kshitij Gupta <[email protected]> omap1510inn ARM925T omap1610inn ARM926EJS -Kyle Harris <[email protected]> - - lubbock xscale - cradle xscale - ixdp425 xscale - Gary Jennejohn <[email protected]> smdk2400 ARM920T
@@ -591,6 +585,14 @@ Michael Schwingen <[email protected]> actux3 xscale actux4 xscale +------------------------------------------------------------------------- + +Unknown / orphaned boards: + + cradle xscale + ixdp425 xscale + lubbock xscale + ######################################################################### # x86 Systems: # # #
Signature · 1 line
1.5.4.3
PATCH v2 1/1 Remove [email protected] from MAINTAINERS
Quoted 43 lines · Haavard Skinnemoen
Mail to kharris at nexus-tech.net bounces because the user doesn't exist anymore. You can't be a maintainer without a valid e-mail address, so move all boards that used to be maintained by Kyle Harris to the "orphaned" list.
Currently, only PowerPC has a list of orphaned boards, so this patch creates one for ARM as well.
Signed-off-by Haavard Skinnemoen <[email protected]>---
Quoted 2 lines · On Sun, 06 Jul 2008 00:32:01 +0200 Wolfgang Denk <[email protected]> wrote:
... don't jusst delete the orphaned boards, but add them to the "Unknown / orphaned" list.
I created a new Unknown/orphaned list for ARM since the existing one was located in the PowerPC section and only had PowerPC boards on it. Is that ok?
MAINTAINERS | 14 ++++++++------ 1 files changed, 8 insertions(+), 6 deletions(-)MAINTAINERS +1
-6@@ -492,12 +492,6 @@ Kshitij Gupta <[email protected]> omap1510inn ARM925T omap1610inn ARM926EJS -Kyle Harris <[email protected]> - - lubbock xscale - cradle xscale - ixdp425 xscale - Gary Jennejohn <[email protected]> smdk2400 ARM920T@@ -591,6 +585,14 @@ Michael Schwingen <[email protected]> actux3 xscale actux4 xscale +-------------------------------------------------------------------------
MAINTAINERS Michael Schwingen <[email protected]> · line 598
Quoted 10 lines
MAINTAINERS +7
-0+ +Unknown / orphaned boards: + + cradle xscale + ixdp425 xscale + lubbock xscale + ######################################################################### # x86 Systems: # # #
Would it be reasonable to add an optional tag "last known maintainer" for orphaned boards so someone can chase it without pawing through git history? E.g.:
+-------------------------------------------------------------------------
+
+Unknown / orphaned boards:
+
+Last known maintainer: Kyle Harris <[email protected]>
+ cradle xscale
+ ixdp425 xscale
+ lubbock xscale
+
Best regards,
gvb
PATCH v2 1/1 Remove [email protected] from MAINTAINERS
Quoted 17 lines · Jerry Van Baren
MAINTAINERS Michael Schwingen <[email protected]> · line 598
Quoted 10 lines
MAINTAINERS +7
-0+ +Unknown / orphaned boards: + + cradle xscale + ixdp425 xscale + lubbock xscale + ######################################################################### # x86 Systems: # # #Would it be reasonable to add an optional tag "last known maintainer" for orphaned boards so someone can chase it without pawing through git history? E.g.:
+-------------------------------------------------------------------------
MAINTAINERS Michael Schwingen <[email protected]> · line 595
Quoted 8 lines
MAINTAINERS +8
-0+ +Unknown / orphaned boards: + +Last known maintainer: Kyle Harris <[email protected]> + cradle xscale + ixdp425 xscale + lubbock xscale +
Good idea
Best Regards,
J.
PATCH v2 1/1 Remove [email protected] from MAINTAINERS
In reply to Jerry Van BarenQuoted 4 lines · In message <[email protected]> you wrote:
Would it be reasonable to add an optional tag "last known maintainer" for orphaned boards so someone can chase it without pawing through git history? E.g.:
Excellent idea. I like it.
MAINTAINERS Michael Schwingen <[email protected]> · line 594
Quoted 8 lines
+-------------------------------------------------------------------------
MAINTAINERS +7
-0+ +Unknown / orphaned boards: + +Last known maintainer: Kyle Harris <[email protected]> + cradle xscale + ixdp425 xscale + lubbock xscale
Let's rather have a third column:
board arch LKM (if any)
cradle xscale Kyle Harris <[email protected]>
...
etc.
Best regards,
Wolfgang Denk
Signature · 6 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de ... The prejudices people feel about each other disappear when then get to know each other. -- Kirk, "Elaan of Troyius", stardate 4372.5
PATCH v2 1/1 Remove [email protected] from MAINTAINERS
Quoted 22 lines · Wolfgang Denk
Quoted 3 lines · In message <[email protected]> you wrote:
Would it be reasonable to add an optional tag "last known maintainer" for orphaned boards so someone can chase it without pawing through git history? E.g.:
Excellent idea. I like it.
MAINTAINERS Michael Schwingen <[email protected]> · line 594
Quoted 8 lines
+-------------------------------------------------------------------------
MAINTAINERS +7
-0+ +Unknown / orphaned boards: + +Last known maintainer: Kyle Harris <[email protected]> + cradle xscale + ixdp425 xscale + lubbock xscaleLet's rather have a third column:
board arch LKM (if any)
cradle xscale Kyle Harris <[email protected]>
...
Quoted 6 lines
etc.
Best regards,
Wolfgang Denk
I'm OK with that too. I actually did that first, but it linewrapped on me so I put the LKM on a separate line. Ahh, I see you deleted a tab.
+1
gvb
Wolfgang Denk
AppliedPATCH v2 1/1 Remove [email protected] from MAINTAINERS
In reply to Haavard SkinnemoenQuoted 14 lines · In message <[email protected]> you wrote:
Mail to kharris at nexus-tech.net bounces because the user doesn't exist anymore. You can't be a maintainer without a valid e-mail address, so move all boards that used to be maintained by Kyle Harris to the "orphaned" list.
Currently, only PowerPC has a list of orphaned boards, so this patch creates one for ARM as well.
Signed-off-by Haavard Skinnemoen <[email protected]>---
Quoted 2 lines · On Sun, 06 Jul 2008 00:32:01 +0200 Wolfgang Denk <[email protected]> wrote:
... don't jusst delete the orphaned boards, but add them to the "Unknown / orphaned" list.
Quoted 6 lines
I created a new Unknown/orphaned list for ARM since the existing one was located in the PowerPC section and only had PowerPC boards on it. Is that ok?
MAINTAINERS | 14 ++++++++------ 1 files changed, 8 insertions(+), 6 deletions(-)
Applied. Thanks.
I will send an additional patch top add the "last known maintainer" column as discussed.
Best regards,
Wolfgang Denk
Signature · 6 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Alliance: In international politics, the union of two thieves who have their hands so deeply inserted in each other's pocket that they cannot separately plunder a third. - Ambrose Bierce
PATCH 1/1 Add last known maintainer for orphaned boards; reformat.
In reply to Haavard Skinnemoen--- MAINTAINERS | 681 +++++++++++++++++++++++++++++------------------------------ 1 files changed, 339 insertions(+), 342 deletions(-)
MAINTAINERS +339 -342
@@ -14,261 +14,260 @@ # PowerPC Systems: # # # # Maintainer Name, Email Address # -# Board CPU # +# Board CPU # ######################################################################### Greg Allen <[email protected]> - UTX8245 MPC8245 + UTX8245 MPC8245 Pantelis Antoniou <[email protected]> - NETVIA MPC8xx + NETVIA MPC8xx Reinhard Arlt <[email protected]> - cpci5200 MPC5200 - mecp5200 MPC5200 - pf5200 MPC5200 + cpci5200 MPC5200 + mecp5200 MPC5200 + pf5200 MPC5200 - CPCI750 PPC750FX/GX + CPCI750 PPC750FX/GX Yuli Barcohen <[email protected]> - Adder MPC87x/MPC852T - ep8248 MPC8248 - ISPAN MPC8260 - MPC8260ADS MPC826x/MPC827x/MPC8280 - Rattler MPC8248 - ZPC1900 MPC8265 + Adder MPC87x/MPC852T + ep8248 MPC8248 + ISPAN MPC8260 + MPC8260ADS MPC826x/MPC827x/MPC8280 + Rattler MPC8248 + ZPC1900 MPC8265 Michael Barkowski <[email protected]> - MPC8323ERDB MPC8323 + MPC8323ERDB MPC8323 Jerry Van Baren <[email protected]> - sacsng MPC8260 + sacsng MPC8260 Oliver Brown <[email protected]> - gw8260 MPC8260 + gw8260 MPC8260 Conn Clark <[email protected]> - ESTEEM192E MPC8xx + ESTEEM192E MPC8xx Joe D'Abbraccio <[email protected]> - MPC837xERDB MPC837x + MPC837xERDB MPC837x K?ri Dav??sson <[email protected]> - FLAGADM MPC823 + FLAGADM MPC823 Torsten Demke <[email protected]> - eXalion MPC824x + eXalion MPC824x Wolfgang Denk <[email protected]> - IceCube_5100 MGT5100 - IceCube_5200 MPC5200 - - AMX860 MPC860 - ETX094 MPC850 - FPS850L MPC850 - FPS860L MPC860 - ICU862 MPC862 - IP860 MPC860 - IVML24 MPC860 - IVML24_128 MPC860 - IVML24_256 MPC860 - IVMS8 MPC860 - IVMS8_128 MPC860 - IVMS8_256 MPC860 - LANTEC MPC850 - LWMON MPC823 - NC650 MPC852 - R360MPI MPC823 - RMU MPC850 - RRvision MPC823 - SM850 MPC850 - SPD823TS MPC823 - TQM823L MPC823 - TQM823L_LCD MPC823 - TQM850L MPC850 - TQM855L MPC855 - TQM860L MPC860 - TQM860L_FEC MPC860 - c2mon MPC855 - hermes MPC860 - lwmon MPC823 - pcu_e MPC855 - - CU824 MPC8240 - Sandpoint8240 MPC8240 - SL8245 MPC8245 - - ATC MPC8250 - PM825 MPC8250 - - TQM8255 MPC8255 - - CPU86 MPC8260 - PM826 MPC8260 - TQM8260 MPC8260 - - P3G4 MPC7410 - - PCIPPC2 MPC750 - PCIPPC6 MPC750 - - EXBITGEN PPC405GP + IceCube_5100 MGT5100 + IceCube_5200 MPC5200 + + AMX860 MPC860 + ETX094 MPC850 + FPS850L MPC850 + FPS860L MPC860 + ICU862 MPC862 + IP860 MPC860 + IVML24 MPC860 + IVML24_128 MPC860 + IVML24_256 MPC860 + IVMS8 MPC860 + IVMS8_128 MPC860 + IVMS8_256 MPC860 + LANTEC MPC850 + LWMON MPC823 + NC650 MPC852 + R360MPI MPC823 + RMU MPC850 + RRvision MPC823 + SM850 MPC850 + SPD823TS MPC823 + TQM823L MPC823 + TQM823L_LCD MPC823 + TQM850L MPC850 + TQM855L MPC855 + TQM860L MPC860 + TQM860L_FEC MPC860 + c2mon MPC855 + hermes MPC860 + lwmon MPC823 + pcu_e MPC855 + + CU824 MPC8240 + Sandpoint8240 MPC8240 + SL8245 MPC8245 + + ATC MPC8250 + PM825 MPC8250 + + TQM8255 MPC8255 + + CPU86 MPC8260 + PM826 MPC8260 + TQM8260 MPC8260 + + P3G4 MPC7410 + + PCIPPC2 MPC750 + PCIPPC6 MPC750 + + EXBITGEN PPC405GP Jon Diekema <[email protected]> - sbc8260 MPC8260 + sbc8260 MPC8260 Dave Ellis <[email protected]> - SXNI855T MPC8xx + SXNI855T MPC8xx Thomas Frieden <[email protected]> - AmigaOneG3SE MPC7xx + AmigaOneG3SE MPC7xx Matthias Fuchs <[email protected]> - ADCIOP IOP480 (PPC401) - APC405 PPC405GP - AR405 PPC405GP - ASH405 PPC405EP - CANBT PPC405CR - CPCI2DP PPC405GP - CPCI405 PPC405GP - CPCI4052 PPC405GP - CPCI405AB PPC405GP - CPCI405DT PPC405GP - CPCIISER4 PPC405GP - DASA_SIM IOP480 (PPC401) - DP405 PPC405EP - DU405 PPC405GP - DU440 PPC440EPx - G2000 PPC405EP - HH405 PPC405EP - HUB405 PPC405EP - OCRTC PPC405GP - ORSG PPC405GP - PCI405 PPC405GP - PLU405 PPC405EP - PMC405 PPC405GP - PMC440 PPC440EPx - VOH405 PPC405EP - VOM405 PPC405EP - WUH405 PPC405EP - CMS700 PPC405EP + ADCIOP IOP480 (PPC401) + APC405 PPC405GP + AR405 PPC405GP + ASH405 PPC405EP + CANBT PPC405CR + CPCI2DP PPC405GP + CPCI405 PPC405GP + CPCI4052 PPC405GP + CPCI405AB PPC405GP + CPCI405DT PPC405GP + CPCIISER4 PPC405GP + DASA_SIM IOP480 (PPC401) + DP405 PPC405EP + DU405 PPC405GP + DU440 PPC440EPx + G2000 PPC405EP + HH405 PPC405EP + HUB405 PPC405EP + OCRTC PPC405GP + ORSG PPC405GP + PCI405 PPC405GP + PLU405 PPC405EP + PMC405 PPC405GP + PMC440 PPC440EPx + VOH405 PPC405EP + VOM405 PPC405EP + WUH405 PPC405EP + CMS700 PPC405EP Niklaus Giger <[email protected]> - HCU4 PPC405GPr - MCU25 PPC405GPr - HCU5 PPC440EPx + HCU4 PPC405GPr + MCU25 PPC405GPr + HCU5 PPC440EPx Frank Gottschling <[email protected]> - MHPC MPC8xx + MHPC MPC8xx - BAB7xx MPC740/MPC750 + BAB7xx MPC740/MPC750 Wolfgang Grandegger <[email protected]> - CCM MPC855 + CCM MPC855 - PN62 MPC8240 - - IPHASE4539 MPC8260 - SCM MPC8260 + PN62 MPC8240 + IPHASE4539 MPC8260 + SCM MPC8260 Howard Gray <[email protected]> - MVS1 MPC823 + MVS1 MPC823 Joe Hamman <[email protected]> - sbc8548 MPC8548 - sbc8641d MPC8641D + sbc8548 MPC8548 + sbc8641d MPC8641D Klaus Heydeck <[email protected]> - KUP4K MPC855 - KUP4X MPC859 + KUP4K MPC855 + KUP4X MPC859 Gary Jennejohn <[email protected]> - quad100hd PPC405EP + quad100hd PPC405EP Murray Jensen <[email protected]> - cogent_mpc8xx MPC8xx + cogent_mpc8xx MPC8xx - cogent_mpc8260 MPC8260 - hymod MPC8260 + cogent_mpc8260 MPC8260 + hymod MPC8260 Larry Johnson <[email protected]> - korat PPC440EPx + korat PPC440EPx Brad Kemp <[email protected]> - ppmc8260 MPC8260 + ppmc8260 MPC8260 Sangmoon Kim <[email protected]> - debris MPC8245 - KVME080 MPC8245 + debris MPC8245 + KVME080 MPC8245 Thomas Lange <[email protected]> - GTH MPC860 + GTH MPC860 Robert Lazarski <[email protected]> - ATUM8548 MPC8548 + ATUM8548 MPC8548 The LEOX team <[email protected]> - ELPT860 MPC860T + ELPT860 MPC860T Dave Liu <[email protected]> - MPC8315ERDB MPC8315 - MPC832XEMDS MPC832x - MPC8360EMDS MPC8360 - MPC837XEMDS MPC837x + MPC8315ERDB MPC8315 + MPC832XEMDS MPC832x + MPC8360EMDS MPC8360 + MPC837XEMDS MPC837x Nye Liu <[email protected]> - ZUMA MPC7xx_74xx + ZUMA MPC7xx_74xx Jon Loeliger <[email protected]> - MPC8540ADS MPC8540 - MPC8560ADS MPC8560 - MPC8541CDS MPC8541 - MPC8555CDS MPC8555 + MPC8540ADS MPC8540 + MPC8560ADS MPC8560 + MPC8541CDS MPC8541 + MPC8555CDS MPC8555 - MPC8641HPCN MPC8641D + MPC8641HPCN MPC8641D Dan Malek <[email protected]> - stxgp3 MPC85xx - stxssa MPC85xx - stxxtc MPC8xx + stxgp3 MPC85xx + stxssa MPC85xx + stxxtc MPC8xx Eran Man <[email protected]> - EVB64260_750CX MPC750CX + EVB64260_750CX MPC750CX Andrea "llandre" Marson <[email protected]>
@@ -276,75 +275,75 @@ Andrea "llandre" Marson <[email protected]> Reinhard Meyer <[email protected]> - TOP860 MPC860T - TOP5200 MPC5200 + TOP860 MPC860T + TOP5200 MPC5200 Tolunay Orkun <[email protected]> - csb272 PPC405GP - csb472 PPC405GP + csb272 PPC405GP + csb472 PPC405GP John Otken <[email protected]> - luan PPC440SP - taihu PPC405EP + luan PPC440SP + taihu PPC405EP Keith Outwater <[email protected]> - GEN860T MPC860T - GEN860T_SC MPC860T + GEN860T MPC860T + GEN860T_SC MPC860T Frank Panno <[email protected]> - ep8260 MPC8260 + ep8260 MPC8260 Denis Peter <[email protected]> - MIP405 PPC4xx - PIP405 PPC4xx + MIP405 PPC4xx + PIP405 PPC4xx Kim Phillips <[email protected]> - MPC8349EMDS MPC8349 + MPC8349EMDS MPC8349 Daniel Poirot <[email protected]> - sbc8240 MPC8240 - sbc405 PPC405GP + sbc8240 MPC8240 + sbc405 PPC405GP Stefan Roese <[email protected]> - P3M7448 MPC7448 - - uc100 MPC857 - - TQM85xx MPC8540/8541/8555/8560 - - acadia PPC405EZ - alpr PPC440GX - bamboo PPC440EP - bunbinga PPC405EP - canyonlands PPC460EX - ebony PPC440GP - glacier PPC460GT - haleakala PPC405EXr - katmai PPC440SPe - kilauea PPC405EX - lwmon5 PPC440EPx - makalu PPC405EX - ocotea PPC440GX - p3p440 PPC440GP - pcs440ep PPC440EP - rainier PPC440GRx - sequoia PPC440EPx - sycamore PPC405GPr - taishan PPC440GX - walnut PPC405GP - yellowstone PPC440GR - yosemite PPC440EP - zeus PPC405EP - - P3M750 PPC750FX/GX/GL + P3M7448 MPC7448 + + uc100 MPC857 + + TQM85xx MPC8540/8541/8555/8560 + + acadia PPC405EZ + alpr PPC440GX + bamboo PPC440EP + bunbinga PPC405EP + canyonlands PPC460EX + ebony PPC440GP + glacier PPC460GT + haleakala PPC405EXr + katmai PPC440SPe + kilauea PPC405EX + lwmon5 PPC440EPx + makalu PPC405EX + ocotea PPC440GX + p3p440 PPC440GP + pcs440ep PPC440EP + rainier PPC440GRx + sequoia PPC440EPx + sycamore PPC405GPr + taishan PPC440GX + walnut PPC405GP + yellowstone PPC440GR + yosemite PPC440EP + zeus PPC405EP + + P3M750 PPC750FX/GX/GL Yusdi Santoso <[email protected]>
@@ -352,406 +351,404 @@ Yusdi Santoso <[email protected]> Travis Sawyer (travis.sawyer at sandburst.com> - KAREF PPC440GX - METROBOX PPC440GX - XPEDITE1K PPC440GX + KAREF PPC440GX + METROBOX PPC440GX + XPEDITE1K PPC440GX Heiko Schocher <[email protected]> - ids8247 MPC8247 - jupiter MPC5200 - mgcoge MPC8247 - mgsuvd MPC852 - municse MPC5200 - sc3 PPC405GP - uc101 MPC5200 + ids8247 MPC8247 + jupiter MPC5200 + mgcoge MPC8247 + mgsuvd MPC852 + municse MPC5200 + sc3 PPC405GP + uc101 MPC5200 Peter De Schrijver <[email protected]> - ML2 PPC4xx + ML2 PPC4xx Andre Schwarz <[email protected]> - mvblm7 MPC8343 + mvblm7 MPC8343 Timur Tabi <[email protected]> - MPC8349E-mITX MPC8349 - MPC8349E-mITX-GP MPC8349 + MPC8349E-mITX MPC8349 + MPC8349E-mITX-GP MPC8349 Erik Theisen <[email protected]> - W7OLMC PPC4xx - W7OLMG PPC4xx + W7OLMC PPC4xx + W7OLMG PPC4xx Jim Thompson <[email protected]> - MUSENKI MPC8245/8241 - Sandpoint8245 MPC8245 + MUSENKI MPC8245/8241 + Sandpoint8245 MPC8245 Rune Torgersen <[email protected]> - MPC8266ADS MPC8266 + MPC8266ADS MPC8266 David Updegraff <[email protected]> - CRAYL1 PPC4xx + CRAYL1 PPC4xx Anton Vorontsov <[email protected]> - MPC8360ERDK MPC8360 + MPC8360ERDK MPC8360 Josef Wagner <[email protected]> - CPC45 MPC8245 - PM520 MPC5200 + CPC45 MPC8245 + PM520 MPC5200 Stephen Williams <[email protected]> - JSE PPC405GPr + JSE PPC405GPr John Zhan <[email protected]> - svm_sc8xx MPC8xx + svm_sc8xx MPC8xx Guennadi Liakhovetski <[email protected]> - linkstation MPC8241 + linkstation MPC8241 ------------------------------------------------------------------------- Unknown / orphaned boards: - ADS860 MPC8xx - FADS823 MPC8xx - FADS850SAR MPC8xx - FADS860T MPC8xx - GENIETV MPC8xx - IAD210 MPC8xx - MBX MPC8xx - MBX860T MPC8xx - NX823 MPC8xx - RPXClassic MPC8xx - RPXlite MPC8xx + ADS860 MPC8xx + FADS823 MPC8xx + FADS850SAR MPC8xx + FADS860T MPC8xx + GENIETV MPC8xx + IAD210 MPC8xx + MBX MPC8xx + MBX860T MPC8xx + NX823 MPC8xx + RPXClassic MPC8xx + RPXlite MPC8xx - ERIC PPC4xx + ERIC PPC4xx - MOUSSE MPC824x + MOUSSE MPC824x - RPXsuper MPC8260 - rsdproto MPC8260 + RPXsuper MPC8260 + rsdproto MPC8260 - EVB64260 MPC7xx_74xx + EVB64260 MPC7xx_74xx ######################################################################### # ARM Systems: # # # # Maintainer Name, Email Address # -# Board CPU # +# Board CPU # ######################################################################### Rowel Atienza <[email protected]> - armadillo ARM720T + armadillo ARM720T Rishi Bhattacharya <[email protected]> - omap5912osk ARM926EJS + omap5912osk ARM926EJS Cliff Brake <[email protected]> - pxa255_idp xscale + pxa255_idp xscale Rick Bronson <[email protected]> - AT91RM9200DK at91rm9200 + AT91RM9200DK at91rm9200 George G. Davis <[email protected]> - assabet SA1100 - gcplus SA1100 + assabet SA1100 + gcplus SA1100 Thomas Elste <[email protected]> - modnet50 ARM720T (NET+50) + modnet50 ARM720T (NET+50) Peter Figuli <[email protected]> - wepep250 xscale + wepep250 xscale Marius Gr?ger <[email protected]> - impa7 ARM720T (EP7211) - ep7312 ARM720T (EP7312) + impa7 ARM720T (EP7211) + ep7312 ARM720T (EP7312) Kshitij Gupta <[email protected]> - omap1510inn ARM925T - omap1610inn ARM926EJS + omap1510inn ARM925T + omap1610inn ARM926EJS Gary Jennejohn <[email protected]> - smdk2400 ARM920T - trab ARM920T + smdk2400 ARM920T + trab ARM920T Konstantin Kletschke <[email protected]> - scb9328 ARM920T + scb9328 ARM920T Nishant Kamat <[email protected]> - omap1610h2 ARM926EJS + omap1610h2 ARM926EJS Sergey Kubushyn <[email protected]> - DV-EVM ARM926EJS - SONATA ARM926EJS - SCHMOOGIE ARM926EJS + DV-EVM ARM926EJS + SONATA ARM926EJS + SCHMOOGIE ARM926EJS Prakash Kumar <[email protected]> - cerf250 xscale + cerf250 xscale David M?ller <[email protected]> - smdk2410 ARM920T - VCMA9 ARM920T + smdk2410 ARM920T + VCMA9 ARM920T Rolf Offermanns <[email protected]> - shannon SA1100 + shannon SA1100 Peter Pearse <[email protected]> - integratorcp All current ARM supplied & - supported core modules - -see http://www.arm.com - /products/DevTools - /Hardware_Platforms.html - versatile ARM926EJ-S - versatile ARM926EJ-S + integratorcp All current ARM supplied & supported core modules + -see http://www.arm.com/products/DevTools/Hardware_Platforms.html + versatile ARM926EJ-S + versatile ARM926EJ-S Dave Peverley <[email protected]> - omap730p2 ARM926EJS + omap730p2 ARM926EJS Stelian Pop <[email protected]> - at91cap9adk ARM926EJS (AT91CAP9 SoC) - at91sam9260ek ARM926EJS (AT91SAM9260 SoC) - at91sam9261ek ARM926EJS (AT91SAM9261 SoC) - at91sam9263ek ARM926EJS (AT91SAM9263 SoC) - at91sam9rlek ARM926EJS (AT91SAM9RL SoC) + at91cap9adk ARM926EJS (AT91CAP9 SoC) + at91sam9260ek ARM926EJS (AT91SAM9260 SoC) + at91sam9261ek ARM926EJS (AT91SAM9261 SoC) + at91sam9263ek ARM926EJS (AT91SAM9263 SoC) + at91sam9rlek ARM926EJS (AT91SAM9RL SoC) Stefan Roese <[email protected]> - ixdpg425 xscale - pdnb3 xscale - scpu xscale + ixdpg425 xscale + pdnb3 xscale + scpu xscale Robert Schwebel <[email protected]> - csb226 xscale - innokom xscale + csb226 xscale + innokom xscale Andrea Scian <[email protected]> - B2 ARM7TDMI (S3C44B0X) + B2 ARM7TDMI (S3C44B0X) Greg Ungerer <[email protected]> - cm4008 ks8695p - cm4116 ks8695p - cm4148 ks8695p + cm4008 ks8695p + cm4116 ks8695p + cm4148 ks8695p Richard Woodruff <[email protected]> - omap2420h4 ARM1136EJS + omap2420h4 ARM1136EJS Kyungmin Park <[email protected]> - apollon ARM1136EJS + apollon ARM1136EJS Alex Z?pke <[email protected]> - lart SA1100 - dnp1110 SA1110 + lart SA1100 + dnp1110 SA1110 Michael Schwingen <[email protected]> - actux1 xscale - actux2 xscale - actux3 xscale - actux4 xscale + actux1 xscale + actux2 xscale + actux3 xscale + actux4 xscale ------------------------------------------------------------------------- Unknown / orphaned boards: - - cradle xscale - ixdp425 xscale - lubbock xscale + Board CPU Last known maintainer / Comment +......................................................................... + cradle xscale Kyle Harris <[email protected]> / dead address + ixdp425 xscale Kyle Harris <[email protected]> / dead address + lubbock xscale Kyle Harris <[email protected]> / dead address ######################################################################### # x86 Systems: # # # # Maintainer Name, Email Address # -# Board CPU # +# Board CPU # ######################################################################### Daniel Engstr?m <[email protected]> - sc520_cdp x86 + sc520_cdp x86 ######################################################################### # MIPS Systems: # # # # Maintainer Name, Email Address # -# Board CPU # +# Board CPU # ######################################################################### Wolfgang Denk <[email protected]> - incaip MIPS32 4Kc - purple MIPS64 5Kc + incaip MIPS32 4Kc + purple MIPS64 5Kc Thomas Lange <[email protected]> - dbau1x00 MIPS32 Au1000 - gth2 MIPS32 Au1000 + dbau1x00 MIPS32 Au1000 + gth2 MIPS32 Au1000 Vlad Lungu <[email protected]> - qemu_mips MIPS32 + qemu_mips MIPS32 ######################################################################### # Nios-32 Systems: # # # # Maintainer Name, Email Address # -# Board CPU # +# Board CPU # ######################################################################### Stephan Linz <[email protected]> - DK1S10 Nios-32 - ADNPESC1 Nios-32 + DK1S10 Nios-32 + ADNPESC1 Nios-32 Scott McNutt <[email protected]> - DK1C20 Nios-32 + DK1C20 Nios-32 ######################################################################### # Nios-II Systems: # # # # Maintainer Name, Email Address # -# Board CPU # +# Board CPU # ######################################################################### Scott McNutt <[email protected]> - PCI5441 Nios-II - PK1C20 Nios-II - EP1C20 Nios-II - EP1S10 Nios-II - EP1S40 Nios-II + PCI5441 Nios-II + PK1C20 Nios-II + EP1C20 Nios-II + EP1S10 Nios-II + EP1S40 Nios-II ######################################################################### # MicroBlaze Systems: # # # # Maintainer Name, Email Address # -# Board CPU # +# Board CPU # ######################################################################### Yasushi Shoji <[email protected]> - SUZAKU MicroBlaze + SUZAKU MicroBlaze Michal Simek <[email protected]> - ML401 MicroBlaze - XUPV2P MicroBlaze + ML401 MicroBlaze + XUPV2P MicroBlaze ######################################################################### # Coldfire Systems: # # # # Maintainer Name, Email Address # -# Board CPU # +# Board CPU # ######################################################################### Matthias Fuchs <[email protected]> - TASREG MCF5249 + TASREG MCF5249 TsiChung Liew <[email protected]> - M52277EVB mcf5227x - M5235EVB mcf52x2 - M5329EVB mcf532x - M5373EVB mcf532x - M54455EVB mcf5445x - M5475EVB mcf547x_8x - M5485EVB mcf547x_8x + M52277EVB mcf5227x + M5235EVB mcf52x2 + M5329EVB mcf532x + M5373EVB mcf532x + M54455EVB mcf5445x + M5475EVB mcf547x_8x + M5485EVB mcf547x_8x Hayden Fraser <[email protected]> - M5253EVBE mcf52x2 + M5253EVBE mcf52x2 ######################################################################### # AVR32 Systems: # # # # Maintainer Name, Email Address # -# Board CPU # +# Board CPU # ######################################################################### Haavard Skinnemoen <[email protected]> - ATSTK1000 AT32AP7xxx - ATSTK1002 AT32AP7000 - ATSTK1003 AT32AP7001 - ATSTK1004 AT32AP7002 - ATSTK1006 AT32AP7000 - ATNGW100 AT32AP7000 + ATSTK1000 AT32AP7xxx + ATSTK1002 AT32AP7000 + ATSTK1003 AT32AP7001 + ATSTK1004 AT32AP7002 + ATSTK1006 AT32AP7000 + ATNGW100 AT32AP7000 ######################################################################### # SuperH Systems: # # # # Maintainer Name, Email Address # -# Board CPU # +# Board CPU # ######################################################################### Nobuhiro Iwamatsu <[email protected]> - MS7750SE SH7750 - MS7722SE SH7722 - R7780MP SH7780 - R2DPlus SH7751R - SH7763RDP SH7763 + MS7750SE SH7750 + MS7722SE SH7722 + R7780MP SH7780 + R2DPlus SH7751R + SH7763RDP SH7763 Mark Jonas <[email protected]> - mpr2 SH7720 + mpr2 SH7720 Yoshihiro Shimoda <[email protected]> - MS7720SE SH7720 + MS7720SE SH7720 Yusuke Goda <[email protected]> - MIGO-R SH7722 + MIGO-R SH7722 ######################################################################### # Blackfin Systems: # # # # Maintainer Name, Email Address # -# Board CPU # +# Board CPU # ######################################################################### Mike Frysinger <[email protected]> Blackfin Team <[email protected]> - BF533-EZKIT BF533 - BF533-STAMP BF533 - BF537-STAMP BF537 - BF561-EZKIT BF561 + BF533-EZKIT BF533 + BF533-STAMP BF533 + BF537-STAMP BF537 + BF561-EZKIT BF561 ######################################################################### # End of MAINTAINERS list #
Signature · 1 line
1.5.4.2
PATCH 1/1 MMC: Consolidate MMC/SD command definitions
In reply to Haavard SkinnemoenQuoted 13 lines
cpu/pxa/mmc.c +1
-1MMC_CMDAT_R1 |MMC_CMDAT_READ |MMC_CMDAT_BLOCK | MMC_CMDAT_DATA_EN);@@ -568,7 +568,7 @@ mmc_init(int verbose)MMC_SPI =MMC_SPI_DISABLE ;/* reset */ -mmc_cmd (MMC_CMD_RESET ,0 ,0 ,MMC_CMDAT_INIT |MMC_CMDAT_R0 ); +mmc_cmd (MMC_CMD_GO_IDLE_STATE ,0 ,0 ,MMC_CMDAT_INIT |MMC_CMDAT_R0 );udelay (200000 ); retries =3 ;while (retries--) {
cpu/pxa/mmc.c mmc_init(int verbose) · line 581
Quoted 5 lines
cpu/pxa/mmc.c +1
-1@@ -578,7 +578,7 @@ mmc_init(int verbose)break ; } - resp =mmc_cmd (SD_CMD_APP_OP_COND ,0x0020 ,0 ,MMC_CMDAT_R3 | (retries <2 ?0 :MMC_CMDAT_INIT ));/* Select 3.2-3.3 and 3.3-3.4V */ + resp =mmc_cmd (SD_CMD_APP_SEND_OP_COND ,0x0020 ,0 ,MMC_CMDAT_R3 | (retries <2 ?0 :MMC_CMDAT_INIT ));/* Select 3.2-3.3 and 3.3-3.4V */
Please split it
Quoted 19 lines
cpu/pxa/mmc.c +1
-1if (resp[0 ] &0x80000000 ) { mmc_dev.if_type =IF_TYPE_SD ;debug ("Detected SD card\n" );@@ -616,7 +616,7 @@ mmc_init(int verbose)memcpy (cid_resp, resp,sizeof (cid_resp));/* MMC exists, get CSD too */ - resp =mmc_cmd (MMC_CMD_SET_RCA ,0 ,0 ,MMC_CMDAT_R1 ); + resp =mmc_cmd (MMC_CMD_SET_RELATIVE_ADDR ,0 ,0 ,MMC_CMDAT_R1 );if (IF_TYPE_SD == mmc_dev.if_type) rca = ((resp[0 ] &0xffff0000 ) >>16 ); resp =mmc_cmd (MMC_CMD_SEND_CSD , rca,0 ,MMC_CMDAT_R2 );include/asm-arm/arch-pxa/mmc.h +0
-0@@ -110,23 +110,6 @@#define MMC_DEFAULT_RCA 1
include/asm-arm/arch-pxa/mmc.h line 121
Quoted 10 lines
include/asm-arm/arch-pxa/mmc.h +0
-9#define MMC_BLOCK_SIZE 512 -#define MMC_CMD_RESET 0 -#define MMC_CMD_SEND_OP_COND 1 -#define MMC_CMD_ALL_SEND_CID 2 -#define MMC_CMD_SET_RCA 3 -#define MMC_CMD_SELECT_CARD 7 -#define MMC_CMD_SEND_CSD 9 -#define MMC_CMD_SEND_CID 10 -#define MMC_CMD_SEND_STATUS 13 -#define MMC_CMD_SET_BLOCKLEN 16
Best Regards,
J
PATCH v2 1/1 MMC: Consolidate MMC/SD command definitions
This moves the MMC and SD Card command definitions from include/asm/arch/mmc.h into include/mmc.h. These definitions are given by the MMC and SD Card standards, not by any particular architecture.
There's a lot more room for consolidation in the MMC drivers which I'm hoping to get done eventually, but this patch is a start.
Compile-tested for all avr32 boards as well as lpc2292sodimm and lubbock. This should cover all three mmc drivers in the tree.
---
Quoted 3 lines · Jean-Christophe PLAGNIOL-VILLARD
Review
Quoted 2 lines
(quoted diff) +1
-1- resp = mmc_cmd(SD_CMD_APP_OP_COND, 0x0020, 0, MMC_CMDAT_R3 | (retries < 2 ? 0 : MMC_CMDAT_INIT)); /* Select 3.2-3.3 and 3.3-3.4V */ + resp = mmc_cmd(SD_CMD_APP_SEND_OP_COND, 0x0020, 0, MMC_CMDAT_R3 | (retries < 2 ? 0 : MMC_CMDAT_INIT)); /* Select 3.2-3.3 and 3.3-3.4V */Please split it
I didn't really intend to do a coding style clean up. But sure, I can fix the lines I touch anyway...
Updated patch below. I've rebased it on top of current HEAD (it conflicted with the big whitespace cleanup) and fixed the three whitespace issues that I copied into include/mmc.h
Haavard
cpu/at32ap/atmel_mci.c | 4 ++-- cpu/pxa/mmc.c | 11 +++++++---- include/asm-arm/arch-pxa/mmc.h | 17 ----------------- include/asm-avr32/arch-at32ap700x/mmc.h | 19 ------------------- include/mmc.h | 24 ++++++++++++++++++++++++ 5 files changed, 33 insertions(+), 42 deletions(-)
cpu/at32ap/atmel_mci.c +2 -2
@@ -350,7 +350,7 @@ static int sd_init_card(struct mmc_cid *cid, int verbose)mmc_idle_cards ();for (i =0 ; i <1000 ; i++) { - ret =mmc_acmd (MMC_ACMD_SD_SEND_OP_COND ,CFG_MMC_OP_COND , + ret =mmc_acmd (SD_CMD_APP_SEND_OP_COND ,CFG_MMC_OP_COND , resp,R3 |NID );if (ret || (resp[0 ] &0x80000000 ))break ;
@@ -368,7 +368,7 @@ static int sd_init_card(struct mmc_cid *cid, int verbose)mmc_dump_cid (cid);/* Get RCA of the card that responded */ - ret =mmc_cmd (MMC_CMD_SD_SEND_RELATIVE_ADDR ,0 , resp,R6 |NCR ); + ret =mmc_cmd (SD_CMD_SEND_RELATIVE_ADDR ,0 , resp,R6 |NCR );if (ret)return ret;
cpu/pxa/mmc.c +7 -4
@@ -119,7 +119,7 @@ mmc_block_read(uchar * dst, ulong src, ulong len)MMC_RDTO =0xffff ;MMC_NOB =1 ;MMC_BLKLEN = len; -mmc_cmd (MMC_CMD_READ_BLOCK , argh, argl, +mmc_cmd (MMC_CMD_READ_SINGLE_BLOCK , argh, argl,MMC_CMDAT_R1 |MMC_CMDAT_READ |MMC_CMDAT_BLOCK |MMC_CMDAT_DATA_EN );
@@ -568,7 +568,7 @@ mmc_init(int verbose)MMC_SPI =MMC_SPI_DISABLE ;/* reset */ -mmc_cmd (MMC_CMD_RESET ,0 ,0 ,MMC_CMDAT_INIT |MMC_CMDAT_R0 ); +mmc_cmd (MMC_CMD_GO_IDLE_STATE ,0 ,0 ,MMC_CMDAT_INIT |MMC_CMDAT_R0 );udelay (200000 ); retries =3 ;while (retries--) {
@@ -578,7 +578,10 @@ mmc_init(int verbose)break ; } - resp =mmc_cmd (SD_CMD_APP_OP_COND ,0x0020 ,0 ,MMC_CMDAT_R3 | (retries <2 ?0 :MMC_CMDAT_INIT ));/* Select 3.2-3.3 and 3.3-3.4V */ +/* Select 3.2-3.3 and 3.3-3.4V */ + resp =mmc_cmd (SD_CMD_APP_SEND_OP_COND ,0x0020 ,0 , +MMC_CMDAT_R3 | (retries <2 ?0 + :MMC_CMDAT_INIT ));if (resp[0 ] &0x80000000 ) { mmc_dev.if_type =IF_TYPE_SD ;debug ("Detected SD card\n" );
@@ -616,7 +619,7 @@ mmc_init(int verbose)memcpy (cid_resp, resp,sizeof (cid_resp));/* MMC exists, get CSD too */ - resp =mmc_cmd (MMC_CMD_SET_RCA ,0 ,0 ,MMC_CMDAT_R1 ); + resp =mmc_cmd (MMC_CMD_SET_RELATIVE_ADDR ,0 ,0 ,MMC_CMDAT_R1 );if (IF_TYPE_SD == mmc_dev.if_type) rca = ((resp[0 ] &0xffff0000 ) >>16 ); resp =mmc_cmd (MMC_CMD_SEND_CSD , rca,0 ,MMC_CMDAT_R2 );
include/asm-arm/arch-pxa/mmc.h +0 -17
@@ -110,23 +110,6 @@#define MMC_DEFAULT_RCA 1#define MMC_BLOCK_SIZE 512 -#define MMC_CMD_RESET 0 -#define MMC_CMD_SEND_OP_COND 1 -#define MMC_CMD_ALL_SEND_CID 2 -#define MMC_CMD_SET_RCA 3 -#define MMC_CMD_SELECT_CARD 7 -#define MMC_CMD_SEND_CSD 9 -#define MMC_CMD_SEND_CID 10 -#define MMC_CMD_SEND_STATUS 13 -#define MMC_CMD_SET_BLOCKLEN 16 -#define MMC_CMD_READ_BLOCK 17 -#define MMC_CMD_RD_BLK_MULTI 18 -#define MMC_CMD_WRITE_BLOCK 24 -#define MMC_CMD_APP_CMD 55 - -#define SD_CMD_APP_SET_BUS_WIDTH 6 -#define SD_CMD_APP_OP_COND 41 -#define MMC_MAX_BLOCK_SIZE 512#define MMC_R1_IDLE_STATE 0x01
include/asm-avr32/arch-at32ap700x/mmc.h +0 -19
@@ -71,25 +71,6 @@ struct mmc_csd u8 one:1; }; -/* MMC Command numbers */ -#define MMC_CMD_GO_IDLE_STATE 0 -#define MMC_CMD_SEND_OP_COND 1 -#define MMC_CMD_ALL_SEND_CID 2 -#define MMC_CMD_SET_RELATIVE_ADDR 3 -#define MMC_CMD_SD_SEND_RELATIVE_ADDR 3 -#define MMC_CMD_SET_DSR 4 -#define MMC_CMD_SELECT_CARD 7 -#define MMC_CMD_SEND_CSD 9 -#define MMC_CMD_SEND_CID 10 -#define MMC_CMD_SEND_STATUS 13 -#define MMC_CMD_SET_BLOCKLEN 16 -#define MMC_CMD_READ_SINGLE_BLOCK 17 -#define MMC_CMD_READ_MULTIPLE_BLOCK 18 -#define MMC_CMD_WRITE_BLOCK 24 -#define MMC_CMD_APP_CMD 55 - -#define MMC_ACMD_SD_SEND_OP_COND 41 -#define R1_ILLEGAL_COMMAND (1 << 22)#define R1_APP_CMD (1 << 5)
include/mmc.h +24 -0
@@ -25,6 +25,30 @@#define _MMC_H_#include <asm/arch/mmc.h> +/* MMC command numbers */ +#define MMC_CMD_GO_IDLE_STATE 0 +#define MMC_CMD_SEND_OP_COND 1 +#define MMC_CMD_ALL_SEND_CID 2 +#define MMC_CMD_SET_RELATIVE_ADDR 3 +#define MMC_CMD_SET_DSR 4 +#define MMC_CMD_SELECT_CARD 7 +#define MMC_CMD_SEND_CSD 9 +#define MMC_CMD_SEND_CID 10 +#define MMC_CMD_SEND_STATUS 13 +#define MMC_CMD_SET_BLOCKLEN 16 +#define MMC_CMD_READ_SINGLE_BLOCK 17 +#define MMC_CMD_READ_MULTIPLE_BLOCK 18 +#define MMC_CMD_WRITE_BLOCK 24 +#define MMC_CMD_APP_CMD 55 + +/* SD Card command numbers */ +#define SD_CMD_SEND_RELATIVE_ADDR 3 +#define SD_CMD_SWITCH 6 +#define SD_CMD_SEND_IF_COND 8 + +#define SD_CMD_APP_SET_BUS_WIDTH 6 +#define SD_CMD_APP_SEND_OP_COND 41 +int mmc_init (int verbose);int mmc_read (ulong src,uchar *dst,int size);int mmc_write (uchar *src,ulong dst,int size);
Signature · 1 line
1.5.5.1
Wolfgang Denk
AppliedPATCH v2 1/1 MMC: Consolidate MMC/SD command definitions
Quoted 11 lines · In message <[email protected]> you wrote:
This moves the MMC and SD Card command definitions from
include/asm/arch/mmc.hintoinclude/mmc.h. These definitions are given by the MMC and SD Card standards, not by any particular architecture.There's a lot more room for consolidation in the MMC drivers which I'm hoping to get done eventually, but this patch is a start.
Compile-tested for all avr32 boards as well as lpc2292sodimm and lubbock. This should cover all three mmc drivers in the tree.
Signed-off-by Haavard Skinnemoen <[email protected]>
...
Quoted 6 lines
cpu/at32ap/atmel_mci.c | 4 ++-- cpu/pxa/mmc.c | 11 +++++++---- include/asm-arm/arch-pxa/mmc.h | 17 ----------------- include/asm-avr32/arch-at32ap700x/mmc.h | 19 ------------------- include/mmc.h | 24 ++++++++++++++++++++++++ 5 files changed, 33 insertions(+), 42 deletions(-)
Applied, thanks.
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Unsichtbar macht sich die Dummheit, indem sie immer gr??ere Ausma?e annimmt. -- Bertold Brecht: Der Tui-Roman