You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2022/01/22 06:57:43 UTC
[incubator-nuttx] branch master updated: boards/same70-qmtech: clarify usage of CD signal on SD card connector
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new ea177fa boards/same70-qmtech: clarify usage of CD signal on SD card connector
ea177fa is described below
commit ea177faaf614b836292c043e33989975212ecf75
Author: Petro Karashchenko <pe...@gmail.com>
AuthorDate: Sat Jan 22 01:13:20 2022 +0200
boards/same70-qmtech: clarify usage of CD signal on SD card connector
By default SAME70_QMTECH board does not have CD signal routed to
SAME70. The HW rework can be done to enable CD signal. Clarify
description of SD card connector.
Change configuration of CD pin to get auto unmount work correctly
Signed-off-by: Petro Karashchenko <pe...@gmail.com>
---
boards/arm/samv7/same70-qmtech/README.txt | 16 +++++++--------
boards/arm/samv7/same70-qmtech/src/same70-qmtech.h | 24 +++++++++++++---------
2 files changed, 22 insertions(+), 18 deletions(-)
diff --git a/boards/arm/samv7/same70-qmtech/README.txt b/boards/arm/samv7/same70-qmtech/README.txt
index a278bc7..517d5d7 100644
--- a/boards/arm/samv7/same70-qmtech/README.txt
+++ b/boards/arm/samv7/same70-qmtech/README.txt
@@ -66,21 +66,21 @@ SD Card
Card Slot
---------
The SAM E70 QMTECH has one standard SD card connector that is connected to
-the High Speed Multimedia Card Interface (HSMCI) of the SAM
-E70. SD card connector:
+the High Speed Multimedia Card Interface (HSMCI) of the SAM E70.
+SD card connector:
- ------ ----------------- ---------------------
- SAME70 SAME70 Shared functionality
+ ------ -----------------
+ SAME70 SAME70
Pin Function
- ------ ----------------- ---------------------
+ ------ -----------------
PA30 MCDA0 (DAT0)
PA31 MCDA1 (DAT1)
PA26 MCDA2 (DAT2)
PA27 MCDA3 (DAT3)
- PA25 MCCK (CLK) Shield
+ PA25 MCCK (CLK)
PA28 MCCDA (CMD)
- PD17 Card Detect (C/D) Shield
- ------ ----------------- ---------------------
+ N/A Card Detect (C/D)
+ ------ -----------------
Configuration Settings
----------------------
diff --git a/boards/arm/samv7/same70-qmtech/src/same70-qmtech.h b/boards/arm/samv7/same70-qmtech/src/same70-qmtech.h
index b0677d3..95d8070 100644
--- a/boards/arm/samv7/same70-qmtech/src/same70-qmtech.h
+++ b/boards/arm/samv7/same70-qmtech/src/same70-qmtech.h
@@ -144,24 +144,28 @@
/* HSMCI SD Card Detect
*
* The SAM E70 QMTECH has one standard SD card connector that is connected
- * to the High Speed Multimedia Card Interface (HSMCI) of the SAM E70. SD
- * card connector:
+ * to the High Speed Multimedia Card Interface (HSMCI) of the SAM E70.
+ * SD card connector:
*
- * ------ ----------------- ---------------------
- * SAME70 SAME70 Shared functionality
+ * ------ -----------------
+ * SAME70 SAME70
* Pin Function
- * ------ ----------------- ---------------------
+ * ------ -----------------
* PA30 MCDA0 (DAT0)
* PA31 MCDA1 (DAT1)
* PA26 MCDA2 (DAT2)
- * PA27 MCDA3 (DAT3) Camera
- * PA25 MCCK (CLK) Shield
+ * PA27 MCDA3 (DAT3)
+ * PA25 MCCK (CLK)
* PA28 MCCDA (CMD)
- * PD17 Card Detect (C/D) Shield
- * ------ ----------------- ---------------------
+ * N/A Card Detect (C/D)
+ * ------ -----------------
+ *
+ * The SD card connector does not have CD signal connected to SAM E70 pin,
+ * but in order to provide automounter support the HW rework can be done and
+ * CD signal can be connected to SAM E70 PD17 (connector J3 pin 17).
*/
-#define GPIO_HSMCI0_CD (GPIO_INPUT | GPIO_CFG_PULLDOWN | GPIO_CFG_DEGLITCH | \
+#define GPIO_HSMCI0_CD (GPIO_INPUT | GPIO_CFG_DEFAULT | GPIO_CFG_DEGLITCH | \
GPIO_INT_BOTHEDGES | GPIO_PORT_PIOD | GPIO_PIN17)
#define IRQ_HSMCI0_CD SAM_IRQ_PD17