mmc: fix wrong physical partition definition
authorlintao <lintao@rock-chips.com>
Tue, 9 Sep 2014 02:23:35 +0000 (10:23 +0800)
committerlintao <lintao@rock-chips.com>
Tue, 9 Sep 2014 02:23:35 +0000 (10:23 +0800)
eMMC card can support up to 7 partitions, including 2 boot,
1 RPMB and 4 GPs. But MMC_NUM_PHY_PARTITION is defined to
6 so we should fix it to 7.

include/linux/mmc/card.h

index b73027298b3a68e71f92b2716ac6952cfc8a1091..cfa28593de910edc2800e0a2d60aec7b88fe5c95 100644 (file)
@@ -212,11 +212,12 @@ enum mmc_blk_status {
 };
 
 /* The number of MMC physical partitions.  These consist of:
- * boot partitions (2), general purpose partitions (4) in MMC v4.4.
+ * boot partitions (2), general purpose partitions (4) and
+ * RPMB partition (1) in MMC v4.4.
  */
 #define MMC_NUM_BOOT_PARTITION 2
 #define MMC_NUM_GP_PARTITION   4
-#define MMC_NUM_PHY_PARTITION  6
+#define MMC_NUM_PHY_PARTITION  7
 #define MAX_MMC_PART_NAME_LEN  20
 
 /*