File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -1431,6 +1431,9 @@ static void atmci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
14311431 case MMC_BUS_WIDTH_4 :
14321432 slot -> sdc_reg |= ATMCI_SDCBUS_4BIT ;
14331433 break ;
1434+ case MMC_BUS_WIDTH_8 :
1435+ slot -> sdc_reg |= ATMCI_SDCBUS_8BIT ;
1436+ break ;
14341437 }
14351438
14361439 if (ios -> clock ) {
@@ -2298,8 +2301,11 @@ static int atmci_init_slot(struct atmel_mci *host,
22982301 * use only one bit for data to prevent fifo underruns and overruns
22992302 * which will corrupt data.
23002303 */
2301- if ((slot_data -> bus_width >= 4 ) && host -> caps .has_rwproof )
2304+ if ((slot_data -> bus_width >= 4 ) && host -> caps .has_rwproof ) {
23022305 mmc -> caps |= MMC_CAP_4_BIT_DATA ;
2306+ if (slot_data -> bus_width >= 8 )
2307+ mmc -> caps |= MMC_CAP_8_BIT_DATA ;
2308+ }
23032309
23042310 if (atmci_get_version (host ) < 0x200 ) {
23052311 mmc -> max_segs = 256 ;
You can’t perform that action at this time.
0 commit comments