From f41d461405edd0a547d50860b2e74baa63c43615 Mon Sep 17 00:00:00 2001 From: Wang Haoran Date: Wed, 13 Jul 2016 16:45:34 +0800 Subject: MA-7875-4 Support fastboot getvar commands Support below fastboot getvar commands: o version-baseband o version-bootloader o product o off-mode-charge o variant o battery-voltage o battery-soc-ok o partition-size: o partition-type:< partition name> Signed-off-by: Wang Haoran --- include/fsl_fastboot.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'include') diff --git a/include/fsl_fastboot.h b/include/fsl_fastboot.h index eac3eab..3548986 100644 --- a/include/fsl_fastboot.h +++ b/include/fsl_fastboot.h @@ -42,12 +42,28 @@ #define FASTBOOT_PARTITION_BOOT_B "boot_b" #define FASTBOOT_PARTITION_SYSTEM_B "system_b" #define FASTBOOT_PARTITION_MISC "misc" + +#define FASTBOOT_PARTITION_BOOT_FS "emmc" +#define FASTBOOT_PARTITION_RECOVERY_FS "emmc" +#define FASTBOOT_PARTITION_SYSTEM_FS "ext4" +#define FASTBOOT_PARTITION_BOOTLOADER_FS "emmc" +#define FASTBOOT_PARTITION_DATA_FS "ext4" +#define FASTBOOT_PARTITION_MISC_FS "emmc" + #else #define FASTBOOT_PARTITION_BOOT "boot" #define FASTBOOT_PARTITION_RECOVERY "recovery" #define FASTBOOT_PARTITION_SYSTEM "system" #define FASTBOOT_PARTITION_BOOTLOADER "bootloader" #define FASTBOOT_PARTITION_DATA "data" + +#define FASTBOOT_PARTITION_BOOT_FS "emmc" +#define FASTBOOT_PARTITION_RECOVERY_FS "emmc" +#define FASTBOOT_PARTITION_SYSTEM_FS "ext4" +#define FASTBOOT_PARTITION_BOOTLOADER_FS "emmc" +#define FASTBOOT_PARTITION_DATA_FS "ext4" +#define FASTBOOT_PARTITION_MISC_FS "emmc" + #endif enum { @@ -131,6 +147,8 @@ struct fastboot_ptentry { unsigned int partition_id; /* partition number in block device */ unsigned int partition_index; + /* partition file system type in string */ + char fstype[16]; }; struct fastboot_device_info { -- cgit v1.1