summaryrefslogtreecommitdiff
path: root/drivers/usb/gadget
diff options
context:
space:
mode:
authorChen Guoyin <guoyin.chen@nxp.com>2016-12-20 09:42:34 +0800
committerChen Guoyin <guoyin.chen@nxp.com>2016-12-20 09:49:33 +0800
commit627fa3dce84fbd17e61660df932deaac4845f7a6 (patch)
tree91ddd92e9d22520a8086288a14abba6c785037dc /drivers/usb/gadget
parent442f6237f6d0ca9c45a18d9a2e2cf88a362d619d (diff)
downloadu-boot-imx-627fa3dce84fbd17e61660df932deaac4845f7a6.zip
u-boot-imx-627fa3dce84fbd17e61660df932deaac4845f7a6.tar.gz
u-boot-imx-627fa3dce84fbd17e61660df932deaac4845f7a6.tar.bz2
MA-9121 mx7d: "root=/dev/mmcblk1p3" isn't valid block device in kernel
Use api mmc_map_to_kernel_blk to get the kernel block device number Change-Id: I8c6ecbdd318acb624f08bd72c7d96fef7ed998e6 Signed-off-by: Chen Guoyin <guoyin.chen@nxp.com>
Diffstat (limited to 'drivers/usb/gadget')
-rwxr-xr-xdrivers/usb/gadget/f_fastboot.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/usb/gadget/f_fastboot.c b/drivers/usb/gadget/f_fastboot.c
index b1382dd..d38aa36 100755
--- a/drivers/usb/gadget/f_fastboot.c
+++ b/drivers/usb/gadget/f_fastboot.c
@@ -94,6 +94,9 @@ static bool is_high_speed;
static bool is_recovery_mode;
#endif
+extern int mmc_get_env_devno(void);
+extern int mmc_map_to_kernel_blk(int dev_no);
+
static struct usb_endpoint_descriptor fs_ep_in = {
.bLength = USB_DT_ENDPOINT_SIZE,
.bDescriptorType = USB_DT_ENDPOINT,
@@ -1799,7 +1802,7 @@ static void fastboot_setup_system_boot_args(const char *slot)
if(ptentry != NULL) {
char bootargs_3rd[ANDR_BOOT_ARGS_SIZE];
#if defined(CONFIG_FASTBOOT_STORAGE_MMC)
- u32 dev_no = mmc_get_env_devno();
+ u32 dev_no = mmc_map_to_kernel_blk(mmc_get_env_devno());
sprintf(bootargs_3rd, "skip_initramfs root=/dev/mmcblk%dp%d",
dev_no,
ptentry->partition_index);