1
0
mirror of git://projects.qi-hardware.com/xburst-tools.git synced 2025-04-21 12:27:27 +03:00

add-partition-support.patch

We have to minimally support DOS partition scheme.
Partitions are counted from 1+ now, and 0 means no
partition table instead of -1.

Signed-off-by: Andy Green <andy@openmoko.com>
This commit is contained in:
Andy Green
2008-11-28 10:16:37 +00:00
committed by Andy Green
parent b6dd949b0e
commit 935ef0e12d
9 changed files with 117 additions and 73 deletions

View File

@@ -316,8 +316,14 @@ static int mmc_cmd(int opcode, int arg, int flags,
return 0;
if (error) {
// printf("cmd 0x%x, arg 0x%x flags 0x%x\n", opcode, arg, flags);
#if 0
puts("cmd 0x");
print8(opcode);
puts(", arg 0x");
print8(arg);
puts(", flags 0x");
print32(flags);
puts("\n");
#if 1
puts("Error after cmd: 0x");
print32(error);
puts("\n");
@@ -360,7 +366,7 @@ static int mmc_cmd(int opcode, int arg, int flags,
error = -5;
if (error) {
// printf("cmd 0x%x, arg 0x%x flags 0x%x\n", opcode, arg, flags);
#if 0
#if 1
puts("Error after resp: 0x");
print32(status);
puts("\n");
@@ -573,7 +579,7 @@ static void print_sd_cid(const struct sd_cid *cid)
int mmc_init(int verbose)
{
int retries = 14, rc = -1;
int retries = 16, rc = -1;
int resp;
u8 response[16];
// mmc_cid_t *mmc_cid = (mmc_cid_t *)response;
@@ -641,6 +647,7 @@ int mmc_init(int verbose)
udelay(100000);
udelay(100000);
udelay(100000);
resp = mmc_cmd(MMC_APP_CMD, 0x00000000,
MMC_CMD_AC | MMC_RSP_R1, 0, 0, 0,

View File

@@ -56,7 +56,7 @@ static void i2c_spin_s3c24xx(void)
{
int n;
for (n = 0; n < 700; n++)
for (n = 0; n < 1000; n++)
rGPJDAT |= (1 << 5);
}