diff options
author | Patrick Wildt <patrick@cvs.openbsd.org> | 2018-06-04 13:33:11 +0000 |
---|---|---|
committer | Patrick Wildt <patrick@cvs.openbsd.org> | 2018-06-04 13:33:11 +0000 |
commit | 73c98b2862be8227db0b54c6c28c379e4b1f6997 (patch) | |
tree | 3f160fd52fc0bb747aa13f91f333190b7c127adf /sys/dev/sdmmc/sdmmc_ioreg.h | |
parent | 2403ffa0d269f3234df9de6cdedfc62f3ee806eb (diff) |
4-bit bus width is mandatory for SDIO cards that support High Speed
mode, so switch from 1-bit to 4-bit bus width if the host controller
supports it.
ok kettenis@
Diffstat (limited to 'sys/dev/sdmmc/sdmmc_ioreg.h')
-rw-r--r-- | sys/dev/sdmmc/sdmmc_ioreg.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/sdmmc/sdmmc_ioreg.h b/sys/dev/sdmmc/sdmmc_ioreg.h index 9761f48b648..627c5f99b3a 100644 --- a/sys/dev/sdmmc/sdmmc_ioreg.h +++ b/sys/dev/sdmmc/sdmmc_ioreg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: sdmmc_ioreg.h,v 1.9 2018/06/04 10:37:14 patrick Exp $ */ +/* $OpenBSD: sdmmc_ioreg.h,v 1.10 2018/06/04 13:33:10 patrick Exp $ */ /* * Copyright (c) 2006 Uwe Stuehler <uwe@openbsd.org> @@ -71,7 +71,7 @@ #define SD_IO_CCCR_BUS_WIDTH 0x07 #define CCCR_BUS_WIDTH_1 (0<<0) #define CCCR_BUS_WIDTH_4 (2<<0) -#define CCCR_BUS_WIDTH_8 (3<<0) +#define CCCR_BUS_WIDTH_MASK (3<<0) #define SD_IO_CCCR_CISPTR 0x09 /* XXX 9-10, 10-11, or 9-12 */ #define SD_IO_CCCR_SPEED 0x13 #define CCCR_SPEED_SHS (1<<0) |