Created
August 5, 2016 07:21
-
-
Save ryo/9c834aa68bb1ea7980aa1c0347c527c1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cvs -q diff -aU8 | |
| Index: sdmmc_mem.c | |
| =================================================================== | |
| RCS file: /src/cvs/cvsroot-netbsd/src/sys/dev/sdmmc/sdmmc_mem.c,v | |
| retrieving revision 1.51 | |
| diff -a -U 8 -r1.51 sdmmc_mem.c | |
| --- sdmmc_mem.c 13 Mar 2016 09:12:16 -0000 1.51 | |
| +++ sdmmc_mem.c 5 Aug 2016 07:19:44 -0000 | |
| @@ -958,32 +958,34 @@ | |
| } else if (ISSET(sc->sc_caps, SMC_CAPS_4BIT_MODE)) { | |
| width = 4; | |
| value = EXT_CSD_BUS_WIDTH_4; | |
| } else { | |
| width = 1; | |
| value = EXT_CSD_BUS_WIDTH_1; | |
| } | |
| +#if 0 | |
| if (width != 1) { | |
| error = sdmmc_mem_mmc_switch(sf, EXT_CSD_CMD_SET_NORMAL, | |
| EXT_CSD_BUS_WIDTH, value); | |
| if (error == 0) | |
| error = sdmmc_chip_bus_width(sc->sc_sct, | |
| sc->sc_sch, width); | |
| else { | |
| DPRINTF(("%s: can't change bus width" | |
| " (%d bit)\n", SDMMCDEVNAME(sc), width)); | |
| return error; | |
| } | |
| /* XXXX: need bus test? (using by CMD14 & CMD19) */ | |
| delay(10000); | |
| } | |
| sf->width = width; | |
| +#endif | |
| if (hs_timing == 1 && | |
| !ISSET(sc->sc_caps, SMC_CAPS_MMC_HIGHSPEED)) { | |
| hs_timing = 0; | |
| } | |
| if (hs_timing) { | |
| error = sdmmc_mem_mmc_switch(sf, EXT_CSD_CMD_SET_NORMAL, | |
| EXT_CSD_HS_TIMING, hs_timing); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment