Send commitlog mailing list submissions to
        [EMAIL PROTECTED]

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.openmoko.org/mailman/listinfo/commitlog
or, via email, send a message with subject or body 'help' to
        [EMAIL PROTECTED]

You can reach the person managing the list at
        [EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of commitlog digest..."
Today's Topics:

   1. r1760 - trunk/src/target/u-boot/patches
      ([EMAIL PROTECTED])
   2. r1761 - trunk/src/target/u-boot/patches
      ([EMAIL PROTECTED])
   3. r1762 - trunk/src/target/u-boot/patches
      ([EMAIL PROTECTED])
   4. r1763 - trunk/src/target/u-boot/patches
      ([EMAIL PROTECTED])
   5. r1764 - trunk/src/target/u-boot/patches
      ([EMAIL PROTECTED])
--- Begin Message ---
Author: laforge
Date: 2007-04-15 08:33:34 +0200 (Sun, 15 Apr 2007)
New Revision: 1760

Removed:
   trunk/src/target/u-boot/patches/mmc-fixes.patch
Modified:
   trunk/src/target/u-boot/patches/series
   trunk/src/target/u-boot/patches/uboot-s3c2410-mmc.patch
Log:
merge mmc-fixes.patch into s3c2410-mmc.patch


Deleted: trunk/src/target/u-boot/patches/mmc-fixes.patch
===================================================================
--- trunk/src/target/u-boot/patches/mmc-fixes.patch     2007-04-14 23:26:52 UTC 
(rev 1759)
+++ trunk/src/target/u-boot/patches/mmc-fixes.patch     2007-04-15 06:33:34 UTC 
(rev 1760)
@@ -1,199 +0,0 @@
-Index: u-boot/cpu/arm920t/s3c24x0/mmc.c
-===================================================================
---- u-boot.orig/cpu/arm920t/s3c24x0/mmc.c
-+++ u-boot/cpu/arm920t/s3c24x0/mmc.c
-@@ -60,8 +60,6 @@ static int wide = 0;
- static u_int32_t *mmc_cmd(ushort cmd, ulong arg, ushort flags)
- {
-       static u_int32_t resp[5];
--      ulong status;
--      int i;
- 
-       u_int32_t ccon, csta;
-       u_int32_t csta_rdy_bit = S3C2410_SDICMDSTAT_CMDSENT;
-@@ -134,7 +132,7 @@ static int mmc_block_read(uchar *dst, ul
-       //sdi->SDIPRE = 0xff;
- 
-       /* setup data */
--      dcon = (len >> 9) & S3C2410_SDIDCON_BLKNUM_MASK;
-+      dcon = (len >> 9) & S3C2410_SDIDCON_BLKNUM;
-       dcon |= S3C2410_SDIDCON_BLOCKMODE;
-       dcon |= S3C2410_SDIDCON_RXAFTERCMD|S3C2410_SDIDCON_XFER_RXSTART;
-       if (wide)
-@@ -309,16 +307,18 @@ int mmc_write(uchar *src, ulong dst, int
-       return 0;
- }
- 
--ulong mmc_bread(int dev_num, ulong blknr, ulong blkcnt, ulong *dst)
-+ulong mmc_bread(int dev_num, ulong blknr, ulong blkcnt, void *dst)
- {
-       int mmc_block_size = MMC_BLOCK_SIZE;
-       ulong src = blknr * mmc_block_size + CFG_MMC_BASE;
- 
--      mmc_read(src, (uchar *)dst, blkcnt*mmc_block_size);
-+      mmc_read(src, dst, blkcnt*mmc_block_size);
-       return blkcnt;
- }
- 
--static u_int16_t rca = MMC_DEFAULT_RCA;
-+/* MMC_DEFAULT_RCA should probably be just 1, but this may break other code
-+   that expects it to be shifted. */
-+static u_int16_t rca = MMC_DEFAULT_RCA >> 16;
- 
- static u_int32_t mmc_size(const struct mmc_csd *csd)
- {
-@@ -331,6 +331,56 @@ static u_int32_t mmc_size(const struct m
-       return blocknr * block_len;
- }
- 
-+struct sd_cid {
-+      char            pnm_0;  /* product name */
-+      char            oid_1;  /* OEM/application ID */
-+      char            oid_0;
-+      uint8_t         mid;    /* manufacturer ID */
-+      char            pnm_4;
-+      char            pnm_3;
-+      char            pnm_2;
-+      char            pnm_1;
-+      uint8_t         psn_2;  /* product serial number */
-+      uint8_t         psn_1;
-+      uint8_t         psn_0;  /* MSB */
-+      uint8_t         prv;    /* product revision */
-+      uint8_t         crc;    /* CRC7 checksum, b0 is unused and set to 1 */
-+      uint8_t         mdt_1;  /* manufacturing date, LSB, RRRRyyyy yyyymmmm */
-+      uint8_t         mdt_0;  /* MSB */
-+      uint8_t         psn_3;  /* LSB */
-+};
-+
-+static void print_mmc_cid(mmc_cid_t *cid)
-+{
-+      printf("MMC found. Card desciption is:\n");
-+      printf("Manufacturer ID = %02x%02x%02x\n",
-+              cid->id[0], cid->id[1], cid->id[2]);
-+      printf("HW/FW Revision = %x %x\n",cid->hwrev, cid->fwrev);
-+      cid->hwrev = cid->fwrev = 0;    /* null terminate string */
-+      printf("Product Name = %s\n",cid->name);
-+      printf("Serial Number = %02x%02x%02x\n",
-+              cid->sn[0], cid->sn[1], cid->sn[2]);
-+      printf("Month = %d\n",cid->month);
-+      printf("Year = %d\n",1997 + cid->year);
-+}
-+
-+static void print_sd_cid(const struct sd_cid *cid)
-+{
-+      printf("Manufacturer:       0x%02x, OEM \"%c%c\"\n",
-+          cid->mid, cid->oid_0, cid->oid_1);
-+      printf("Product name:       \"%c%c%c%c%c\", revision %d.%d\n",
-+          cid->pnm_0, cid->pnm_1, cid->pnm_2, cid->pnm_3, cid->pnm_4,
-+          cid->prv >> 4, cid->prv & 15);
-+      printf("Serial number:      %u\n",
-+          cid->psn_0 << 24 | cid->psn_1 << 16 | cid->psn_2 << 8 |
-+          cid->psn_3);
-+      printf("Manufacturing date: %d/%d\n",
-+          cid->mdt_1 & 15,
-+          2000+((cid->mdt_0 & 15) << 4)+((cid->mdt_1 & 0xf0) >> 4));
-+      printf("CRC:                0x%02x, b0 = %d\n",
-+          cid->crc >> 1, cid->crc & 1);
-+}
-+
- int mmc_init(int verbose)
- {
-       int retries, rc = -ENODEV;
-@@ -361,7 +411,6 @@ int mmc_init(int verbose)
- 
-       printf("trying to detect SD Card...\n");
-       while (retries--) {
--              int i;
-               udelay(100000);
-               resp = mmc_cmd(55, 0x00000000, CMD_F_RESP);
-               resp = mmc_cmd(41, 0x00300000, CMD_F_RESP);
-@@ -386,20 +435,38 @@ int mmc_init(int verbose)
-       /* try to get card id */
-       resp = mmc_cmd(MMC_CMD_ALL_SEND_CID, 0, CMD_F_RESP|CMD_F_RESP_LONG);
-       if (resp) {
--              /* TODO configure mmc driver depending on card attributes */
--              mmc_cid_t *cid = (mmc_cid_t *)resp;
--              if (verbose) {
--                      printf("MMC found. Card desciption is:\n");
--                      printf("Manufacturer ID = %02x%02x%02x\n",
--                                                      cid->id[0], cid->id[1], 
cid->id[2]);
--                      printf("HW/FW Revision = %x %x\n",cid->hwrev, 
cid->fwrev);
--                      cid->hwrev = cid->fwrev = 0;    /* null terminate 
string */
--                      printf("Product Name = %s\n",cid->name);
--                      printf("Serial Number = %02x%02x%02x\n",
--                                                      cid->sn[0], cid->sn[1], 
cid->sn[2]);
--                      printf("Month = %d\n",cid->month);
--                      printf("Year = %d\n",1997 + cid->year);
-+              if (!is_sd) {
-+                      /* TODO configure mmc driver depending on card
-+                         attributes */
-+                      mmc_cid_t *cid = (mmc_cid_t *)resp;
-+
-+                      if (verbose)
-+                              print_mmc_cid(cid);
-+                      sprintf((char *) mmc_dev.vendor,
-+                              "Man %02x%02x%02x Snr %02x%02x%02x",
-+                              cid->id[0], cid->id[1], cid->id[2],
-+                              cid->sn[0], cid->sn[1], cid->sn[2]);
-+                      sprintf((char *) mmc_dev.product,"%s",cid->name);
-+                      sprintf((char *) mmc_dev.revision,"%x %x",
-+                              cid->hwrev, cid->fwrev);
-+              }
-+              else {
-+                      struct sd_cid *cid = (struct sd_cid *) resp;
-+
-+                      if (verbose)
-+                              print_sd_cid(cid);
-+                      sprintf((char *) mmc_dev.vendor,
-+                          "Man %02 OEM %c%c \"%c%c%c%c%c\"",
-+                          cid->mid, cid->oid_0, cid->oid_1,
-+                          cid->pnm_0, cid->pnm_1, cid->pnm_2, cid->pnm_3,
-+                          cid->pnm_4);
-+                      sprintf((char *) mmc_dev.product, "%d",
-+                          cid->psn_0 << 24 | cid->psn_1 << 16 |
-+                          cid->psn_2 << 8 | cid->psn_3);
-+                      sprintf((char *) mmc_dev.revision, "%d.%d",
-+                          cid->prv >> 4, cid->prv & 15);
-               }
-+
-               /* fill in device description */
-               mmc_dev.if_type = IF_TYPE_MMC;
-               mmc_dev.part_type = PART_TYPE_DOS;
-@@ -409,11 +476,6 @@ int mmc_init(int verbose)
-               /* FIXME fill in the correct size (is set to 32MByte) */
-               mmc_dev.blksz = 512;
-               mmc_dev.lba = 0x10000;
--              sprintf(mmc_dev.vendor,"Man %02x%02x%02x Snr %02x%02x%02x",
--                              cid->id[0], cid->id[1], cid->id[2],
--                              cid->sn[0], cid->sn[1], cid->sn[2]);
--              sprintf(mmc_dev.product,"%s",cid->name);
--              sprintf(mmc_dev.revision,"%x %x",cid->hwrev, cid->fwrev);
-               mmc_dev.removable = 0;
-               mmc_dev.block_read = mmc_bread;
- 
-Index: u-boot/include/asm-arm/arch-s3c24x0/regs-sdi.h
-===================================================================
---- u-boot.orig/include/asm-arm/arch-s3c24x0/regs-sdi.h
-+++ u-boot/include/asm-arm/arch-s3c24x0/regs-sdi.h
-@@ -62,7 +62,7 @@
- #define S3C2410_SDIDCON_XFER_RXSTART  (2<<12)
- #define S3C2410_SDIDCON_XFER_TXSTART  (3<<12)
- 
--#define S3C2410_SDIDCON_BLKNUM_MASK   (0xFFF)
-+#define S3C2410_SDIDCNT_BLKNUM_MASK   (0xFFF)
- #define S3C2410_SDIDCNT_BLKNUM_SHIFT  (12)
- 
- #define S3C2410_SDIDSTA_RDYWAITREQ    (1<<10)
-Index: u-boot/include/configs/neo1973.h
-===================================================================
---- u-boot.orig/include/configs/neo1973.h
-+++ u-boot/include/configs/neo1973.h
-@@ -227,7 +227,7 @@
- #define CONFIG_EXT2           1
- 
- #define CONFIG_FAT            1
--#define CONFIG_SUPPORT_VFAT   1
-+#define CONFIG_SUPPORT_VFAT
- 
- #if 1
- /* JFFS2 driver */

Modified: trunk/src/target/u-boot/patches/series
===================================================================
--- trunk/src/target/u-boot/patches/series      2007-04-14 23:26:52 UTC (rev 
1759)
+++ trunk/src/target/u-boot/patches/series      2007-04-15 06:33:34 UTC (rev 
1760)
@@ -64,7 +64,6 @@
 uboot-dfu.patch
 uboot-neo1973-defaultenv.patch
 uboot-nand-markbad-reallybad.patch
-mmc-fixes.patch
 usbdcore-multiple_configs.patch
 neo1973-chargefast.patch
 uboot-s3c2440.patch

Modified: trunk/src/target/u-boot/patches/uboot-s3c2410-mmc.patch
===================================================================
--- trunk/src/target/u-boot/patches/uboot-s3c2410-mmc.patch     2007-04-14 
23:26:52 UTC (rev 1759)
+++ trunk/src/target/u-boot/patches/uboot-s3c2410-mmc.patch     2007-04-15 
06:33:34 UTC (rev 1760)
@@ -5,8 +5,8 @@
 
 Index: u-boot/cpu/arm920t/s3c24x0/Makefile
 ===================================================================
---- u-boot.orig/cpu/arm920t/s3c24x0/Makefile   2007-02-17 11:55:28.000000000 
+0100
-+++ u-boot/cpu/arm920t/s3c24x0/Makefile        2007-02-17 11:55:31.000000000 
+0100
+--- u-boot.orig/cpu/arm920t/s3c24x0/Makefile
++++ u-boot/cpu/arm920t/s3c24x0/Makefile
 @@ -26,7 +26,7 @@
  LIB   = $(obj)lib$(SOC).a
  
@@ -18,9 +18,9 @@
  OBJS  := $(addprefix $(obj),$(SOBJS) $(COBJS))
 Index: u-boot/cpu/arm920t/s3c24x0/mmc.c
 ===================================================================
---- /dev/null  1970-01-01 00:00:00.000000000 +0000
-+++ u-boot/cpu/arm920t/s3c24x0/mmc.c   2007-02-17 12:13:10.000000000 +0100
-@@ -0,0 +1,469 @@
+--- /dev/null
++++ u-boot/cpu/arm920t/s3c24x0/mmc.c
+@@ -0,0 +1,531 @@
 +/*
 + * u-boot S3C2410 MMC/SD card driver
 + * (C) Copyright 2006 by OpenMoko, Inc.
@@ -83,8 +83,6 @@
 +static u_int32_t *mmc_cmd(ushort cmd, ulong arg, ushort flags)
 +{
 +      static u_int32_t resp[5];
-+      ulong status;
-+      int i;
 +
 +      u_int32_t ccon, csta;
 +      u_int32_t csta_rdy_bit = S3C2410_SDICMDSTAT_CMDSENT;
@@ -157,7 +155,7 @@
 +      //sdi->SDIPRE = 0xff;
 +
 +      /* setup data */
-+      dcon = (len >> 9) & S3C2410_SDIDCON_BLKNUM_MASK;
++      dcon = (len >> 9) & S3C2410_SDIDCON_BLKNUM;
 +      dcon |= S3C2410_SDIDCON_BLOCKMODE;
 +      dcon |= S3C2410_SDIDCON_RXAFTERCMD|S3C2410_SDIDCON_XFER_RXSTART;
 +      if (wide)
@@ -332,16 +330,18 @@
 +      return 0;
 +}
 +
-+ulong mmc_bread(int dev_num, ulong blknr, ulong blkcnt, ulong *dst)
++ulong mmc_bread(int dev_num, ulong blknr, ulong blkcnt, void *dst)
 +{
 +      int mmc_block_size = MMC_BLOCK_SIZE;
 +      ulong src = blknr * mmc_block_size + CFG_MMC_BASE;
 +
-+      mmc_read(src, (uchar *)dst, blkcnt*mmc_block_size);
++      mmc_read(src, dst, blkcnt*mmc_block_size);
 +      return blkcnt;
 +}
 +
-+static u_int16_t rca = MMC_DEFAULT_RCA;
++/* MMC_DEFAULT_RCA should probably be just 1, but this may break other code
++   that expects it to be shifted. */
++static u_int16_t rca = MMC_DEFAULT_RCA >> 16;
 +
 +static u_int32_t mmc_size(const struct mmc_csd *csd)
 +{
@@ -354,6 +354,56 @@
 +      return blocknr * block_len;
 +}
 +
++struct sd_cid {
++      char            pnm_0;  /* product name */
++      char            oid_1;  /* OEM/application ID */
++      char            oid_0;
++      uint8_t         mid;    /* manufacturer ID */
++      char            pnm_4;
++      char            pnm_3;
++      char            pnm_2;
++      char            pnm_1;
++      uint8_t         psn_2;  /* product serial number */
++      uint8_t         psn_1;
++      uint8_t         psn_0;  /* MSB */
++      uint8_t         prv;    /* product revision */
++      uint8_t         crc;    /* CRC7 checksum, b0 is unused and set to 1 */
++      uint8_t         mdt_1;  /* manufacturing date, LSB, RRRRyyyy yyyymmmm */
++      uint8_t         mdt_0;  /* MSB */
++      uint8_t         psn_3;  /* LSB */
++};
++
++static void print_mmc_cid(mmc_cid_t *cid)
++{
++      printf("MMC found. Card desciption is:\n");
++      printf("Manufacturer ID = %02x%02x%02x\n",
++              cid->id[0], cid->id[1], cid->id[2]);
++      printf("HW/FW Revision = %x %x\n",cid->hwrev, cid->fwrev);
++      cid->hwrev = cid->fwrev = 0;    /* null terminate string */
++      printf("Product Name = %s\n",cid->name);
++      printf("Serial Number = %02x%02x%02x\n",
++              cid->sn[0], cid->sn[1], cid->sn[2]);
++      printf("Month = %d\n",cid->month);
++      printf("Year = %d\n",1997 + cid->year);
++}
++
++static void print_sd_cid(const struct sd_cid *cid)
++{
++      printf("Manufacturer:       0x%02x, OEM \"%c%c\"\n",
++          cid->mid, cid->oid_0, cid->oid_1);
++      printf("Product name:       \"%c%c%c%c%c\", revision %d.%d\n",
++          cid->pnm_0, cid->pnm_1, cid->pnm_2, cid->pnm_3, cid->pnm_4,
++          cid->prv >> 4, cid->prv & 15);
++      printf("Serial number:      %u\n",
++          cid->psn_0 << 24 | cid->psn_1 << 16 | cid->psn_2 << 8 |
++          cid->psn_3);
++      printf("Manufacturing date: %d/%d\n",
++          cid->mdt_1 & 15,
++          2000+((cid->mdt_0 & 15) << 4)+((cid->mdt_1 & 0xf0) >> 4));
++      printf("CRC:                0x%02x, b0 = %d\n",
++          cid->crc >> 1, cid->crc & 1);
++}
++
 +int mmc_init(int verbose)
 +{
 +      int retries, rc = -ENODEV;
@@ -384,7 +434,6 @@
 +
 +      printf("trying to detect SD Card...\n");
 +      while (retries--) {
-+              int i;
 +              udelay(100000);
 +              resp = mmc_cmd(55, 0x00000000, CMD_F_RESP);
 +              resp = mmc_cmd(41, 0x00300000, CMD_F_RESP);
@@ -409,20 +458,38 @@
 +      /* try to get card id */
 +      resp = mmc_cmd(MMC_CMD_ALL_SEND_CID, 0, CMD_F_RESP|CMD_F_RESP_LONG);
 +      if (resp) {
-+              /* TODO configure mmc driver depending on card attributes */
-+              mmc_cid_t *cid = (mmc_cid_t *)resp;
-+              if (verbose) {
-+                      printf("MMC found. Card desciption is:\n");
-+                      printf("Manufacturer ID = %02x%02x%02x\n",
-+                                                      cid->id[0], cid->id[1], 
cid->id[2]);
-+                      printf("HW/FW Revision = %x %x\n",cid->hwrev, 
cid->fwrev);
-+                      cid->hwrev = cid->fwrev = 0;    /* null terminate 
string */
-+                      printf("Product Name = %s\n",cid->name);
-+                      printf("Serial Number = %02x%02x%02x\n",
-+                                                      cid->sn[0], cid->sn[1], 
cid->sn[2]);
-+                      printf("Month = %d\n",cid->month);
-+                      printf("Year = %d\n",1997 + cid->year);
++              if (!is_sd) {
++                      /* TODO configure mmc driver depending on card
++                         attributes */
++                      mmc_cid_t *cid = (mmc_cid_t *)resp;
++
++                      if (verbose)
++                              print_mmc_cid(cid);
++                      sprintf((char *) mmc_dev.vendor,
++                              "Man %02x%02x%02x Snr %02x%02x%02x",
++                              cid->id[0], cid->id[1], cid->id[2],
++                              cid->sn[0], cid->sn[1], cid->sn[2]);
++                      sprintf((char *) mmc_dev.product,"%s",cid->name);
++                      sprintf((char *) mmc_dev.revision,"%x %x",
++                              cid->hwrev, cid->fwrev);
 +              }
++              else {
++                      struct sd_cid *cid = (struct sd_cid *) resp;
++
++                      if (verbose)
++                              print_sd_cid(cid);
++                      sprintf((char *) mmc_dev.vendor,
++                          "Man %02 OEM %c%c \"%c%c%c%c%c\"",
++                          cid->mid, cid->oid_0, cid->oid_1,
++                          cid->pnm_0, cid->pnm_1, cid->pnm_2, cid->pnm_3,
++                          cid->pnm_4);
++                      sprintf((char *) mmc_dev.product, "%d",
++                          cid->psn_0 << 24 | cid->psn_1 << 16 |
++                          cid->psn_2 << 8 | cid->psn_3);
++                      sprintf((char *) mmc_dev.revision, "%d.%d",
++                          cid->prv >> 4, cid->prv & 15);
++              }
++
 +              /* fill in device description */
 +              mmc_dev.if_type = IF_TYPE_MMC;
 +              mmc_dev.part_type = PART_TYPE_DOS;
@@ -432,11 +499,6 @@
 +              /* FIXME fill in the correct size (is set to 32MByte) */
 +              mmc_dev.blksz = 512;
 +              mmc_dev.lba = 0x10000;
-+              sprintf(mmc_dev.vendor,"Man %02x%02x%02x Snr %02x%02x%02x",
-+                              cid->id[0], cid->id[1], cid->id[2],
-+                              cid->sn[0], cid->sn[1], cid->sn[2]);
-+              sprintf(mmc_dev.product,"%s",cid->name);
-+              sprintf(mmc_dev.revision,"%x %x",cid->hwrev, cid->fwrev);
 +              mmc_dev.removable = 0;
 +              mmc_dev.block_read = mmc_bread;
 +
@@ -492,8 +554,8 @@
 +#endif        /* CONFIG_MMC */
 Index: u-boot/include/asm-arm/arch-s3c24x0/mmc.h
 ===================================================================
---- /dev/null  1970-01-01 00:00:00.000000000 +0000
-+++ u-boot/include/asm-arm/arch-s3c24x0/mmc.h  2007-02-17 12:16:41.000000000 
+0100
+--- /dev/null
++++ u-boot/include/asm-arm/arch-s3c24x0/mmc.h
 @@ -0,0 +1,112 @@
 +/*
 + *  linux/drivers/mmc/mmc_pxa.h
@@ -609,8 +671,8 @@
 +#endif /* __MMC_PXA_P_H__ */
 Index: u-boot/include/asm-arm/arch-s3c24x0/regs-sdi.h
 ===================================================================
---- /dev/null  1970-01-01 00:00:00.000000000 +0000
-+++ u-boot/include/asm-arm/arch-s3c24x0/regs-sdi.h     2007-02-17 
11:55:31.000000000 +0100
+--- /dev/null
++++ u-boot/include/asm-arm/arch-s3c24x0/regs-sdi.h
 @@ -0,0 +1,110 @@
 +/* linux/include/asm/arch-s3c2410/regs-sdi.h
 + *
@@ -676,7 +738,7 @@
 +#define S3C2410_SDIDCON_XFER_RXSTART  (2<<12)
 +#define S3C2410_SDIDCON_XFER_TXSTART  (3<<12)
 +
-+#define S3C2410_SDIDCON_BLKNUM_MASK   (0xFFF)
++#define S3C2410_SDIDCNT_BLKNUM_MASK   (0xFFF)
 +#define S3C2410_SDIDCNT_BLKNUM_SHIFT  (12)
 +
 +#define S3C2410_SDIDSTA_RDYWAITREQ    (1<<10)
@@ -724,8 +786,8 @@
 +#endif /* __ASM_ARM_REGS_SDI */
 Index: u-boot/include/s3c24x0.h
 ===================================================================
---- u-boot.orig/include/s3c24x0.h      2007-02-17 11:46:25.000000000 +0100
-+++ u-boot/include/s3c24x0.h   2007-02-17 11:55:31.000000000 +0100
+--- u-boot.orig/include/s3c24x0.h
++++ u-boot/include/s3c24x0.h
 @@ -637,13 +637,7 @@
        S3C24X0_REG32   SDIDCNT;
        S3C24X0_REG32   SDIDSTA;




--- End Message ---
--- Begin Message ---
Author: laforge
Date: 2007-04-15 08:34:23 +0200 (Sun, 15 Apr 2007)
New Revision: 1761

Modified:
   trunk/src/target/u-boot/patches/uboot-20061030-qt2410.patch
Log:
CONFIG_SUPPORT_VFAT doesn't need '1'


Modified: trunk/src/target/u-boot/patches/uboot-20061030-qt2410.patch
===================================================================
--- trunk/src/target/u-boot/patches/uboot-20061030-qt2410.patch 2007-04-15 
06:33:34 UTC (rev 1760)
+++ trunk/src/target/u-boot/patches/uboot-20061030-qt2410.patch 2007-04-15 
06:34:23 UTC (rev 1761)
@@ -5,9 +5,9 @@
 
 Index: u-boot/Makefile
 ===================================================================
---- u-boot.orig/Makefile       2007-02-27 00:38:04.000000000 +0100
-+++ u-boot/Makefile    2007-02-28 02:48:47.000000000 +0100
-@@ -1934,6 +1934,9 @@
+--- u-boot.orig/Makefile
++++ u-boot/Makefile
+@@ -1976,6 +1976,9 @@
  sbc2410x_config: unconfig
        @$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0
  
@@ -19,8 +19,8 @@
  
 Index: u-boot/board/qt2410/Makefile
 ===================================================================
---- /dev/null  1970-01-01 00:00:00.000000000 +0000
-+++ u-boot/board/qt2410/Makefile       2007-02-27 00:38:10.000000000 +0100
+--- /dev/null
++++ u-boot/board/qt2410/Makefile
 @@ -0,0 +1,47 @@
 +#
 +# (C) Copyright 2000, 2001, 2002
@@ -71,8 +71,8 @@
 +#########################################################################
 Index: u-boot/board/qt2410/config.mk
 ===================================================================
---- /dev/null  1970-01-01 00:00:00.000000000 +0000
-+++ u-boot/board/qt2410/config.mk      2007-02-27 00:38:10.000000000 +0100
+--- /dev/null
++++ u-boot/board/qt2410/config.mk
 @@ -0,0 +1,25 @@
 +#
 +# (C) Copyright 2002
@@ -101,8 +101,8 @@
 +TEXT_BASE = 0x33F80000
 Index: u-boot/board/qt2410/flash.c
 ===================================================================
---- /dev/null  1970-01-01 00:00:00.000000000 +0000
-+++ u-boot/board/qt2410/flash.c        2007-02-27 00:38:10.000000000 +0100
+--- /dev/null
++++ u-boot/board/qt2410/flash.c
 @@ -0,0 +1,435 @@
 +/*
 + * (C) Copyright 2002
@@ -541,8 +541,8 @@
 +}
 Index: u-boot/board/qt2410/lowlevel_init.S
 ===================================================================
---- /dev/null  1970-01-01 00:00:00.000000000 +0000
-+++ u-boot/board/qt2410/lowlevel_init.S        2007-02-27 00:38:10.000000000 
+0100
+--- /dev/null
++++ u-boot/board/qt2410/lowlevel_init.S
 @@ -0,0 +1,173 @@
 +/*
 + * Memory Setup stuff - taken from blob memsetup.S
@@ -719,8 +719,8 @@
 +    .word 0x30
 Index: u-boot/board/qt2410/qt2410.c
 ===================================================================
---- /dev/null  1970-01-01 00:00:00.000000000 +0000
-+++ u-boot/board/qt2410/qt2410.c       2007-02-27 00:38:10.000000000 +0100
+--- /dev/null
++++ u-boot/board/qt2410/qt2410.c
 @@ -0,0 +1,128 @@
 +/*
 + * (C) 2006 by OpenMoko, Inc.
@@ -852,8 +852,8 @@
 +}
 Index: u-boot/board/qt2410/u-boot.lds
 ===================================================================
---- /dev/null  1970-01-01 00:00:00.000000000 +0000
-+++ u-boot/board/qt2410/u-boot.lds     2007-02-27 00:38:10.000000000 +0100
+--- /dev/null
++++ u-boot/board/qt2410/u-boot.lds
 @@ -0,0 +1,58 @@
 +/*
 + * (C) Copyright 2002
@@ -915,8 +915,8 @@
 +}
 Index: u-boot/include/configs/qt2410.h
 ===================================================================
---- /dev/null  1970-01-01 00:00:00.000000000 +0000
-+++ u-boot/include/configs/qt2410.h    2007-02-28 02:49:17.000000000 +0100
+--- /dev/null
++++ u-boot/include/configs/qt2410.h
 @@ -0,0 +1,287 @@
 +/*
 + * (C) Copyright 2002
@@ -1162,7 +1162,7 @@
 +
 +/* FAT driver in u-boot is broken currently */
 +#define CONFIG_FAT            1
-+#define CONFIG_SUPPORT_VFAT   1
++#define CONFIG_SUPPORT_VFAT
 +
 +#if 1
 +/* JFFS2 driver */




--- End Message ---
--- Begin Message ---
Author: laforge
Date: 2007-04-15 08:36:35 +0200 (Sun, 15 Apr 2007)
New Revision: 1762

Modified:
   trunk/src/target/u-boot/patches/uboot-20061030-neo1973.patch
Log:
* make sure SD card is powered off in GTA01Bv4 and higher
* make sure LCM backlight is off when power button is first pressed
* VFAT support define doesn't need to be set to '1' but just present


Modified: trunk/src/target/u-boot/patches/uboot-20061030-neo1973.patch
===================================================================
--- trunk/src/target/u-boot/patches/uboot-20061030-neo1973.patch        
2007-04-15 06:34:23 UTC (rev 1761)
+++ trunk/src/target/u-boot/patches/uboot-20061030-neo1973.patch        
2007-04-15 06:36:35 UTC (rev 1762)
@@ -8,7 +8,7 @@
 ===================================================================
 --- u-boot.orig/Makefile
 +++ u-boot/Makefile
-@@ -1988,6 +1988,14 @@
+@@ -1976,6 +1976,14 @@
  sbc2410x_config: unconfig
        @$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0
  
@@ -118,7 +118,7 @@
 ===================================================================
 --- /dev/null
 +++ u-boot/board/neo1973/neo1973.c
-@@ -0,0 +1,362 @@
+@@ -0,0 +1,363 @@
 +/*
 + * (C) 2006 by OpenMoko, Inc.
 + * Author: Harald Welte <[EMAIL PROTECTED]>
@@ -306,8 +306,9 @@
 +      gpio->GPACON = 0x0005E0FFF;
 +      gpio->GPADAT |= (1 << 16);      /* Set GPA16 to high (nNAND_WP) */
 +
-+      gpio->GPBCON = 0x00045456;
++      gpio->GPBCON = 0x00045455;
 +      gpio->GPBUP = 0x000007FF;
++      gpio->GPBDAT |= 0x4;            /* Set GPB2 to high (SD power down) */
 +
 +      gpio->GPCCON = 0xAAAA12A9;
 +      gpio->GPCUP = 0x0000FFFF;
@@ -960,7 +961,7 @@
 +#define CONFIG_EXT2           1
 +
 +#define CONFIG_FAT            1
-+#define CONFIG_SUPPORT_VFAT   1
++#define CONFIG_SUPPORT_VFAT
 +
 +#if 0
 +/* JFFS2 driver */




--- End Message ---
--- Begin Message ---
Author: laforge
Date: 2007-04-15 09:59:55 +0200 (Sun, 15 Apr 2007)
New Revision: 1763

Modified:
   trunk/src/target/u-boot/patches/series
Log:
* move interrupt patches before neo1973 core


Modified: trunk/src/target/u-boot/patches/series
===================================================================
--- trunk/src/target/u-boot/patches/series      2007-04-15 06:36:35 UTC (rev 
1762)
+++ trunk/src/target/u-boot/patches/series      2007-04-15 07:59:55 UTC (rev 
1763)
@@ -10,6 +10,8 @@
 uboot-cramfs_but_no_jffs2.patch
 mmc_parititon_fix.patch
 nand-read_write_oob.patch
+uboot-arm920t-gd_in_irq.patch
+uboot-arm920_s3c2410_irq_demux.patch
 uboot-s3c2410-nand.patch
 uboot-cmd_s3c2410.patch
 uboot-s3c2410-mmc.patch
@@ -27,13 +29,10 @@
 wakeup-reason-nand-only.patch
 uboot-neo1973-resume.patch
 
-uboot-arm920t-gd_in_irq.patch
-
 # this will be somewhat more difficult
 nand-dynamic_partitions.patch
 uboot-s3c2410-norelocate_irqvec_cpy.patch
 uboot-usbtty-acm.patch
-uboot-arm920_s3c2410_irq_demux.patch
 uboot-s3c2410_udc.patch
 
 # those need to be cleaned up
@@ -66,7 +65,9 @@
 uboot-nand-markbad-reallybad.patch
 usbdcore-multiple_configs.patch
 neo1973-chargefast.patch
+
 uboot-s3c2440.patch
 uboot-smdk2440.patch
 uboot-hxd8.patch
+
 uboot-license.patch




--- End Message ---
--- Begin Message ---
Author: laforge
Date: 2007-04-15 10:29:46 +0200 (Sun, 15 Apr 2007)
New Revision: 1764

Modified:
   trunk/src/target/u-boot/patches/uboot-20061030-neo1973.patch
Log:
* GTA01Bv4: switch on SD card voltage if sd card is detected at boot time
  (we don't detect sd card insertion/removal at runtime)


Modified: trunk/src/target/u-boot/patches/uboot-20061030-neo1973.patch
===================================================================
--- trunk/src/target/u-boot/patches/uboot-20061030-neo1973.patch        
2007-04-15 07:59:55 UTC (rev 1763)
+++ trunk/src/target/u-boot/patches/uboot-20061030-neo1973.patch        
2007-04-15 08:29:46 UTC (rev 1764)
@@ -118,7 +118,7 @@
 ===================================================================
 --- /dev/null
 +++ u-boot/board/neo1973/neo1973.c
-@@ -0,0 +1,363 @@
+@@ -0,0 +1,372 @@
 +/*
 + * (C) 2006 by OpenMoko, Inc.
 + * Author: Harald Welte <[EMAIL PROTECTED]>
@@ -410,6 +410,15 @@
 +      /* switch on the backlight */
 +      neo1973_backlight(1);
 +
++#if defined(CONFIG_ARCH_GTA01B_v4)
++      {
++              /* check if sd card is inserted, and power-up if it is */
++              S3C24X0_GPIO * const gpio = S3C24X0_GetBase_GPIO();
++              if (!(gpio->GPFDAT & (1 << 5)))
++                      gpio->GPBDAT &= ~(1 << 2);
++      }
++#endif
++
 +      return 0;
 +}
 +




--- End Message ---
_______________________________________________
commitlog mailing list
[EMAIL PROTECTED]
http://lists.openmoko.org/mailman/listinfo/commitlog

Reply via email to