File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -4084,6 +4084,24 @@ static void mmcsd_hwuninitialize(FAR struct mmcsd_state_s *priv)
4084
4084
SDIO_RESET (priv -> dev );
4085
4085
}
4086
4086
4087
+ static const char * mmc_get_mode_name (uint8_t mode )
4088
+ {
4089
+ switch (mode )
4090
+ {
4091
+ case EXT_CSD_HS_TIMING_BC :
4092
+ return "backwards compatibility" ;
4093
+ case EXT_CSD_HS_TIMING_HS :
4094
+ return "high speed" ;
4095
+ case EXT_CSD_HS_TIMING_HS200 :
4096
+ return "HS200" ;
4097
+ case EXT_CSD_HS_TIMING_HS400 :
4098
+ return "HS400" ;
4099
+ default :
4100
+ ferr ("Unknown mode: %u\n" , mode );
4101
+ return "Unknown" ;
4102
+ }
4103
+ }
4104
+
4087
4105
/****************************************************************************
4088
4106
* Public Functions
4089
4107
****************************************************************************/
@@ -4187,6 +4205,11 @@ int mmcsd_slotinitialize(int minor, FAR struct sdio_dev_s *dev)
4187
4205
mmcsd_initialize_procfs ();
4188
4206
#endif
4189
4207
4208
+ finfo ("MMC: %s %" PRIu64 "KB %s %s mode\n" , devname ,
4209
+ ((uint64_t )priv -> nblocks << priv -> blockshift ) >> 10 ,
4210
+ priv -> widebus ? "4-bits" : "1-bit" ,
4211
+ mmc_get_mode_name (priv -> mode ));
4212
+
4190
4213
return OK ;
4191
4214
4192
4215
errout_with_hwinit :
You can’t perform that action at this time.
0 commit comments