s5pc110: mmc: modified moviNAND version JC01_20100301
authorJaehoon Chung <jh80.chung@samsung.com>
Sat, 27 Feb 2010 09:08:57 +0000 (18:08 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Sat, 27 Feb 2010 09:08:57 +0000 (18:08 +0900)
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
common/cmd_mmc.c
drivers/mmc/mmc.c
include/mmc.h

index 530fde5..51acd37 100644 (file)
@@ -106,7 +106,7 @@ static void print_mmcinfo(struct mmc *mmc)
        printf("Rd Block Len: %d\n", mmc->read_bl_len);
 
        printf("%s version %d.%d\n", IS_SD(mmc) ? "SD" : "MMC",
-                       (mmc->version >> 4) & 0xf, mmc->version & 0xf);
+                       (mmc->version >> 4) & 0xf, mmc->ext_csd_rev);
 
        printf("High Capacity: %s\n", mmc->high_capacity ? "Yes" : "No");
 
index 6f07aaa..b93068d 100644 (file)
@@ -392,6 +392,9 @@ int mmc_change_freq(struct mmc *mmc)
        if (err)
                return err;
 
+       /*  Extended CSD revision Number */
+       mmc->ext_csd_rev = ext_csd[192];
+
        if (ext_csd[212] || ext_csd[213] || ext_csd[214] || ext_csd[215])
                mmc->high_capacity = 1;
 
index 2dc69ab..e785dba 100644 (file)
@@ -243,6 +243,7 @@ struct mmc {
        void *priv;
        uint voltages;
        uint version;
+       uint ext_csd_rev;
        uint f_min;
        uint f_max;
        int high_capacity;