new mmc code

This commit is contained in:
lzl
2021-05-18 03:41:21 +00:00
parent c6ce1a770e
commit fe10fdb01e
2 changed files with 9 additions and 10 deletions
+9 -9
View File
@@ -328,15 +328,15 @@ enum MmcCsdSpecVersion {
};
enum MmcCsdCardCmdClass {
MMC_CSD_CCC_BASIC = (1<<0),
MMC_CSD_CCC_BLOCK_READ = (1<<2),
MMC_CSD_CCC_BLOCK_WRITE = (1<<4),
MMC_CSD_CCC_ERASE = (1<<5),
MMC_CSD_CCC_WRITE_PROT = (1<<6),
MMC_CSD_CCC_LOCK_CARD = (1<<7),
MMC_CSD_CCC_APP_SPEC = (1<<8),
MMC_CSD_CCC_IO_MODE = (1<<9),
MMC_CSD_CCC_SWITCH = (1<<10),
MMC_CSD_CCC_BASIC = (1 << 0),
MMC_CSD_CCC_BLOCK_READ = (1 << 2),
MMC_CSD_CCC_BLOCK_WRITE = (1 << 4),
MMC_CSD_CCC_ERASE = (1 << 5),
MMC_CSD_CCC_WRITE_PROT = (1 << 6),
MMC_CSD_CCC_LOCK_CARD = (1 << 7),
MMC_CSD_CCC_APP_SPEC = (1 << 8),
MMC_CSD_CCC_IO_MODE = (1 << 9),
MMC_CSD_CCC_SWITCH = (1 << 10),
};
enum MmcBusMode {
@@ -167,7 +167,6 @@ static void PlatformDeviceRemoveNotifier(struct PlatformDevice *device, struct P
(void)OsalSpinUnlock(&device->spin);
}
void PlatformDeviceUnregNotifier(struct PlatformDevice *device, struct PlatformNotifier *notifier)
{
if (device == NULL || notifier == NULL) {