emmc: do NOT alloc boot partition now
authorkfx <kfx@rock-chips.com>
Sat, 20 Jul 2013 06:51:00 +0000 (14:51 +0800)
committerkfx <kfx@rock-chips.com>
Sat, 20 Jul 2013 06:51:00 +0000 (14:51 +0800)
drivers/mmc/core/mmc.c

index e7762ad0dde39570b1382642daeae82ed1667c1a..403905501f5f8f00e98c36ba090ebd3f5f3d4169 100755 (executable)
@@ -341,7 +341,10 @@ static int mmc_read_ext_csd(struct mmc_card *card, u8 *ext_csd)
                 * There are two boot regions of equal size, defined in
                 * multiples of 128K.
                 */
-               card->ext_csd.boot_size = ext_csd[EXT_CSD_BOOT_MULT] << 17;
+               if(HOST_IS_EMMC(card->host)) //emmc: We do NOT alloc boot partition now (kfx)
+                       card->ext_csd.boot_size = 0;
+               else
+                       card->ext_csd.boot_size = ext_csd[EXT_CSD_BOOT_MULT] << 17;
        }
 
        card->ext_csd.raw_hc_erase_gap_size =