summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraalm <aalm@cvs.openbsd.org>2013-10-27 20:27:10 +0000
committeraalm <aalm@cvs.openbsd.org>2013-10-27 20:27:10 +0000
commit1747b67bee5fb167880433fba130b0ae6504b532 (patch)
tree641ed7c8b8627b16190835adfc26ccdde89f8df1
parentd8f76e2fc9bd9c634c217a05ead5b21f3deb760d (diff)
fix card-detect pins for wandboard.
we count from zero, unlike freescale. spotted by and ok patrick@
-rw-r--r--sys/arch/armv7/imx/imxesdhc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/armv7/imx/imxesdhc.c b/sys/arch/armv7/imx/imxesdhc.c
index f68cac7dfcf..cafeadd69e0 100644
--- a/sys/arch/armv7/imx/imxesdhc.c
+++ b/sys/arch/armv7/imx/imxesdhc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: imxesdhc.c,v 1.2 2013/10/21 15:30:38 patrick Exp $ */
+/* $OpenBSD: imxesdhc.c,v 1.3 2013/10/27 20:27:09 aalm Exp $ */
/*
* Copyright (c) 2009 Dale Rahn <drahn@openbsd.org>
* Copyright (c) 2006 Uwe Stuehler <uwe@openbsd.org>
@@ -461,10 +461,10 @@ imxesdhc_card_detect(sdmmc_chipset_handle_t sch)
return imxgpio_get_bit(gpio) ? 0 : 1;
case BOARD_ID_IMX6_WANDBOARD:
switch (sc->unit) {
- case 1:
+ case 0:
gpio = 0*32 + 2;
break;
- case 3:
+ case 2:
gpio = 3*32 + 9;
break;
default: