ums: support block devices not MMC devices
authorStephen Warren <swarren@nvidia.com>
Mon, 5 May 2014 16:40:11 +0000 (10:40 -0600)
committerChanho Park <chanho61.park@samsung.com>
Fri, 24 Jul 2015 07:29:59 +0000 (16:29 +0900)
The USB Mass Storage function could equally well support a SATA device
as support an MMC device. Update struct ums to contain a block device
descriptor, not an MMC device descriptor.

Cc: Lukasz Majewski <l.majewski@samsung.com>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Przemyslaw Marczak <p.marczak@samsung.com>
Conflicts:
board/samsung/common/ums.c

include/usb_mass_storage.h

index 657a274c0feb8c470507fab09e76479aaff7008a..0cb65606b0f1a7633158e4779817a53814997f86 100644 (file)
@@ -22,7 +22,7 @@
 #define __USB_MASS_STORAGE_H__
 
 #define SECTOR_SIZE            0x200
-#include <mmc.h>
+#include <part.h>
 #include <linux/usb/composite.h>
 
 #ifndef UMS_START_SECTOR
@@ -41,7 +41,7 @@ struct ums {
        unsigned int start_sector;
        unsigned int num_sectors;
        const char *name;
-       struct mmc *mmc;
+       block_dev_desc_t *block_dev;
 };
 
 extern struct ums *ums;